Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.ide.controls
Class DefaultLabelColorScheme

java.lang.Object
  extended by oracle.ide.controls.DefaultLabelColorScheme
All Implemented Interfaces:
LabelColorScheme

public class DefaultLabelColorScheme
extends java.lang.Object
implements LabelColorScheme

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

_textSelectionColor

protected java.awt.Color _textSelectionColor

_textNonSelectionColor

protected java.awt.Color _textNonSelectionColor

_backgroundSelectionColor

protected java.awt.Color _backgroundSelectionColor

_backgroundNonSelectionColor

protected java.awt.Color _backgroundNonSelectionColor

_borderSelectionColor

protected java.awt.Color _borderSelectionColor
Constructor Detail

DefaultLabelColorScheme

public DefaultLabelColorScheme()
Method Detail

getTextSelectionColor

public java.awt.Color getTextSelectionColor()
Description copied from interface: LabelColorScheme
Returns the Color to be used for text when the label is selected.

Specified by:
getTextSelectionColor in interface LabelColorScheme

getTextNonSelectionColor

public java.awt.Color getTextNonSelectionColor()
Description copied from interface: LabelColorScheme
Returns the Color to be used for text when the label is not selected.

Specified by:
getTextNonSelectionColor in interface LabelColorScheme

getBackgroundSelectionColor

public java.awt.Color getBackgroundSelectionColor()
Description copied from interface: LabelColorScheme
Returns the Color to be used for the background when the label is selected.

Specified by:
getBackgroundSelectionColor in interface LabelColorScheme

getBackgroundNonSelectionColor

public java.awt.Color getBackgroundNonSelectionColor()
Description copied from interface: LabelColorScheme
Returns the Color to be used for the background when the label is not selected.

Specified by:
getBackgroundNonSelectionColor in interface LabelColorScheme

getBorderSelectionColor

public java.awt.Color getBorderSelectionColor()
Description copied from interface: LabelColorScheme
Returns the Color to be used for the border around the selection when the label is selected.

Specified by:
getBorderSelectionColor in interface LabelColorScheme

updateUI

public void updateUI()
Description copied from interface: LabelColorScheme
The 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.

Specified by:
updateUI in interface LabelColorScheme

_loadColors

protected void _loadColors()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.