public class MediaSpecAll extends MediaSpec
MediaSpec.Featurecolor, colorIndex, deviceHeight, deviceWidth, dpi, em, ex, featureMap, grid, height, monochrome, resolution, scanInterlace, type, width| Constructor and Description |
|---|
MediaSpecAll()
Creates the media specification that matches to all media queries and expressions.
|
| 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 |
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, matchesEmpty, pxLength, setColor, setColorIndex, setDeviceDimensions, setDeviceHeight, setDeviceWidth, setDimensions, setGrid, setHeight, setMonochrome, setResolution, setScanInterlace, setWidth, valueMatches, valueMatchespublic MediaSpecAll()
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.Copyright © 2019. All rights reserved.