|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.controls.DefaultLabelColorScheme
DefaultLabelColorScheme
uses colors that are appropriate
for rendering a JSelectableLabel
in a JTree
.
Field Summary | |
protected java.awt.Color |
_backgroundNonSelectionColor
|
protected java.awt.Color |
_backgroundSelectionColor
|
protected java.awt.Color |
_borderSelectionColor
|
protected java.awt.Color |
_textNonSelectionColor
|
protected java.awt.Color |
_textSelectionColor
|
Constructor Summary | |
DefaultLabelColorScheme()
|
Method Summary | |
protected void |
_loadColors()
|
java.awt.Color |
getBackgroundNonSelectionColor()
Returns the Color to be used for the background when
the label is not selected. |
java.awt.Color |
getBackgroundSelectionColor()
Returns the Color to be used for the background when
the label is selected. |
java.awt.Color |
getBorderSelectionColor()
Returns the Color to be used for the border around
the selection when the label is selected. |
java.awt.Color |
getTextNonSelectionColor()
Returns the Color to be used for text when the label
is not selected. |
java.awt.Color |
getTextSelectionColor()
Returns the Color to be used for text when the label
is selected. |
void |
updateUI()
The JComponent subclass that uses the
LabelColorScheme should call this updateUI()
method when its own updateUI() method is called. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Color _textSelectionColor
protected java.awt.Color _textNonSelectionColor
protected java.awt.Color _backgroundSelectionColor
protected java.awt.Color _backgroundNonSelectionColor
protected java.awt.Color _borderSelectionColor
Constructor Detail |
public DefaultLabelColorScheme()
Method Detail |
public java.awt.Color getTextSelectionColor()
LabelColorScheme
Color
to be used for text when the label
is selected.
getTextSelectionColor
in interface LabelColorScheme
public java.awt.Color getTextNonSelectionColor()
LabelColorScheme
Color
to be used for text when the label
is not selected.
getTextNonSelectionColor
in interface LabelColorScheme
public java.awt.Color getBackgroundSelectionColor()
LabelColorScheme
Color
to be used for the background when
the label is selected.
getBackgroundSelectionColor
in interface LabelColorScheme
public java.awt.Color getBackgroundNonSelectionColor()
LabelColorScheme
Color
to be used for the background when
the label is not selected.
getBackgroundNonSelectionColor
in interface LabelColorScheme
public java.awt.Color getBorderSelectionColor()
LabelColorScheme
Color
to be used for the border around
the selection when the label is selected.
getBorderSelectionColor
in interface LabelColorScheme
public void updateUI()
LabelColorScheme
JComponent
subclass that uses the
LabelColorScheme
should call this updateUI()
method when its own updateUI()
method is called. This
is so that the color scheme can be updated when the user changes the
look-and-feel.
updateUI
in interface LabelColorScheme
protected void _loadColors()
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.