public final class BaseStyle
extends java.lang.Object
BaseStyle
defines a set of color attributes for
painting a segment of text. This is a simplification of the style
functionality provided in the text package for our purposes.
Note that the constructor is package-private intentionally - you
must go through the StyleRegistry
to create new
styles, or to modify existing styles.
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBackgroundColor()
Fetches the background color of the style.
|
int |
getFontStyle()
Fetches the font style of this style.
|
java.awt.Color |
getForegroundColor()
Fetches the foreground color of the style
|
boolean |
getHasParent()
Fetches whether this style has a parent or not.
|
java.lang.String |
getName()
Fetches the name of the style.
|
java.lang.String |
getParentName()
Fetches the name of the parent style.
|
java.lang.String |
getPresentationName()
Fetch the visible or presentation name of the style.
|
boolean |
getUsesParentBackgroundColor()
Fetch whether this style uses the parent background color.
|
boolean |
getUsesParentFontStyle()
Fetch whether this style uses the parent's font style.
|
boolean |
getUsesParentForegroundColor()
Fetch whether this style uses the parent foreground color.
|
java.lang.String |
toString()
Fetches the human-readable name of the style.
|
public java.lang.String getName()
public java.lang.String getPresentationName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean getHasParent()
public java.lang.String getParentName()
public java.awt.Color getForegroundColor()
public boolean getUsesParentForegroundColor()
public java.awt.Color getBackgroundColor()
public boolean getUsesParentBackgroundColor()
public int getFontStyle()
BaseStyle
, this is always the plain font.public boolean getUsesParentFontStyle()