TextProperties

Inheritance: java.lang.Object

public final class TextProperties

Represents text properties such as: text size, color, style etc.

Constructors

ConstructorDescription
TextProperties(double textSize)Creates TextProperties object for the specified text size

Methods

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

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

ParameterTypeDescription
valuejava.awt.ColorColor 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:

ParameterTypeDescription
valuedoubledouble value

isTextSizeSpecified()

public boolean isTextSizeSpecified()

Gets a value that indicates whether the TextSize property is specified.

Returns: boolean - boolean value