Style

Inheritance: java.lang.Object

public class Style<T>

This class contains common properties of ParagraphStyle and TextStyle classes.

Constructors

ConstructorDescription
Style()

Methods

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

Style()

public Style()

isBold()

public final boolean isBold()

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

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

isItalic()

public final boolean isItalic()

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

Returns: boolean

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

isUnderline()

public final boolean isUnderline()

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

Returns: boolean

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

isStrikethrough()

public final boolean isStrikethrough()

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

Returns: boolean

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

isSuperscript()

public final boolean isSuperscript()

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

Returns: boolean

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

isSubscript()

public final boolean isSubscript()

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

Returns: boolean

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

getFontName()

public final String getFontName()

Gets or sets the font name.

Returns: java.lang.String

setFontName(String value)

public final T setFontName(String value)

Gets or sets the font name.

Parameters:

ParameterTypeDescription
valuejava.lang.String

Returns: T

getFontSize()

public final Integer getFontSize()

Gets or sets the font size.

Returns: java.lang.Integer

setFontSize(Integer value)

public final T setFontSize(Integer value)

Gets or sets the font size.

Parameters:

ParameterTypeDescription
valuejava.lang.Integer

Returns: T

getFontColor()

public final Color getFontColor()

Gets or sets the font color.

Returns: java.awt.Color

setFontColor(Color value)

public final T setFontColor(Color value)

Gets or sets the font color.

Parameters:

ParameterTypeDescription
valuejava.awt.Color

Returns: T

getHighlight()

public final Color getHighlight()

Gets or sets the highlight color.

Returns: java.awt.Color

setHighlight(Color value)

public final T setHighlight(Color value)

Gets or sets the highlight color.

Parameters:

ParameterTypeDescription
valuejava.awt.Color

Returns: T

getFontStyle()

public final int getFontStyle()

Gets the font style.

Returns: int

hashCode()

public int hashCode()

Serves as a hash function for the type.

Returns: int - The int .