TextStyle

Inheritance: java.lang.Object

public class TextStyle

Class representing checkbox field

Methods

MethodDescription
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:

ParameterTypeDescription
valuejava.lang.StringString 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:

ParameterTypeDescription
valuedoubledouble 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:

ParameterTypeDescription
valueTextAlignmentTextAlignment 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:

ParameterTypeDescription
valueHorizontalAlignmentHorizontalAlignment 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:

ParameterTypeDescription
valuejava.awt.ColorColor object

toString()

public String toString()

String representation of TextStyle.

Returns: java.lang.String - String representation.