org.geotools.styling
Class FontImpl

Object
  extended by FontImpl
All Implemented Interfaces:
Cloneable, Font

public class FontImpl
extends Object
implements Font, Cloneable

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

Author:
Ian Turton, CCG
Module:
modules/library/main (gt-main.jar)

Nested Class Summary
 
Nested classes/interfaces inherited from interface Font
Font.Style, Font.Weight
 
Field Summary
 
Fields inherited from interface Font
DEFAULT_FONTSIZE
 
Constructor Summary
protected FontImpl()
          Creates a new instance of DefaultFont
 
Method Summary
 Object accept(StyleVisitor visitor, Object data)
           
 Object clone()
          Creates a clone of the font.
 boolean equals(Object oth)
          Compares this font with another for equality.
 List<Expression> getFamily()
           
 Expression getFontFamily()
          Deprecated. 
 Expression getFontSize()
          Deprecated. 
 Expression getFontStyle()
          Deprecated. 
 Expression getFontWeight()
          Deprecated. 
 Expression getSize()
           
 Expression getStyle()
           
 Expression getWeight()
           
 int hashCode()
          Generates the hashcode for the font.
 void setFontFamily(Expression fontFamily)
          Deprecated. 
 void setFontSize(Expression fontSize)
          Deprecated. 
 void setFontStyle(Expression fontStyle)
          Deprecated. 
 void setFontWeight(Expression fontWeight)
          Deprecated. 
 void setSize(Expression size)
           
 void setStyle(Expression style)
           
 void setWeight(Expression weight)
           
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontImpl

protected FontImpl()
Creates a new instance of DefaultFont

Method Detail

getFontFamily

@Deprecated
public Expression getFontFamily()
Deprecated. 

Getter for property fontFamily.

Returns:
Value of property fontFamily.

getFamily

public List<Expression> getFamily()
Specified by:
getFamily in interface Font

setFontFamily

@Deprecated
public void setFontFamily(Expression fontFamily)
Deprecated. 

Setter for property fontFamily.

Parameters:
fontFamily - New value of property fontFamily.

getFontSize

@Deprecated
public Expression getFontSize()
Deprecated. 

Getter for property fontSize.

Returns:
Value of property fontSize.

getSize

public Expression getSize()
Specified by:
getSize in interface Font

setSize

public void setSize(Expression size)

setFontSize

@Deprecated
public void setFontSize(Expression fontSize)
Deprecated. 

Setter for property fontSize.

Parameters:
fontSize - New value of property fontSize.

getFontStyle

@Deprecated
public Expression getFontStyle()
Deprecated. 

Getter for property fontStyle.

Returns:
Value of property fontStyle.

getStyle

public Expression getStyle()
Specified by:
getStyle in interface Font

setStyle

public void setStyle(Expression style)

setFontStyle

@Deprecated
public void setFontStyle(Expression fontStyle)
Deprecated. 

Setter for property fontStyle.

Parameters:
fontStyle - New value of property fontStyle.

getFontWeight

@Deprecated
public Expression getFontWeight()
Deprecated. 

Getter for property fontWeight.

Returns:
Value of property fontWeight.

getWeight

public Expression getWeight()
Specified by:
getWeight in interface Font

setWeight

public void setWeight(Expression weight)

setFontWeight

@Deprecated
public void setFontWeight(Expression fontWeight)
Deprecated. 

Setter for property fontWeight.

Parameters:
fontWeight - New value of property fontWeight.

clone

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

Overrides:
clone in class Object
See Also:
Cloneable.clone()

hashCode

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

Overrides:
hashCode in class Object
Returns:
the hash code.

equals

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

Overrides:
equals in class Object
Parameters:
oth - DOCUMENT ME!
Returns:
True if this and oth are equal.

accept

public Object accept(StyleVisitor visitor,
                     Object data)
Specified by:
accept in interface Font


Copyright © 1996-2009 Geotools. All Rights Reserved.