public class Style<T extends Style> extends Object
This class contains common properties of ParagraphStyle
and TextStyle
classes.
Constructor and Description |
---|
Style() |
Modifier and Type | Method and Description |
---|---|
Color |
getFontColor()
Gets or sets the font color.
|
String |
getFontName()
Gets or sets the font name.
|
Integer |
getFontSize()
Gets or sets the font size.
|
int |
getFontStyle()
Gets the font style.
|
Color |
getHighlight()
Gets or sets the highlight color.
|
int |
hashCode()
Serves as a hash function for the type.
|
boolean |
isBold()
Gets or sets a value indicating whether the text style is bold.
|
boolean |
isItalic()
Gets or sets a value indicating whether the text style is italic.
|
boolean |
isStrikethrough()
Gets or sets a value indicating whether the text style is strikethrough.
|
boolean |
isSubscript()
Gets or sets a value indicating whether the text style is subscript.
|
boolean |
isSuperscript()
Gets or sets a value indicating whether the text style is superscript.
|
boolean |
isUnderline()
Gets or sets a value indicating whether the text style is underline.
|
T |
setBold(boolean value)
Gets or sets a value indicating whether the text style is bold.
|
T |
setFontColor(Color value)
Gets or sets the font color.
|
T |
setFontName(String value)
Gets or sets the font name.
|
T |
setFontSize(Integer value)
Gets or sets the font size.
|
T |
setHighlight(Color value)
Gets or sets the highlight color.
|
T |
setItalic(boolean value)
Gets or sets a value indicating whether the text style is italic.
|
T |
setStrikethrough(boolean value)
Gets or sets a value indicating whether the text style is strikethrough.
|
T |
setSubscript(boolean value)
Gets or sets a value indicating whether the text style is subscript.
|
T |
setSuperscript(boolean value)
Gets or sets a value indicating whether the text style is superscript.
|
T |
setUnderline(boolean value)
Gets or sets a value indicating whether the text style is underline.
|
public final boolean isBold()
Gets or sets a value indicating whether the text style is bold.
public final T setBold(boolean value)
Gets or sets a value indicating whether the text style is bold.
public final boolean isItalic()
Gets or sets a value indicating whether the text style is italic.
public final T setItalic(boolean value)
Gets or sets a value indicating whether the text style is italic.
public final boolean isUnderline()
Gets or sets a value indicating whether the text style is underline.
public final T setUnderline(boolean value)
Gets or sets a value indicating whether the text style is underline.
public final boolean isStrikethrough()
Gets or sets a value indicating whether the text style is strikethrough.
public final T setStrikethrough(boolean value)
Gets or sets a value indicating whether the text style is strikethrough.
public final boolean isSuperscript()
Gets or sets a value indicating whether the text style is superscript.
public final T setSuperscript(boolean value)
Gets or sets a value indicating whether the text style is superscript.
public final boolean isSubscript()
Gets or sets a value indicating whether the text style is subscript.
public final T setSubscript(boolean value)
Gets or sets a value indicating whether the text style is subscript.
public final String getFontName()
Gets or sets the font name.
public final Integer getFontSize()
Gets or sets the font size.
public final Color getFontColor()
Gets or sets the font color.
public final Color getHighlight()
Gets or sets the highlight color.
public final int getFontStyle()
Gets the font style.