Class AbstractCSSCanvas

java.lang.Object
io.sf.carte.doc.style.css.om.AbstractCSSCanvas
All Implemented Interfaces:
CSSCanvas

public abstract class AbstractCSSCanvas extends Object implements CSSCanvas
Abstract base class useful for CSSCanvas implementations.
  • Constructor Details

    • AbstractCSSCanvas

      protected AbstractCSSCanvas(CSSDocument doc)
  • Method Details

    • getDocument

      public CSSDocument getDocument()
      Description copied from interface: CSSCanvas
      Gets the document to which this canvas applies.
      Specified by:
      getDocument in interface CSSCanvas
      Returns:
      the document.
    • setDocument

      protected void setDocument(CSSDocument doc)
    • getFeatureValue

      public ExtendedCSSPrimitiveValue getFeatureValue(String feature)
      Description copied from interface: CSSCanvas
      Provide the value of the requested media feature.
      Specified by:
      getFeatureValue in interface CSSCanvas
      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

      public boolean matchesFeature(String feature, ExtendedCSSPrimitiveValue value)
      Description copied from interface: CSSCanvas
      Does this canvas support the given media feature?
      Specified by:
      matchesFeature in interface CSSCanvas
      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

      protected abstract String getOrientation()
    • getOverflowBlock

      protected abstract String getOverflowBlock()
    • getOverflowInline

      protected abstract String getOverflowInline()
    • getPointerAccuracy

      protected abstract String getPointerAccuracy()
    • getResolution

      protected abstract float getResolution()
    • getScanType

      protected abstract String getScanType()
    • getUpdateFrequency

      protected abstract String getUpdateFrequency()
    • supportsGamut

      protected abstract boolean supportsGamut(String gamut)