Font.Style, Font.Weight
DEFAULT_FONTSIZE
Modifier | Constructor and Description |
---|---|
protected |
FontImpl()
Creates a new instance of DefaultFont
|
Modifier and Type | Method and Description |
---|---|
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) |
@Deprecated public Expression getFontFamily()
public List<Expression> getFamily()
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.
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".
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"
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()
public boolean equals(Object oth)
Copyright © 1996–2019 Geotools. All rights reserved.