Class FontFaceRule

  • All Implemented Interfaces:
    Rule

    public class FontFaceRule
    extends java.lang.Object
    implements Rule
    This class represents a @font-face CSS rule. This mostly exists to give us a place to store the URI to be used for 'src' URI resolution.
    Version:
    $Id: FontFaceRule.java 1831630 2018-05-15 12:56:55Z ssteiner $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) ParsedURL purl  
      (package private) StyleMap sm  
      static short TYPE
      The type constant.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      StyleMap getStyleMap()
      Returns the StyleMap from the @font-face rule.
      short getType()
      Returns a constant identifying the rule type.
      ParsedURL getURL()
      Returns the URI of the @font-face rule.
      java.lang.String toString​(CSSEngine eng)
      Returns a printable representation of this rule.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getType

        public short getType()
        Returns a constant identifying the rule type.
        Specified by:
        getType in interface Rule
      • getURL

        public ParsedURL getURL()
        Returns the URI of the @font-face rule.
      • getStyleMap

        public StyleMap getStyleMap()
        Returns the StyleMap from the @font-face rule.
      • toString

        public java.lang.String toString​(CSSEngine eng)
        Returns a printable representation of this rule.
        Specified by:
        toString in interface Rule