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) |
static List<Medium> |
parseMultiple(String media)
Parse comma-separated list of media
|
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
IllegalArgumentExceptionpublic static List<Medium> parseMultiple(String media) throws IllegalArgumentException
IllegalArgumentExceptionpublic 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–2025 The DAISY Consortium. All rights reserved.