|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.graphics.sld.Font_Impl
The Font element identifies a font of a certain family, style, weight, size and color.
The supported CSS-Parameter names are:
Field Summary | |
private java.util.HashMap |
cssParams
|
Fields inherited from interface org.deegree.graphics.sld.Font |
COLOR_DEFAULT, SIZE_DEFAULT, STYLE_ITALIC, STYLE_NORMAL, STYLE_OBLIQUE, WEIGHT_BOLD, WEIGHT_NORMAL |
Constructor Summary | |
protected |
Font_Impl(java.util.HashMap cssParams)
Constructs a new Font_Impl. |
Method Summary | |
java.lang.String |
exportAsXML()
exports the content of the Font as XML formated String |
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'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.HashMap cssParams
Constructor Detail |
protected Font_Impl(java.util.HashMap cssParams)
cssParams
- keys are Strings (see above), values are
CssParametersMethod 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 fails or the
specified style is not one of the following: 'normal', 'italic'
and 'oblique'public 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 fails or the
specified weight is not one of the following: 'normal' and 'bold'public 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 fails or the value
does not denote a valid number or the number is not greater or
equal zeropublic 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 setpublic java.lang.String exportAsXML()
exportAsXML
in interface Marshallable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |