org.opengis.style
Interface Font

All Known Subinterfaces:
Font
All Known Implementing Classes:
FontImpl

@XmlElement(value="Font")
public interface Font

The Font element identifies a font of a certain family, style, and size.

Since:
GeoAPI 2.2
Author:
Open Geospatial Consortium, Johann Sorel (Geomatys), Chris Dillard (SYS Technologies)

Method Summary
 Object accept(StyleVisitor visitor, Object extraData)
          calls the visit method of a StyleVisitor
 List<Expression> getFamily()
          The "font-family" SvgParameter element gives the family name of a font to use.
 Expression getSize()
          The "font-size" SvgParameter element gives the size to use for the font in pixels.
 Expression getStyle()
          The "font-style" SvgParameter element gives the style to use for a font.
 Expression getWeight()
          The "font-weight" SvgParameter element gives the amount of weight or boldness to use for a font.
 

Method Detail

getFamily

@XmlParameter(value="font-familly")
List<Expression> getFamily()
The "font-family" SvgParameter element gives the family name of a font to use. Allowed values are system-dependent. Any number of font-family SvgParameter elements may be given and they are assumed to be in preferred order.

Returns:
live list of font family

getStyle

@XmlParameter(value="font-style")
Expression getStyle()
The "font-style" SvgParameter element gives the style to use for a font. The allowed values are "normal", "italic", and "oblique". If null, the default is "normal".

Returns:
Expression or Expression.NIL

getWeight

@XmlParameter(value="font-weight")
Expression getWeight()
The "font-weight" SvgParameter element gives the amount of weight or boldness to use for a font. Allowed values are "normal" and "bold". If null, the default is "normal".

Returns:
Expression or or Expression.NIL

getSize

@XmlParameter(value="font-size")
Expression getSize()
The "font-size" SvgParameter element gives the size to use for the font in pixels. The default is defined to be 10 pixels, though various systems may have restrictions on what sizes are available.

Returns:
Expression or null

accept

@Extension
Object accept(StyleVisitor visitor,
                        Object extraData)
calls the visit method of a StyleVisitor

Parameters:
visitor - the style visitor


Copyright © 1996-2014 Geotools. All Rights Reserved.