TextProperties
Contents
[
Hide
]Inheritance: java.lang.Object
public final class TextProperties
Represents text properties such as: text size, color, style etc.
Constructors
Constructor | Description |
---|---|
TextProperties(double textSize) | Creates TextProperties object for the specified text size |
Methods
Method | Description |
---|---|
getColor() | Gets text color. |
setColor(Color value) | Sets text color. |
isColorSpecified() | Gets a value that indicates whether the Color property is specified. |
getTextSize() | Gets text size. |
setTextSize(double value) | Sets text size. |
isTextSizeSpecified() | Gets a value that indicates whether the TextSize property is specified. |
TextProperties(double textSize)
public TextProperties(double textSize)
Creates TextProperties object for the specified text size
Parameters:
Parameter | Type | Description |
---|---|---|
textSize | double | Text size value. |
getColor()
public Color getColor()
Gets text color.
Returns: Color - Color object
setColor(Color value)
public void setColor(Color value)
Sets text color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color | Color object |
isColorSpecified()
public boolean isColorSpecified()
Gets a value that indicates whether the Color property is specified.
Returns: boolean - boolean value
getTextSize()
public double getTextSize()
Gets text size.
Returns: double - double value
setTextSize(double value)
public void setTextSize(double value)
Sets text size.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double value |
isTextSizeSpecified()
public boolean isTextSizeSpecified()
Gets a value that indicates whether the TextSize property is specified.
Returns: boolean - boolean value