|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.editor.language.BaseStyle
The 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.
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getName()
public java.lang.String getPresentationName()
public java.lang.String toString()
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()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.