org.geotools.styling
Class FontImpl

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

public class FontImpl
extends AbstractGTComponent
implements Font, org.opengis.util.Cloneable

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

Version:
$Id: FontImpl.java 18021 2006-02-14 20:36:18Z jdeolive $
Author:
Ian Turton, CCG

Nested Class Summary
 
Nested classes inherited from class org.geotools.styling.Font
Font.Style, Font.Weight
 
Field Summary
 
Fields inherited from class org.geotools.event.AbstractGTComponent
notification
 
Fields inherited from interface org.geotools.styling.Font
DEFAULT_FONTSIZE
 
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 org.geotools.event.AbstractGTComponent
changed, fireChanged, fireChildChanged, getNote, getParent, removed, setNote
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.event.GTComponent
changed, getNote, getParent, removed, setNote
 

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
Overrides:
clone in class AbstractGTComponent
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.

Parameters:
oth - DOCUMENT ME!
Returns:
True if this and oth are equal.


Copyright © GeoTools. All Rights Reserved.