Class FontFaceRule

java.lang.Object
org.apache.batik.css.engine.FontFaceRule
All Implemented Interfaces:
Rule

public class FontFaceRule extends 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 Details

  • Constructor Details

  • Method Details

    • 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 String toString(CSSEngine eng)
      Returns a printable representation of this rule.
      Specified by:
      toString in interface Rule