org.geotools.styling
Class FontImpl

java.lang.Object
  extended byorg.geotools.styling.FontImpl
All Implemented Interfaces:
org.opengis.util.Cloneable, java.lang.Cloneable, Font

public class FontImpl
extends java.lang.Object
implements Font, org.opengis.util.Cloneable

Provides a Java representation of the Font element of an SLD.

Version:
$Id: FontImpl.java,v 1.6 2003/09/06 04:52:31 seangeo Exp $
Author:
Ian Turton, CCG

Constructor Summary
protected FontImpl()
          Creates a new instance of DefaultFont
 
Method Summary
 java.lang.Object clone()
          Creates a clone of the font.
 boolean equals(java.lang.Object oth)
          Compares this font with another for equality.
 Expression getFontFamily()
          Getter for property fontFamily.
 Expression getFontSize()
          Getter for property fontSize.
 Expression getFontStyle()
          Getter for property fontStyle.
 Expression getFontWeight()
          Getter for property fontWeight.
 int hashCode()
          Generates the hashcode for the font.
 void setFontFamily(Expression fontFamily)
          Setter for property fontFamily.
 void setFontSize(Expression fontSize)
          Setter for property fontSize.
 void setFontStyle(Expression fontStyle)
          Setter for property fontStyle.
 void setFontWeight(Expression fontWeight)
          Setter for property fontWeight.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontImpl

protected FontImpl()
Creates a new instance of DefaultFont

Method Detail

getFontFamily

public Expression getFontFamily()
Getter for property fontFamily.

Specified by:
getFontFamily in interface Font
Returns:
Value of property fontFamily.

setFontFamily

public void setFontFamily(Expression fontFamily)
Setter for property fontFamily.

Specified by:
setFontFamily in interface Font
Parameters:
fontFamily - New value of property fontFamily.

getFontSize

public Expression getFontSize()
Getter for property fontSize.

Specified by:
getFontSize in interface Font
Returns:
Value of property fontSize.

setFontSize

public void setFontSize(Expression fontSize)
Setter for property fontSize.

Specified by:
setFontSize in interface Font
Parameters:
fontSize - New value of property fontSize.

getFontStyle

public Expression getFontStyle()
Getter for property fontStyle.

Specified by:
getFontStyle in interface Font
Returns:
Value of property fontStyle.

setFontStyle

public void setFontStyle(Expression fontStyle)
Setter for property fontStyle.

Specified by:
setFontStyle in interface Font
Parameters:
fontStyle - New value of property fontStyle.

getFontWeight

public Expression getFontWeight()
Getter for property fontWeight.

Specified by:
getFontWeight in interface Font
Returns:
Value of property fontWeight.

setFontWeight

public void setFontWeight(Expression fontWeight)
Setter for property fontWeight.

Specified by:
setFontWeight in interface Font
Parameters:
fontWeight - New value of property fontWeight.

clone

public java.lang.Object clone()
Creates a clone of the font.

Specified by:
clone in interface org.opengis.util.Cloneable
See Also:
Cloneable.clone()

hashCode

public int hashCode()
Generates the hashcode for the font.

Returns:
the hash code.

equals

public boolean equals(java.lang.Object oth)
Compares this font with another for equality. Two fonts are equal if their family, style, weight and size are equal.

Returns:
True if this and oth are equal.


Copyright © GeoTools. All Rights Reserved.