|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--HWPanel
|
+--harmonic.mz.gui.ValueEntry
|
+--harmonic.mz.entries.ColorEntry
GUI widget for setting a color value. Has six scroll bars corisponding to r g b, and h s v. r g b may be changed indepently, but doing so effects h s v. h s v may also be changed indpendantly, which effects r g b. r g b always have a gradient from back to fully colored. h is ranges across all hues, but the bar is be rendered to corispond to the saturation and value. Note that s and v dont effect the thumb position of h, only the bar rendering. s ranges from unsaturated to fully satruated, for the color corisponding to h, value corisplonding to v. And v ranges form dark to bright, for color corisponding to h, and to s.
| Constructor Summary | |
ColorEntry(java.lang.String _label,
harmonic.meshGeom.math.Clr3f _color)
Constructs a ColorEntry |
|
ColorEntry(java.lang.String _label,
java.lang.Object listener,
java.lang.String callback,
harmonic.meshGeom.math.Clr3f _color)
Constructs a ColorEntry |
|
| Method Summary | |
void |
blueChanged(HWScrollEvent e)
|
void |
cleanTask()
|
void |
contract()
Shrink to small size. |
void |
expand()
Expand to full size. |
void |
finishEntry()
Called when entry is properly finished. |
void |
format(int w,
int h)
|
harmonic.meshGeom.math.Clr3f |
getColor()
Returns color value. |
java.awt.Dimension |
getEntrySize()
Override to return the size of the specialized value entry controls. |
void |
greenChanged(HWScrollEvent e)
|
void |
hueChanged(HWScrollEvent e)
|
void |
makeSettingsUI()
|
void |
makeValueUI()
|
void |
nodeChanged(NodeEvent field)
Node has changed |
void |
onAddPreset()
|
void |
onGetPreset()
|
void |
onPreset(EntryEvent e)
|
void |
redChanged(HWScrollEvent e)
|
void |
satChanged(HWScrollEvent e)
|
void |
setColor(harmonic.meshGeom.math.Clr3f c)
Sets color value. |
void |
setField(ModelNode f)
Sets field to effect. |
void |
setValue(ModelNode linkTo)
Override to set value of corisponding data node. |
void |
updateField()
This is called by notifyListeners we have a EntryEvent.VALUE_CHANGED. |
void |
valChanged(HWScrollEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ColorEntry(java.lang.String _label,
harmonic.meshGeom.math.Clr3f _color)
_color - Initial color value
public ColorEntry(java.lang.String _label,
java.lang.Object listener,
java.lang.String callback,
harmonic.meshGeom.math.Clr3f _color)
listener - Listener to send ColorEvents tocallback - Listeners callback, declared as fnname(EntryEvent)_color - Initial color value| Method Detail |
public void setField(ModelNode f)
setField in class ValueEntrypublic void setColor(harmonic.meshGeom.math.Clr3f c)
public harmonic.meshGeom.math.Clr3f getColor()
public void nodeChanged(NodeEvent field)
NodeListener
nodeChanged in interface NodeListenernodeChanged in class ValueEntrypublic void setValue(ModelNode linkTo)
ValueEntry
setValue in class ValueEntrylinkTo - to set topublic void makeValueUI()
public void format(int w,
int h)
public java.awt.Dimension getEntrySize()
ValueEntry
getEntrySize in class ValueEntrypublic void makeSettingsUI()
public void expand()
ValueEntry
expand in class ValueEntrypublic void contract()
ValueEntry
contract in class ValueEntrypublic void redChanged(HWScrollEvent e)
public void greenChanged(HWScrollEvent e)
public void blueChanged(HWScrollEvent e)
public void hueChanged(HWScrollEvent e)
public void satChanged(HWScrollEvent e)
public void valChanged(HWScrollEvent e)
public void updateField()
ValueEntry
updateField in class ValueEntrypublic void onGetPreset()
public void onAddPreset()
public void onPreset(EntryEvent e)
public void finishEntry()
ValueEntry
finishEntry in class ValueEntrypublic void cleanTask()
cleanTask in interface harmonic.viewer3D.Task
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||