Package org.geotools.styling
Class FontImpl
- Object
-
- FontImpl
-
-
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
Constructors Modifier Constructor Description protected
FontImpl()
Creates a new instance of DefaultFont
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(TraversingStyleVisitor visitor, Object data)
calls the visit method of a StyleVisitorObject
clone()
Creates a clone of the font.boolean
equals(Object oth)
Compares this font with another for equality.List<Expression>
getFamily()
SVG font-family parameters in preferred order.Expression
getSize()
Font size in pixels with a default of 10 pixels.Expression
getStyle()
The "font-style" SVG parameter should be "normal", "italic", or "oblique".Expression
getWeight()
The "font-weight" SVG parameter should be "normal" or "bold".int
hashCode()
Generates the hashcode for the font.void
setSize(Expression size)
void
setStyle(Expression style)
void
setWeight(Expression weight)
-
-
-
Method Detail
-
getFamily
public List<Expression> getFamily()
Description copied from interface:Font
SVG font-family parameters in preferred order.
-
getSize
public Expression getSize()
Description copied from interface:Font
Font size in pixels with a default of 10 pixels.Please note this is specified in pixels so you may need to take the resolution of your output into account when providing a size.
-
setSize
public void setSize(Expression size)
-
getStyle
public Expression getStyle()
Description copied from interface:Font
The "font-style" SVG parameter should be "normal", "italic", or "oblique".If null is returned the default value should be considered "normal".
-
setStyle
public void setStyle(Expression style)
-
getWeight
public Expression getWeight()
Description copied from interface:Font
The "font-weight" SVG parameter should be "normal" or "bold".If null the default should be considered as "normal"
-
setWeight
public void setWeight(Expression weight)
-
clone
public Object clone()
Creates a clone of the font.- Specified by:
clone
in interfaceCloneable
- Overrides:
clone
in classObject
- Returns:
- A copy of this object.
- See Also:
Cloneable.clone()
-
hashCode
public int hashCode()
Generates the hashcode for the font.
-
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.
-
-