public class MediaSpecNone extends MediaSpec
MediaSpec.Featurecolor, colorIndex, deviceHeight, deviceWidth, dpi, em, ex, featureMap, grid, height, monochrome, resolution, scanInterlace, type, width| Constructor and Description |
|---|
MediaSpecNone()
Creates the media specification that does not match any media query or expression.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(MediaExpression e)
Checks if this media specification matches a given media query expression.
|
boolean |
matches(MediaQuery q)
Checks if this media specification matches a given media query.
|
boolean |
matchesEmpty()
Checks whether the media specification matches an empty or missing media query, i.e. whether the
media or import rules with no media queries should be accepted with this media specification.
|
boolean |
matchesOneOf(List<MediaQuery> queries)
Checks whether this media specification matches to at least one of the given media queries.
|
String |
toString() |
dpiResolution, getAspectRatio, getColor, getColorIndex, getDeviceAspectRation, getDeviceHeight, getDeviceWidth, getExpressionIdentifier, getExpressionInteger, getExpressionLengthPx, getExpressionRatio, getExpressionResolution, getFeatureByName, getGrid, getHeight, getMonochrome, getResolution, getType, getWidth, isPortrait, isScanInterlace, loadDefaults, pxLength, setColor, setColorIndex, setDeviceDimensions, setDeviceHeight, setDeviceWidth, setDimensions, setGrid, setHeight, setMonochrome, setResolution, setScanInterlace, setWidth, valueMatches, valueMatchespublic MediaSpecNone()
public boolean matches(MediaQuery q)
MediaSpecpublic boolean matches(MediaExpression e)
MediaSpecpublic boolean matchesOneOf(List<MediaQuery> queries)
MediaSpecmatchesOneOf in class MediaSpecqueries - The list of media queries to be matched.true when at least one query matches, false when no query matches.public boolean matchesEmpty()
MediaSpecmatchesEmpty in class MediaSpectrue when this media specification matches an empty media queryCopyright © 2019. All rights reserved.