org.jdesktop.swingx.plaf
Class UIColorHighlighterAddon

java.lang.Object
  extended by org.jdesktop.swingx.plaf.AbstractComponentAddon
      extended by org.jdesktop.swingx.plaf.UIColorHighlighterAddon
All Implemented Interfaces:
ComponentAddon

public class UIColorHighlighterAddon
extends AbstractComponentAddon

Loads LF specific background striping colors. The colors are based on the LF selection colors for certain LFs and themes, for unknown LFs/themes a generic grey is used.


Constructor Summary
UIColorHighlighterAddon()
           
 
Method Summary
protected  ColorUIResource getGenericStriping()
          Creates and returns a generic striping color.
protected  ColorUIResource getMacStripingColor(LookAndFeelAddons addon)
          Creates and returns a the MacX specific striping color, may be null.
protected  ColorUIResource getMetalStripingColor(LookAndFeelAddons addon)
          Creates and returns a the Metal specific striping color, may be null.
protected  ColorUIResource getMotifStripingColor(LookAndFeelAddons addon)
          Creates and returns a the motif specific striping color, may be null.
protected  ColorUIResource getWindowStripingColor(LookAndFeelAddons addon)
          Creates and returns a the Windows specific striping color, may be null.
 void initialize(LookAndFeelAddons addon)
          Loads the LF-specific striping background color for usage in UIColorHighlighter.
 
Methods inherited from class org.jdesktop.swingx.plaf.AbstractComponentAddon
addBasicDefaults, addMacDefaults, addMetalDefaults, addMotifDefaults, addResource, addWindowsDefaults, getName, isMac, isMetal, isMotif, isPlastic, isSynth, isWindows, uninitialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIColorHighlighterAddon

public UIColorHighlighterAddon()
Parameters:
name -
Method Detail

initialize

public void initialize(LookAndFeelAddons addon)
Loads the LF-specific striping background color for usage in UIColorHighlighter.

Specified by:
initialize in interface ComponentAddon
Overrides:
initialize in class AbstractComponentAddon
Parameters:
addon - the current addon

getGenericStriping

protected ColorUIResource getGenericStriping()
Creates and returns a generic striping color. Internally used if no LF specific color is found.

Returns:
a generic striping color

getMacStripingColor

protected ColorUIResource getMacStripingColor(LookAndFeelAddons addon)
Creates and returns a the MacX specific striping color, may be null.

Parameters:
addon - the AddOn to create the color for
Returns:
the Mac specific striping color.

getMetalStripingColor

protected ColorUIResource getMetalStripingColor(LookAndFeelAddons addon)
Creates and returns a the Metal specific striping color, may be null. Checks for Ocean only.

Parameters:
addon - the AddOn to create the color for
Returns:
the Metal specific striping color.

getWindowStripingColor

protected ColorUIResource getWindowStripingColor(LookAndFeelAddons addon)
Creates and returns a the Windows specific striping color, may be null. Can handle classic and XP (normal blue, homestead, metalic).

PENDING: Vista?

Parameters:
addon - the AddOn to create the color for
Returns:
the Windows specific striping color.

getMotifStripingColor

protected ColorUIResource getMotifStripingColor(LookAndFeelAddons addon)
Creates and returns a the motif specific striping color, may be null. PENDING: no Motif included in color design map, returns generic.

Parameters:
addon - the AddOn to create the color for
Returns:
the Motif specific striping color, here: generic