WebFont
Inheritance: java.lang.Object
public final class WebFont
Represents a font settings for the web
Methods
Method | Description |
---|---|
getColor() | Font color in ARGB32 format |
setColor(ArgbColor value) | Font color in ARGB32 format |
getWeight() | Sets the weight (or boldness) of the font |
setWeight(FontWeight value) | Sets the weight (or boldness) of the font |
getStyle() | Sets whether a font should be styled with a normal, italic, or oblique face from its font-family. |
setStyle(FontStyle value) | Sets whether a font should be styled with a normal, italic, or oblique face from its font-family. |
getLine() | Sets a line or combination of lines, applied to the text |
setLine(TextDecorationLineType value) | Sets a line or combination of lines, applied to the text |
getSize() | Sets the size of the font in absolute or relative units |
setSize(FontSize value) | Sets the size of the font in absolute or relative units |
getName() | Sets the font name. |
setName(String value) | Sets the font name. |
deepClone() | Creates and returns a full deep copy of this WebFont instance |
equals(WebFont other) | Determines whether this instance of WebFont is equal to specified |
equals(Object obj) | Determines whether this instance of WebFont is equal to specified uncasted object |
getColor()
public final ArgbColor getColor()
Font color in ARGB32 format
Returns: ArgbColor
setColor(ArgbColor value)
public final void setColor(ArgbColor value)
Font color in ARGB32 format
Parameters:
Parameter | Type | Description |
---|---|---|
value | ArgbColor |
getWeight()
public final FontWeight getWeight()
Sets the weight (or boldness) of the font
Returns: FontWeight
setWeight(FontWeight value)
public final void setWeight(FontWeight value)
Sets the weight (or boldness) of the font
Parameters:
Parameter | Type | Description |
---|---|---|
value | FontWeight |
getStyle()
public final FontStyle getStyle()
Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
Returns: FontStyle
setStyle(FontStyle value)
public final void setStyle(FontStyle value)
Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
Parameters:
Parameter | Type | Description |
---|---|---|
value | FontStyle |
getLine()
public final TextDecorationLineType getLine()
Sets a line or combination of lines, applied to the text
Returns: TextDecorationLineType
setLine(TextDecorationLineType value)
public final void setLine(TextDecorationLineType value)
Sets a line or combination of lines, applied to the text
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextDecorationLineType |
getSize()
public final FontSize getSize()
Sets the size of the font in absolute or relative units
Returns: FontSize
setSize(FontSize value)
public final void setSize(FontSize value)
Sets the size of the font in absolute or relative units
Parameters:
Parameter | Type | Description |
---|---|---|
value | FontSize |
getName()
public final String getName()
Sets the font name. If not specified, the default font will be used
Returns: java.lang.String
setName(String value)
public final void setName(String value)
Sets the font name. If not specified, the default font will be used
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
deepClone()
public final WebFont deepClone()
Creates and returns a full deep copy of this WebFont instance
Returns: WebFont - New WebFont instance, that is a full and deep copy of this one
equals(WebFont other)
public final boolean equals(WebFont other)
Determines whether this instance of WebFont is equal to specified
Parameters:
Parameter | Type | Description |
---|---|---|
other | WebFont | Another WebFont to check equality, may be NULL |
Returns: boolean - true if equal, false if unequal
equals(Object obj)
public boolean equals(Object obj)
Determines whether this instance of WebFont is equal to specified uncasted object
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | Object, that is expected to be a WebFont instance |
Returns: boolean - true if equal, false if unequal