Package org.geotools.styling
Class FontImpl
Object
FontImpl
Provides a Java representation of the Font element of an SLD.
- Author:
- Ian Turton, CCG
-
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 -
Method Summary
Modifier and TypeMethodDescriptionaccept
(TraversingStyleVisitor visitor, Object data) calls the visit method of a StyleVisitorclone()
Creates a clone of the font.boolean
Compares this font with another for equality.SVG font-family parameters in preferred order.getSize()
Font size in pixels with a default of 10 pixels.getStyle()
The "font-style" SVG parameter should be "normal", "italic", or "oblique".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)
-
Constructor Details
-
FontImpl
protected FontImpl()Creates a new instance of DefaultFont
-
-
Method Details
-
getFamily
Description copied from interface:Font
SVG font-family parameters in preferred order. -
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
-
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
-
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
-
clone
Creates a clone of the font. -
hashCode
public int hashCode()Generates the hashcode for the font. -
equals
Compares this font with another for equality. Two fonts are equal if their family, style, weight and size are equal. -
accept
Description copied from interface:Font
calls the visit method of a StyleVisitor
-