| |
|
| java.lang.Object com.jeta.forms.store.AbstractJETAPersistable com.jeta.forms.store.properties.ColorHolder
ColorHolder | public class ColorHolder extends AbstractJETAPersistable (Code) | | Used for storing colors. We don't serialize java.awt.Color objects directly
because on OS X there are Apple specific color objects that can be saved
indirectly which would cause problems on other platforms. So, all Color
values must be stored in ColorHolder objects.
author: Jeff Tassin |
Constructor Summary | |
public | ColorHolder() Creates a ColorHolder instance that defaults to black. | public | ColorHolder(Color c) Creates a ColorHolder instance with the specified color. |
Method Summary | |
public boolean | equals(Object obj) | public int | getBlue() Returns the blue component in the range 0-255 in the default RGB space. | public Color | getColor() Returns the color contained by this holder. | public int | getGreen() Returns the green component in the range 0-255 in the default RGB space. | public int | getRed() Returns the red component in the range 0-255 in the default RGB space. | public void | read(JETAObjectInput in) | public void | write(JETAObjectOutput out) |
VERSION | final public static int VERSION(Code) | | The version for this class.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
ColorHolder | public ColorHolder()(Code) | | Creates a ColorHolder instance that defaults to black.
|
ColorHolder | public ColorHolder(Color c)(Code) | | Creates a ColorHolder instance with the specified color.
Parameters: c - the color |
getBlue | public int getBlue()(Code) | | Returns the blue component in the range 0-255 in the default RGB space.
the blue component. |
getColor | public Color getColor()(Code) | | Returns the color contained by this holder.
the color |
getGreen | public int getGreen()(Code) | | Returns the green component in the range 0-255 in the default RGB space.
the green component. |
getRed | public int getRed()(Code) | | Returns the red component in the range 0-255 in the default RGB space.
the red component. |
|
|
|