|
||||||||||
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 |
clone()
Creates a clone of the font. |
static Font |
createDefault(FilterFactory filterFactory)
Utility method to capture the default font in one place. |
boolean |
equals(Object oth)
Compares this font with another for equality. |
List<Expression> |
getFamily()
SVG font-family parameters in preferred order. |
Expression |
getFontFamily()
Getter for property fontFamily. |
Expression |
getFontSize()
Getter for property fontSize. |
Expression |
getFontStyle()
Getter for property fontStyle. |
Expression |
getFontWeight()
Getter for property fontWeight. |
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". |
int |
hashCode()
Generates the hashcode for the font. |
void |
setFontFamily(Expression fontFamily)
Setter for property fontFamily. |
void |
setFontSize(Expression fontSize)
Setter for property fontSize. |
void |
setFontStyle(Expression fontStyle)
Setter for property fontStyle. |
void |
setFontWeight(Expression fontWeight)
Setter for property fontWeight. |
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 |
---|
public Expression getFontFamily()
getFontFamily
in interface Font
public List<Expression> getFamily()
Font
getFamily
in interface Font
public void setFontFamily(Expression fontFamily)
setFontFamily
in interface Font
fontFamily
- New value of property fontFamily.public Expression getFontSize()
getFontSize
in interface Font
public Expression getSize()
Font
getSize
in interface Font
public void setSize(Expression size)
setSize
in interface Font
size
- the font sizepublic void setFontSize(Expression fontSize)
setFontSize
in interface Font
fontSize
- New value of property fontSize.public Expression getFontStyle()
getFontStyle
in interface Font
public Expression getStyle()
Font
getStyle
in interface Font
public void setStyle(Expression style)
setStyle
in interface Font
style
- The "font-style" SVG parameter (one of "normal", "italic", or "oblique"public void setFontStyle(Expression fontStyle)
setFontStyle
in interface Font
fontStyle
- New value of property fontStyle.public Expression getFontWeight()
getFontWeight
in interface Font
public Expression getWeight()
Font
getWeight
in interface Font
public void setWeight(Expression weight)
setWeight
in interface Font
weight
- The "font-weight" SVG parameter (one of "normal", "bold")public void setFontWeight(Expression fontWeight)
setFontWeight
in interface Font
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 static Font createDefault(FilterFactory filterFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |