org.apache.batik.css.engine

Class FontFaceRule

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.
Field Summary
static shortTYPE
The type constant.
Constructor Summary
FontFaceRule(StyleMap sm, ParsedURL purl)
Method Summary
StyleMapgetStyleMap()
Returns the StyleMap from the @font-face rule.
shortgetType()
Returns a constant identifying the rule type.
ParsedURLgetURL()
Returns the URI of the @font-face rule.
StringtoString(CSSEngine eng)
Returns a printable representation of this rule.

Field Detail

TYPE

public static final short TYPE
The type constant.

Constructor Detail

FontFaceRule

public FontFaceRule(StyleMap sm, ParsedURL purl)

Method Detail

getStyleMap

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

getType

public short getType()
Returns a constant identifying the rule type.

getURL

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

toString

public String toString(CSSEngine eng)
Returns a printable representation of this rule.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.