public final class TextProperties extends Object
Represents text properties such as: text size, color, style etc.
Constructor and Description |
---|
TextProperties(double textSize)
Creates
TextProperties object for the specified text size
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Gets text color.
|
double |
getTextSize()
Gets text size.
|
boolean |
isColorSpecified()
Gets a value that indicates whether the
Color property is specified. |
boolean |
isTextSizeSpecified()
Gets a value that indicates whether the
TextSize property is specified. |
void |
setColor(Color value)
Sets text color.
|
void |
setTextSize(double value)
Sets text size.
|
public TextProperties(double textSize)
Creates TextProperties
object for the specified text size
textSize
- Text size value.public Color getColor()
Gets text color.
public void setColor(Color value)
Sets text color.
value
- Color objectpublic boolean isColorSpecified()
Gets a value that indicates whether the Color
property is specified.
public double getTextSize()
Gets text size.
public void setTextSize(double value)
Sets text size.
value
- double valuepublic boolean isTextSizeSpecified()
Gets a value that indicates whether the TextSize
property is specified.