| java.lang.Object java.awt.Color com.jeta.forms.store.properties.ColorProxy
ColorProxy | public class ColorProxy extends Color (Code) | | A ColorProxy is a Color that can change based on the current
look and feel. This proxy has a ColorProperty delegate that it
uses as a basis for the color. ColorProxys are important for effects that
need to change color based on the L&F. For example, in some gradients it is
desirable to fade out to the current background color. This gives a
transparent effect. However, the background color changes based on the L&F,
so we need to employ ColorProxys to change color to match the background in
these cases.
author: Jeff Tassin |
Constructor Summary | |
public | ColorProxy() Creates an uninitialized ColorProxy object. | public | ColorProxy(ColorProperty cprop) Creates a ColorProxy object with the specified
ColorProperty delegate. |
ColorProxy | public ColorProxy()(Code) | | Creates an uninitialized ColorProxy object.
|
ColorProxy | public ColorProxy(ColorProperty cprop)(Code) | | Creates a ColorProxy object with the specified
ColorProperty delegate.
Parameters: cprop - a ColorProperty that this object uses to get the currentcolor. |
brighter | public Color brighter()(Code) | | java.awt.Color. Forward the call to the delegate.
|
darker | public Color darker()(Code) | | java.awt.Color. Forward the call to the delegate.
|
equals | public boolean equals(Object obj)(Code) | | java.awt.Color. Forward the call to the delegate.
|
getAlpha | public int getAlpha()(Code) | | java.awt.Color. Forward the call to the delegate.
|
getBlue | public int getBlue()(Code) | | java.awt.Color. Forward the call to the delegate.
|
getColor | public Color getColor()(Code) | | Returns the underlying Color of the ColorProperty delegate.
|
getColorComponents | public float[] getColorComponents(float[] compArray)(Code) | | java.awt.Color. Forward the call to the delegate.
|
getColorComponents | public float[] getColorComponents(ColorSpace cspace, float[] compArray)(Code) | | java.awt.Color. Forward the call to the delegate.
|
getColorProperty | public ColorProperty getColorProperty()(Code) | | Returns the ColorProperty delegate associated with this object.
|
getColorSpace | public ColorSpace getColorSpace()(Code) | | java.awt.Color. Forward the call to the delegate.
|
getComponents | public float[] getComponents(float[] compArray)(Code) | | java.awt.Color. Forward the call to the delegate.
|
getComponents | public float[] getComponents(ColorSpace cspace, float[] compArray)(Code) | | java.awt.Color. Forward the call to the delegate.
|
getGreen | public int getGreen()(Code) | | java.awt.Color. Forward the call to the delegate.
|
getRGB | public int getRGB()(Code) | | java.awt.Color. Forward the call to the delegate.
|
getRGBColorComponents | public float[] getRGBColorComponents(float[] compArray)(Code) | | java.awt.Color. Forward the call to the delegate.
|
getRGBComponents | public float[] getRGBComponents(float[] compArray)(Code) | | java.awt.Color. Forward the call to the delegate.
|
getRed | public int getRed()(Code) | | java.awt.Color override. Forward the call to the delegate.
|
getTransparency | public int getTransparency()(Code) | | java.awt.Color. Forward the call to the delegate.
|
hashCode | public int hashCode()(Code) | | java.awt.Color. Forward the call to the delegate.
|
setColorProperty | public void setColorProperty(ColorProperty prop)(Code) | | Sets the ColorProperty delegate associated with this object.
|
toString | public String toString()(Code) | | java.awt.Color. Forward the call to the delegate.
|
Methods inherited from java.awt.Color | public static int HSBtoRGB(float hue, float saturation, float brightness)(Code)(Java Doc) public static float[] RGBtoHSB(int r, int g, int b, float[] hsbvals)(Code)(Java Doc) public Color brighter()(Code)(Java Doc) public synchronized PaintContext createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)(Code)(Java Doc) public Color darker()(Code)(Java Doc) public static Color decode(String nm) throws NumberFormatException(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public int getAlpha()(Code)(Java Doc) public int getBlue()(Code)(Java Doc) public static Color getColor(String nm)(Code)(Java Doc) public static Color getColor(String nm, Color v)(Code)(Java Doc) public static Color getColor(String nm, int v)(Code)(Java Doc) public float[] getColorComponents(float[] compArray)(Code)(Java Doc) public float[] getColorComponents(ColorSpace cspace, float[] compArray)(Code)(Java Doc) public ColorSpace getColorSpace()(Code)(Java Doc) public float[] getComponents(float[] compArray)(Code)(Java Doc) public float[] getComponents(ColorSpace cspace, float[] compArray)(Code)(Java Doc) public int getGreen()(Code)(Java Doc) public static Color getHSBColor(float h, float s, float b)(Code)(Java Doc) public int getRGB()(Code)(Java Doc) public float[] getRGBColorComponents(float[] compArray)(Code)(Java Doc) public float[] getRGBComponents(float[] compArray)(Code)(Java Doc) public int getRed()(Code)(Java Doc) public int getTransparency()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|