TextStyle
Inheritance: java.lang.Object
public class TextStyle
Class representing checkbox field
Methods
Method | Description |
---|---|
getFontName() | Get the Name of the font. |
setFontName(String value) | Set the Name of the font. |
getFontSize() | Get the Fonts size. |
setFontSize(double value) | Set the Fonts size. |
getAlignment() | Gets horizontal alignment of the text. |
setAlignment(TextAlignment value) | Sets horizontal alignment of the text. |
getHorizontalAlignment() | Text alignment. |
setHorizontalAlignment(HorizontalAlignment value) | Text alignment. |
getColor() | Get the Color of the text. |
setColor(Color value) | Set the Color of the text. |
toString() | String representation of TextStyle. |
getFontName()
public String getFontName()
Get the Name of the font.
Returns: java.lang.String - String value
setFontName(String value)
public void setFontName(String value)
Set the Name of the font.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | String value |
getFontSize()
public double getFontSize()
Get the Fonts size.
Returns: double - double value
setFontSize(double value)
public void setFontSize(double value)
Set the Fonts size.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double value |
getAlignment()
public TextAlignment getAlignment()
Gets horizontal alignment of the text.
Returns: TextAlignment - TextAlignment value
setAlignment(TextAlignment value)
public void setAlignment(TextAlignment value)
Sets horizontal alignment of the text.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextAlignment | TextAlignment value |
getHorizontalAlignment()
public HorizontalAlignment getHorizontalAlignment()
Text alignment. Valid values are: Left, Center, Rigth.
Returns: HorizontalAlignment - HorizontalAlignment value
setHorizontalAlignment(HorizontalAlignment value)
public void setHorizontalAlignment(HorizontalAlignment value)
Text alignment. Valid values are: Left, Center, Rigth.
Parameters:
Parameter | Type | Description |
---|---|---|
value | HorizontalAlignment | HorizontalAlignment value |
getColor()
public Color getColor()
Get the Color of the text.
Returns: Color - Color object
setColor(Color value)
public void setColor(Color value)
Set the Color of the text.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color | Color object |
toString()
public String toString()
String representation of TextStyle.
Returns: java.lang.String - String representation.