|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.Component nextapp.echo.extras.app.ColorSelect
public class ColorSelect
ColorSelect
: an input component which displays a hue selector and an integrated value/saturation selector
to enable the selection of a 24-bit RGB color. May not contain child components.
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
|
Fields inherited from class nextapp.echo.app.Component |
---|
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Constructor Summary | |
---|---|
ColorSelect()
Creates a new ColorSelect with an initially selected color
of Color.WHITE . |
|
ColorSelect(nextapp.echo.app.Color color)
Creates a new ColorSelect with the specified color
initially selected. |
Method Summary | |
---|---|
nextapp.echo.app.Color |
getColor()
Retrieves the selected color. |
nextapp.echo.app.Extent |
getHueWidth()
Retrieves the width of the hue selector (the spectrum gradient drawn on the right side of the ColorSelector). |
nextapp.echo.app.Extent |
getSaturationHeight()
Retrieves the height of the saturation/value selector (the saturation axis is vertical). |
nextapp.echo.app.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(nextapp.echo.app.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(nextapp.echo.app.Extent newValue)
Sets the width of the hue selector (the spectrum gradient drawn on the right side of the ColorSelector). |
void |
setSaturationHeight(nextapp.echo.app.Extent newValue)
Sets the height of the saturation/value selector (the saturation axis is vertical). |
void |
setValueWidth(nextapp.echo.app.Extent newValue)
Sets the width of the saturation/value selector (the value axis is horizontal). |
Methods inherited from class nextapp.echo.app.Component |
---|
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf |
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(nextapp.echo.app.Color color)
ColorSelect
with the specified color
initially selected.
color
- the initially selected colorMethod Detail |
---|
public nextapp.echo.app.Color getColor()
public nextapp.echo.app.Extent getHueWidth()
public nextapp.echo.app.Extent getSaturationHeight()
public nextapp.echo.app.Extent getValueWidth()
public boolean isDisplayValue()
public void processInput(java.lang.String inputName, java.lang.Object inputValue)
processInput
in class nextapp.echo.app.Component
Component.processInput(java.lang.String, java.lang.Object)
public void setColor(nextapp.echo.app.Color newValue)
newValue
- the new colorpublic void setDisplayValue(boolean newValue)
newValue
- true if the hex-triplet value should be displayedpublic void setHueWidth(nextapp.echo.app.Extent newValue)
newValue
- the new widthpublic void setSaturationHeight(nextapp.echo.app.Extent newValue)
newValue
- the new heightpublic void setValueWidth(nextapp.echo.app.Extent newValue)
newValue
- the new width
|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |