Style

Inheritance: java.lang.Object

public class Style<T>

This class contains common properties of ParagraphStyle and TextStyle classes.

T :

Constructors

ConstructorDescription
Style()

Methods

MethodDescription
getFontColor()Gets or sets the font color.
getFontName()Gets or sets the font name.
getFontSize()Gets or sets the font size.
getFontStyle()Gets the font style.
getHighlight()Gets or sets the highlight color.
hashCode()Serves as a hash function for the type.
isBold()Gets or sets a value indicating whether the text style is bold.
isItalic()Gets or sets a value indicating whether the text style is italic.
isStrikethrough()Gets or sets a value indicating whether the text style is strikethrough.
isSubscript()Gets or sets a value indicating whether the text style is subscript.
isSuperscript()Gets or sets a value indicating whether the text style is superscript.
isUnderline()Gets or sets a value indicating whether the text style is underline.
setBold(boolean value)Gets or sets a value indicating whether the text style is bold.
setFontColor(Color value)Gets or sets the font color.
setFontName(String value)Gets or sets the font name.
setFontSize(Integer value)Gets or sets the font size.
setHighlight(Color value)Gets or sets the highlight color.
setItalic(boolean value)Gets or sets a value indicating whether the text style is italic.
setStrikethrough(boolean value)Gets or sets a value indicating whether the text style is strikethrough.
setSubscript(boolean value)Gets or sets a value indicating whether the text style is subscript.
setSuperscript(boolean value)Gets or sets a value indicating whether the text style is superscript.
setUnderline(boolean value)Gets or sets a value indicating whether the text style is underline.

Style()

public Style()

getFontColor()

public final Color getFontColor()

Gets or sets the font color.

Returns: java.awt.Color

getFontName()

public final String getFontName()

Gets or sets the font name.

Returns: java.lang.String

getFontSize()

public final Integer getFontSize()

Gets or sets the font size.

Returns: java.lang.Integer

getFontStyle()

public final int getFontStyle()

Gets the font style.

Returns: int

getHighlight()

public final Color getHighlight()

Gets or sets the highlight color.

Returns: java.awt.Color

hashCode()

public int hashCode()

Serves as a hash function for the type.

Returns: int - The int.

isBold()

public final boolean isBold()

Gets or sets a value indicating whether the text style is bold.

Returns: boolean

isItalic()

public final boolean isItalic()

Gets or sets a value indicating whether the text style is italic.

Returns: boolean

isStrikethrough()

public final boolean isStrikethrough()

Gets or sets a value indicating whether the text style is strikethrough.

Returns: boolean

isSubscript()

public final boolean isSubscript()

Gets or sets a value indicating whether the text style is subscript.

Returns: boolean

isSuperscript()

public final boolean isSuperscript()

Gets or sets a value indicating whether the text style is superscript.

Returns: boolean

isUnderline()

public final boolean isUnderline()

Gets or sets a value indicating whether the text style is underline.

Returns: boolean

setBold(boolean value)

public final T setBold(boolean value)

Gets or sets a value indicating whether the text style is bold.

Parameters:

ParameterTypeDescription
valueboolean

Returns: T

setFontColor(Color value)

public final T setFontColor(Color value)

Gets or sets the font color.

Parameters:

ParameterTypeDescription
valuejava.awt.Color

Returns: T

setFontName(String value)

public final T setFontName(String value)

Gets or sets the font name.

Parameters:

ParameterTypeDescription
valuejava.lang.String

Returns: T

setFontSize(Integer value)

public final T setFontSize(Integer value)

Gets or sets the font size.

Parameters:

ParameterTypeDescription
valuejava.lang.Integer

Returns: T

setHighlight(Color value)

public final T setHighlight(Color value)

Gets or sets the highlight color.

Parameters:

ParameterTypeDescription
valuejava.awt.Color

Returns: T

setItalic(boolean value)

public final T setItalic(boolean value)

Gets or sets a value indicating whether the text style is italic.

Parameters:

ParameterTypeDescription
valueboolean

Returns: T

setStrikethrough(boolean value)

public final T setStrikethrough(boolean value)

Gets or sets a value indicating whether the text style is strikethrough.

Parameters:

ParameterTypeDescription
valueboolean

Returns: T

setSubscript(boolean value)

public final T setSubscript(boolean value)

Gets or sets a value indicating whether the text style is subscript.

Parameters:

ParameterTypeDescription
valueboolean

Returns: T

setSuperscript(boolean value)

public final T setSuperscript(boolean value)

Gets or sets a value indicating whether the text style is superscript.

Parameters:

ParameterTypeDescription
valueboolean

Returns: T

setUnderline(boolean value)

public final T setUnderline(boolean value)

Gets or sets a value indicating whether the text style is underline.

Parameters:

ParameterTypeDescription
valueboolean

Returns: T