All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.font.FontFamily
java.lang.Object
|
+----org.w3c.css.properties.CssProperty
|
+----org.w3c.css.font.FontProperty
|
+----org.w3c.css.font.FontFamily
- public class FontFamily
- extends FontProperty
- implements CssOperator
-
FontFamily()
- Create a new FontFamily
-
FontFamily(CssExpression)
- Create a new FontFamily
-
addToStyle(CssStyle)
- Add this property to the CssStyle.
-
elements()
- Returns all fonts name
-
equals(CssProperty)
- Compares two properties for equality.
-
get()
- Returns the font (null if no font)
-
getPropertyInStyle(CssStyle, boolean)
- Get this property in the style.
-
getPropertyName()
- Returns the name of this property
-
size()
- Returns the size
-
toString()
- Returns a string representation of the object.
FontFamily
public FontFamily()
- Create a new FontFamily
FontFamily
public FontFamily(CssExpression expression) throws InvalidParamException
- Create a new FontFamily
- Parameters:
- expression - the font name
- Throws: InvalidParamException
- The expression is incorrect
elements
public Enumeration elements()
- Returns all fonts name
size
public int size()
- Returns the size
get
public Object get()
- Returns the font (null if no font)
- Overrides:
- get in class CssProperty
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class CssProperty
getPropertyName
public String getPropertyName()
- Returns the name of this property
- Overrides:
- getPropertyName in class CssProperty
addToStyle
public void addToStyle(CssStyle style)
- Add this property to the CssStyle.
- Parameters:
- style - The CssStyle
- Overrides:
- addToStyle in class CssProperty
getPropertyInStyle
public CssProperty getPropertyInStyle(CssStyle style,
boolean resolve)
- Get this property in the style.
- Parameters:
- style - The style where the property is
- resolve - if true, resolve the style to find this property
- Overrides:
- getPropertyInStyle in class CssProperty
equals
public boolean equals(CssProperty property)
- Compares two properties for equality.
- Parameters:
- value - The other property.
- Overrides:
- equals in class CssProperty
All Packages Class Hierarchy This Package Previous Next Index