org.jvnet.substance.utils
Class SubstanceColorResource

java.lang.Object
  extended by java.awt.Color
      extended by org.jvnet.substance.utils.SubstanceColorResource
All Implemented Interfaces:
java.awt.Paint, java.awt.Transparency, java.io.Serializable

public class SubstanceColorResource
extends java.awt.Color

This class is used to propagate a color set by the application code to the children / related components. For example, table and table header are two different components, but are visually two parts of the same user-facing control. Setting background on the table should be propagated to the table header - unless the application code explicitly changed the background color on the table header. This is where this class comes into play - to mark the propagated color so that it can be replaced when the table background is changed from the application code, but not reset during skin switch.

Author:
Kirill Grouchnikov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
SubstanceColorResource(java.awt.Color c)
          Creates a new Substance color resource.
 
Method Summary
 
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubstanceColorResource

public SubstanceColorResource(java.awt.Color c)
Creates a new Substance color resource.

Parameters:
c - Color.