java.lang.Object
io.sf.carte.doc.style.css.om.AbstractCSSCanvas
- All Implemented Interfaces:
CSSCanvas
Abstract base class useful for CSSCanvas implementations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract float
Gets the document to which this canvas applies.getFeatureValue
(String feature) Provide the value of the requested media feature.protected abstract int
protected abstract String
protected abstract String
protected abstract String
protected abstract String
protected abstract float
protected abstract String
protected abstract String
protected abstract boolean
boolean
matchesFeature
(String feature, ExtendedCSSPrimitiveValue value) Does this canvas support the given media feature?protected void
setDocument
(CSSDocument doc) protected abstract boolean
supportsGamut
(String gamut) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.sf.carte.doc.agent.CSSCanvas
getCapHeight, getStyleDatabase, getViewport, isActivePseudoClass, reloadStyleState, stringWidth
-
Constructor Details
-
AbstractCSSCanvas
-
-
Method Details
-
getDocument
Description copied from interface:CSSCanvas
Gets the document to which this canvas applies.- Specified by:
getDocument
in interfaceCSSCanvas
- Returns:
- the document.
-
setDocument
-
getFeatureValue
Description copied from interface:CSSCanvas
Provide the value of the requested media feature.- Specified by:
getFeatureValue
in interfaceCSSCanvas
- Parameters:
feature
- the media feature.- Returns:
- the value of the requested media feature, or
null
if the feature is not known or not supported.
-
matchesFeature
Description copied from interface:CSSCanvas
Does this canvas support the given media feature?- Specified by:
matchesFeature
in interfaceCSSCanvas
- Parameters:
feature
- the media feature name.value
- the optional feature value to be tested against.- Returns:
true
if the feature (with the given value, if any) is supported,false
otherwise.
-
getColorIndex
protected abstract float getColorIndex() -
isGridDevice
protected abstract boolean isGridDevice() -
getMonoBitsPerPixel
protected abstract int getMonoBitsPerPixel() -
getOrientation
-
getOverflowBlock
-
getOverflowInline
-
getPointerAccuracy
-
getResolution
protected abstract float getResolution() -
getScanType
-
getUpdateFrequency
-
supportsGamut
-