org.geotools.styling
Interface Font

All Known Implementing Classes:
FontImpl

public interface Font

A system-independent object for holding SLD font information. This holds information on the text font to use in text processing. Font-family, font-style, font-weight and font-size.

Author:
Ian Turton, CCG
Module:

Nested Class Summary
static interface Font.Style
          Enumeration of allow font-style values.
static interface Font.Weight
          Enumeration of allow font-weight values.
 
Field Summary
static int DEFAULT_FONTSIZE
          default font-size value
 
Method Summary
 List<Expression> getFamily()
          SVG font-family parameters in preferred order.
 Expression getFontFamily()
          Deprecated. use getFamilly().get(0) for the preferred font
 Expression getFontSize()
          Deprecated. use getSize
 Expression getFontStyle()
          Deprecated. Please use getStyle in 2.6.x
 Expression getFontWeight()
          Deprecated. use getWeight
 Expression getSize()
          Font size.
 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".
 void setFontFamily(Expression family)
          Deprecated. Please use getFontFamilly.set( 0, expression )
 void setFontSize(Expression size)
          Deprecated. symbolizers and underneath classes will be immutable in 2.6.x
 void setFontStyle(Expression style)
          Deprecated. Please use setStyle( style )
 void setFontWeight(Expression weight)
          Deprecated. Please use setWeight( weight )
 void setSize(Expression size)
           
 void setStyle(Expression style)
           
 void setWeight(Expression weight)
           
 

Field Detail

DEFAULT_FONTSIZE

static final int DEFAULT_FONTSIZE
default font-size value

See Also:
Constant Field Values
Method Detail

getFontFamily

Expression getFontFamily()
Deprecated. use getFamilly().get(0) for the preferred font


getFamily

List<Expression> getFamily()
SVG font-family parameters in preferred order.

Returns:
live list of font-family parameters in preferred order

setFontFamily

void setFontFamily(Expression family)
Deprecated. Please use getFontFamilly.set( 0, expression )

Parameters:
family - Expression indicating the font fact to use

getStyle

Expression getStyle()
The "font-style" SVG parameter should be "normal", "italic", or "oblique".

Returns:
Expression or null

setStyle

void setStyle(Expression style)
Parameters:
style - The "font-style" SVG parameter (one of "normal", "italic", or "oblique"

getFontStyle

Expression getFontStyle()
Deprecated. Please use getStyle in 2.6.x


setFontStyle

void setFontStyle(Expression style)
Deprecated. Please use setStyle( style )


getFontWeight

Expression getFontWeight()
Deprecated. use getWeight


setFontWeight

void setFontWeight(Expression weight)
Deprecated. Please use setWeight( weight )


getWeight

Expression getWeight()
The "font-weight" SVG parameter should be "normal" or "bold".

Returns:
font-weight SVG parameter

setWeight

void setWeight(Expression weight)
Parameters:
weight - The "font-weight" SVG parameter (one of "normal", "bold")

getFontSize

Expression getFontSize()
Deprecated. use getSize


setFontSize

void setFontSize(Expression size)
Deprecated. symbolizers and underneath classes will be immutable in 2.6.x


getSize

Expression getSize()
Font size.

Returns:
font size

setSize

void setSize(Expression size)
Parameters:
size - the font size


Copyright © 1996-2009 Geotools. All Rights Reserved.