|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Font element identifies a font of a certain family, style, weight, size and color.
The supported CSS-Parameter names are:
Field Summary | |
static java.awt.Color |
COLOR_DEFAULT
|
static int |
SIZE_DEFAULT
|
static int |
STYLE_ITALIC
|
static int |
STYLE_NORMAL
|
static int |
STYLE_OBLIQUE
|
static int |
WEIGHT_BOLD
|
static int |
WEIGHT_NORMAL
|
Method Summary | |
java.awt.Color |
getColor(Feature feature)
Returns the (evaluated) value of the font's CssParameter 'font-color'. |
java.lang.String |
getFamily(Feature feature)
Returns the (evaluated) value of the font's CssParameter 'font-family'. |
int |
getSize(Feature feature)
Returns the (evaluated) value of the font's CssParameter 'font-size'. |
int |
getStyle(Feature feature)
Returns the (evaluated) value of the font's CssParameter 'font-style'. |
int |
getWeight(Feature feature)
Returns the (evaluated) value of the font's CssParameter 'font-weight' as a ParameterValueType. |
void |
setColor(java.awt.Color color)
Sets the value of the font's CssParameter 'font-color'. |
void |
setFamily(java.lang.String family)
Sets the value of the font's CssParameter 'font-family'. |
void |
setSize(int size)
Returns the (evaluated) value of the font's CssParameter 'font-size'. |
void |
setStyle(int style)
Sets the value of the font's CssParameter 'font-style'. |
void |
setWeight(int weight)
Sets the value of the font's CssParameter 'font-weight'. |
Field Detail |
public static final int STYLE_NORMAL
public static final int STYLE_ITALIC
public static final int STYLE_OBLIQUE
public static final int WEIGHT_NORMAL
public static final int WEIGHT_BOLD
public static final int SIZE_DEFAULT
public static final java.awt.Color COLOR_DEFAULT
Method Detail |
public java.lang.String getFamily(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setFamily(java.lang.String family)
family
- font family to be setpublic int getStyle(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setStyle(int style)
style
- font-style to be setpublic int getWeight(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setWeight(int weight)
weight
- font-weight to be setpublic int getSize(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setSize(int size)
size
- font-size to be setpublic java.awt.Color getColor(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setColor(java.awt.Color color)
color
- the font-color to be set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |