@Api(allMethods=true) public class FontStyleInfo extends Object implements IsInfo, CacheableObject
| Constructor and Description |
|---|
FontStyleInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyDefaults()
Applies default values to all properties that have not been set.
|
boolean |
equals(Object o)
Are the two objects equal?
|
String |
getCacheId()
String identifier which is guaranteed to include sufficient information to assure to be different for two
instances which could produce different result.
|
String |
getColor()
Get the font color.
|
String |
getFamily()
Get the font family.
|
float |
getOpacity()
Get the font opacity.
|
int |
getSize()
Get the font size.
|
String |
getStyle()
Get the font style.
|
String |
getWeight()
Get the font weight.
|
int |
hashCode()
Calculate object hash code.
|
void |
setColor(String color)
Set the font color (as HTML color).
|
void |
setFamily(String family)
Set the font family ("Verdana", "Arial", ...).
|
void |
setOpacity(float opacity)
Set the font opacity (between 0 and 1).
|
void |
setSize(int size)
Set the font size.
|
void |
setStyle(String style)
Set the font style ("normal", "italic", ...).
|
void |
setWeight(String weight)
Set the font weight ("normal", "bold").
|
String |
toString()
String representation of object.
|
public void applyDefaults()
public int getSize()
public void setSize(int size)
size - The new font size.public String getFamily()
public void setFamily(String family)
family - The new font family.public String getWeight()
public void setWeight(String weight)
weight - The new font weight.public String getStyle()
public void setStyle(String style)
style - The new font style.public String getColor()
public void setColor(String color)
color - The new color.public float getOpacity()
public void setOpacity(float opacity)
opacity - The new opacity.public String getCacheId()
getCacheId in interface CacheableObjectpublic String toString()
public boolean equals(Object o)
Copyright © 2015 Geosparc. All Rights Reserved.