Save This Page
Home » openjdk-7 » javax.swing.plaf.nimbus » [javadoc | source]
class: DerivedColor [javadoc | source]

All Implemented Interfaces:
    Paint, java$io$Serializable

Direct Known Subclasses:

DerivedColor - A color implementation that is derived from a UIManager defaults table color and a set of offsets. It can be rederived at any point by calling rederiveColor(). For example when its parent color changes and it value will update to reflect the new derived color. Property change events are fired for the "rgb" property when the derived color changes.
Nested Class Summary:
static class  DerivedColor.UIResource   
Fields inherited from java.awt.Color:
white,  WHITE,  lightGray,  LIGHT_GRAY,  gray,  GRAY,  darkGray,  DARK_GRAY,  black,  BLACK,  red,  RED,  pink,  PINK,  orange,  ORANGE,  yellow,  YELLOW,  green,  GREEN,  magenta,  MAGENTA,  cyan,  CYAN,  blue,  BLUE,  value
 DerivedColor(String uiDefaultParentName,
    float hOffset,
    float sOffset,
    float bOffset,
    int aOffset) 
Method from javax.swing.plaf.nimbus.DerivedColor Summary:
equals,   getAlphaOffset,   getBrightnessOffset,   getHueOffset,   getRGB,   getSaturationOffset,   getUiDefaultParentName,   hashCode,   rederiveColor,   toString
Methods from java.awt.Color:
HSBtoRGB,   RGBtoHSB,   brighter,   createContext,   darker,   decode,   equals,   getAlpha,   getBlue,   getColor,   getColor,   getColor,   getColorComponents,   getColorComponents,   getColorSpace,   getComponents,   getComponents,   getGreen,   getHSBColor,   getRGB,   getRGBColorComponents,   getRGBComponents,   getRed,   getTransparency,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.nimbus.DerivedColor Detail:
 public boolean equals(Object o) 
 public int getAlphaOffset() 
 public float getBrightnessOffset() 
 public float getHueOffset() 
 public int getRGB() 
    Returns the RGB value representing the color in the default sRGB java.awt.image.ColorModel . (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue).
 public float getSaturationOffset() 
 public String getUiDefaultParentName() 
 public int hashCode() 
 public  void rederiveColor() 
    Recalculate the derived color from the UIManager parent color and offsets
 public String toString() 
    Returns a string representation of this Color. This method is intended to be used only for debugging purposes. The content and format of the returned string might vary between implementations. The returned string might be empty but cannot be null.