|
NextApp Echo2 Extras v2.1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectComponent
nextapp.echo2.extras.app.ColorSelect
public class ColorSelect
A visual hue/saturation/value-based color selection component to select RGB colors.
| Field Summary | |
|---|---|
static java.lang.String |
COLOR_CHANGED_PROPERTY
|
static java.lang.String |
PROPERTY_DISPLAY_VALUE
|
static java.lang.String |
PROPERTY_HUE_WIDTH
|
static java.lang.String |
PROPERTY_SATURATION_HEIGHT
|
static java.lang.String |
PROPERTY_VALUE_WIDTH
|
| Constructor Summary | |
|---|---|
ColorSelect()
Creates a new ColorSelect with an initially selected color
of Color.WHITE. |
|
ColorSelect(Color color)
Creates a new ColorSelect with the specified color
initially selected. |
|
| Method Summary | |
|---|---|
Color |
getColor()
Retrieves the selected color. |
Extent |
getHueWidth()
Retrieves the width of the hue selector (the spectrum gradient drawn on the right side of the ColorSelector). |
Extent |
getSaturationHeight()
Retrieves the height of the saturation/value selector (the saturation axis is vertical). |
Extent |
getValueWidth()
Retrieves the width of the saturation/value selector (the value axis is horizontal). |
boolean |
isDisplayValue()
Sets whether the hex-triplet value, e.g., '#123abc' is displayed at the bottom of the ColorSelect. |
void |
processInput(java.lang.String inputName,
java.lang.Object inputValue)
|
void |
setColor(Color newValue)
Sets the selected color. |
void |
setDisplayValue(boolean newValue)
Sets whether the hex-triplet value, e.g., '#123abc' is displayed at the bottom of the ColorSelect. |
void |
setHueWidth(Extent newValue)
Sets the width of the hue selector (the spectrum gradient drawn on the right side of the ColorSelector). |
void |
setSaturationHeight(Extent newValue)
Sets the height of the saturation/value selector (the saturation axis is vertical). |
void |
setValueWidth(Extent newValue)
Sets the width of the saturation/value selector (the value axis is horizontal). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COLOR_CHANGED_PROPERTY
public static final java.lang.String PROPERTY_HUE_WIDTH
public static final java.lang.String PROPERTY_SATURATION_HEIGHT
public static final java.lang.String PROPERTY_VALUE_WIDTH
public static final java.lang.String PROPERTY_DISPLAY_VALUE
| Constructor Detail |
|---|
public ColorSelect()
ColorSelect with an initially selected color
of Color.WHITE.
public ColorSelect(Color color)
ColorSelect with the specified color
initially selected.
color - the initially selected color| Method Detail |
|---|
public Color getColor()
public Extent getHueWidth()
public Extent getSaturationHeight()
public Extent getValueWidth()
public boolean isDisplayValue()
public void processInput(java.lang.String inputName,
java.lang.Object inputValue)
nextapp.echo2.app.Component#processInput(java.lang.String, java.lang.Object)public void setColor(Color newValue)
newValue - the new colorpublic void setDisplayValue(boolean newValue)
newValue - true if the hex-triplet value should be displayedpublic void setHueWidth(Extent newValue)
newValue - the new widthpublic void setSaturationHeight(Extent newValue)
newValue - the new heightpublic void setValueWidth(Extent newValue)
newValue - the new width
|
NextApp Echo2 Extras v2.1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||