|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.styling.FontImpl
public class FontImpl
Provides a Java representation of the Font element of an SLD.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.geotools.styling.Font |
---|
Font.Style, Font.Weight |
Field Summary |
---|
Fields inherited from interface org.geotools.styling.Font |
---|
DEFAULT_FONTSIZE |
Constructor Summary | |
---|---|
protected |
FontImpl()
Creates a new instance of DefaultFont |
Method Summary | |
---|---|
java.lang.Object |
accept(org.opengis.style.StyleVisitor visitor,
java.lang.Object data)
|
java.lang.Object |
clone()
Creates a clone of the font. |
boolean |
equals(java.lang.Object oth)
Compares this font with another for equality. |
java.util.List<org.opengis.filter.expression.Expression> |
getFamily()
SVG font-family parameters in preferred order. |
org.opengis.filter.expression.Expression |
getFontFamily()
Deprecated. |
org.opengis.filter.expression.Expression |
getFontSize()
Deprecated. |
org.opengis.filter.expression.Expression |
getFontStyle()
Deprecated. |
org.opengis.filter.expression.Expression |
getFontWeight()
Deprecated. |
org.opengis.filter.expression.Expression |
getSize()
Font size in pixels with a default of 10 pixels. |
org.opengis.filter.expression.Expression |
getStyle()
The "font-style" SVG parameter should be "normal", "italic", or "oblique". |
org.opengis.filter.expression.Expression |
getWeight()
The "font-weight" SVG parameter should be "normal" or "bold". |
int |
hashCode()
Generates the hashcode for the font. |
void |
setFontFamily(org.opengis.filter.expression.Expression fontFamily)
Deprecated. |
void |
setFontSize(org.opengis.filter.expression.Expression fontSize)
Deprecated. |
void |
setFontStyle(org.opengis.filter.expression.Expression fontStyle)
Deprecated. |
void |
setFontWeight(org.opengis.filter.expression.Expression fontWeight)
Deprecated. |
void |
setSize(org.opengis.filter.expression.Expression size)
|
void |
setStyle(org.opengis.filter.expression.Expression style)
|
void |
setWeight(org.opengis.filter.expression.Expression weight)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FontImpl()
Method Detail |
---|
@Deprecated public org.opengis.filter.expression.Expression getFontFamily()
public java.util.List<org.opengis.filter.expression.Expression> getFamily()
Font
getFamily
in interface org.opengis.style.Font
@Deprecated public void setFontFamily(org.opengis.filter.expression.Expression fontFamily)
fontFamily
- New value of property fontFamily.@Deprecated public org.opengis.filter.expression.Expression getFontSize()
public org.opengis.filter.expression.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 org.opengis.style.Font
public void setSize(org.opengis.filter.expression.Expression size)
size
- the font size in pixels@Deprecated public void setFontSize(org.opengis.filter.expression.Expression fontSize)
fontSize
- New value of property fontSize.@Deprecated public org.opengis.filter.expression.Expression getFontStyle()
public org.opengis.filter.expression.Expression getStyle()
Font
If null is returned the default value should be considered "normal".
getStyle
in interface org.opengis.style.Font
public void setStyle(org.opengis.filter.expression.Expression style)
style
- The "font-style" SVG parameter (one of "normal", "italic", or "oblique"@Deprecated public void setFontStyle(org.opengis.filter.expression.Expression fontStyle)
fontStyle
- New value of property fontStyle.@Deprecated public org.opengis.filter.expression.Expression getFontWeight()
public org.opengis.filter.expression.Expression getWeight()
Font
If null the default should be considered as "normal"
getWeight
in interface org.opengis.style.Font
public void setWeight(org.opengis.filter.expression.Expression weight)
weight
- The "font-weight" SVG parameter (one of "normal", "bold")@Deprecated public void setFontWeight(org.opengis.filter.expression.Expression fontWeight)
fontWeight
- New value of property fontWeight.public java.lang.Object clone()
clone
in class java.lang.Object
Cloneable.clone()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object oth)
equals
in class java.lang.Object
oth
- DOCUMENT ME!
public java.lang.Object accept(org.opengis.style.StyleVisitor visitor, java.lang.Object data)
accept
in interface org.opengis.style.Font
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |