java.lang.Object
io.sf.carte.doc.style.css.om.AbstractCSSCanvas
- All Implemented Interfaces:
CSSCanvas
Abstract base class useful for CSSCanvas implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract floatGets the document to which this canvas applies.getFeatureValue(String feature) Provide the value of the requested media feature.protected abstract intprotected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract floatprotected abstract Stringprotected abstract Stringprotected abstract booleanbooleanmatchesFeature(String feature, ExtendedCSSPrimitiveValue value) Does this canvas support the given media feature?protected voidsetDocument(CSSDocument doc) protected abstract booleansupportsGamut(String gamut) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:CSSCanvasGets the document to which this canvas applies.- Specified by:
getDocumentin interfaceCSSCanvas- Returns:
- the document.
-
setDocument
-
getFeatureValue
Description copied from interface:CSSCanvasProvide the value of the requested media feature.- Specified by:
getFeatureValuein interfaceCSSCanvas- Parameters:
feature- the media feature.- Returns:
- the value of the requested media feature, or
nullif the feature is not known or not supported.
-
matchesFeature
Description copied from interface:CSSCanvasDoes this canvas support the given media feature?- Specified by:
matchesFeaturein interfaceCSSCanvas- Parameters:
feature- the media feature name.value- the optional feature value to be tested against.- Returns:
trueif the feature (with the given value, if any) is supported,falseotherwise.
-
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
-