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 protectedFontImpl()Creates a new instance of DefaultFont
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(TraversingStyleVisitor visitor, Object data)calls the visit method of a StyleVisitorObjectclone()Creates a clone of the font.booleanequals(Object oth)Compares this font with another for equality.List<Expression>getFamily()SVG font-family parameters in preferred order.ExpressiongetSize()Font size in pixels with a default of 10 pixels.ExpressiongetStyle()The "font-style" SVG parameter should be "normal", "italic", or "oblique".ExpressiongetWeight()The "font-weight" SVG parameter should be "normal" or "bold".inthashCode()Generates the hashcode for the font.voidsetSize(Expression size)voidsetStyle(Expression style)voidsetWeight(Expression weight)
-
-
-
Method Detail
-
getFamily
public List<Expression> getFamily()
Description copied from interface:FontSVG font-family parameters in preferred order.
-
getSize
public Expression getSize()
Description copied from interface:FontFont 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:FontThe "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:FontThe "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:
clonein interfaceCloneable- Overrides:
clonein 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.
-
-