|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFontImpl
public class FontImpl
Provides a Java representation of the Font element of an SLD.
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 | |
---|---|
protected |
FontImpl()
Creates a new instance of DefaultFont |
Method Summary | |
---|---|
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor |
Object |
clone()
Creates a clone of the font. |
boolean |
equals(Object oth)
Compares this font with another for equality. |
List<Expression> |
getFamily()
SVG font-family parameters in preferred order. |
Expression |
getFontFamily()
Deprecated. |
Expression |
getFontSize()
Deprecated. |
Expression |
getFontStyle()
Deprecated. |
Expression |
getFontWeight()
Deprecated. |
Expression |
getSize()
Font size in pixels with a default of 10 pixels. |
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". |
int |
hashCode()
Generates the hashcode for the font. |
void |
setFontFamily(Expression fontFamily)
Deprecated. |
void |
setFontSize(Expression fontSize)
Deprecated. |
void |
setFontStyle(Expression fontStyle)
Deprecated. |
void |
setFontWeight(Expression fontWeight)
Deprecated. |
void |
setSize(Expression size)
|
void |
setStyle(Expression style)
|
void |
setWeight(Expression weight)
|
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FontImpl()
Method Detail |
---|
@Deprecated public Expression getFontFamily()
public List<Expression> getFamily()
Font
getFamily
in interface Font
@Deprecated public void setFontFamily(Expression fontFamily)
fontFamily
- New value of property fontFamily.@Deprecated public Expression getFontSize()
public Expression getSize()
Font
Please note this is specified in pixels so you may need to take the resolution of your output into account when providing a size.
getSize
in interface Font
public void setSize(Expression size)
size
- the font size in pixels@Deprecated public void setFontSize(Expression fontSize)
fontSize
- New value of property fontSize.@Deprecated public Expression getFontStyle()
public Expression getStyle()
Font
If null is returned the default value should be considered "normal".
getStyle
in interface Font
public void setStyle(Expression style)
style
- The "font-style" SVG parameter (one of "normal", "italic", or "oblique"@Deprecated public void setFontStyle(Expression fontStyle)
fontStyle
- New value of property fontStyle.@Deprecated public Expression getFontWeight()
public Expression getWeight()
Font
If null the default should be considered as "normal"
getWeight
in interface Font
public void setWeight(Expression weight)
weight
- The "font-weight" SVG parameter (one of "normal", "bold")@Deprecated public void setFontWeight(Expression fontWeight)
fontWeight
- New value of property fontWeight.public Object clone()
clone
in class Object
Cloneable.clone()
public int hashCode()
hashCode
in class Object
public boolean equals(Object oth)
equals
in class Object
oth
- DOCUMENT ME!
public Object accept(StyleVisitor visitor, Object data)
Font
accept
in interface Font
visitor
- the style visitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |