public class Medium extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Medium.Type |
Modifier and Type | Method and Description |
---|---|
cz.vutbr.web.css.MediaSpec |
asMediaSpec()
The medium as a jStyleParser
MediaSpec object, used by JStyleParserCssCascader for passing to CSSFactory.getUsedStyles(org.w3c.dom.Document, java.net.URL, cz.vutbr.web.css.MediaSpec, cz.vutbr.web.csskit.antlr.CSSSourceReader, cz.vutbr.web.css.StyleSheet) and Analyzer.evaluateDOM(org.w3c.dom.Document, cz.vutbr.web.css.MediaSpec, boolean) . |
boolean |
equals(Object o) |
Map<String,String> |
getCustomFeatures()
Additional properties of the target medium.
|
Integer |
getHeight()
The height of the page, in braille cells, or null if undetermined or not applicable.
|
Medium.Type |
getType()
The media type: "embossed", "braille", "speech", "screen" or "print".
|
Integer |
getWidth()
The width of the page, in braille cells, or null if undetermined or not applicable.
|
int |
hashCode() |
boolean |
matches(String mediaQuery) |
static Medium |
parse(String medium) |
String |
toString() |
public Medium.Type getType()
public Integer getWidth()
public Integer getHeight()
public Map<String,String> getCustomFeatures()
public boolean matches(String mediaQuery)
public static Medium parse(String medium) throws IllegalArgumentException
IllegalArgumentException
public cz.vutbr.web.css.MediaSpec asMediaSpec()
MediaSpec
object, used by JStyleParserCssCascader
for passing to CSSFactory.getUsedStyles(org.w3c.dom.Document, java.net.URL, cz.vutbr.web.css.MediaSpec, cz.vutbr.web.csskit.antlr.CSSSourceReader, cz.vutbr.web.css.StyleSheet)
and Analyzer.evaluateDOM(org.w3c.dom.Document, cz.vutbr.web.css.MediaSpec, boolean)
.Copyright © 2010–2024 The DAISY Consortium. All rights reserved.