harmonic.mz.entries
Class MaterialEntry

java.lang.Object
  |
  +--HWPanel
        |
        +--harmonic.mz.gui.ValueEntry
              |
              +--harmonic.mz.entries.MaterialEntry
All Implemented Interfaces:
java.awt.event.ComponentListener, Documentable, java.util.EventListener, NodeListener, harmonic.viewer3D.Task

public class MaterialEntry
extends ValueEntry

GUI widget for entering object material color. This is the group of colors that define how a surface responds to lighing. This widget alows setting of all colors at once, or separatly.

See Also:
Serialized Form

Constructor Summary
MaterialEntry(java.lang.String label, MaterialField field)
          Constructs a MaterialEntry.
 
Method Summary
 void calcDarkAndLight()
           
 void calcFromSingle()
           
 void cleanTask()
           
 void format(int w, int h)
           
 java.awt.Dimension getEntrySize()
          Override to return the size of the specialized value entry controls.
 ModelNode getField()
          Returns data node to effect.
 void init(ModelNode field)
           
 void makeValueUI()
           
 void onAmbientChanged(EntryEvent e)
           
 void onDarkside(HWScrollEvent e)
           
 void onDiffuseChanged(EntryEvent e)
           
 void onEmissiveChanged(EntryEvent e)
           
 void onLightside(HWScrollEvent e)
           
 void onShininessChanged(HWScrollEvent e)
           
 void onSingleColorChanged(EntryEvent e)
           
 void onSpecularChanged(EntryEvent e)
           
 void setField(ModelNode field)
          Set data node to effect.
 void setValue(ModelNode field)
          Override to set value of corisponding data node.
 
Methods inherited from class harmonic.mz.gui.ValueEntry
_notifyListeners_, add, addEntryListener, aquireInput, assignFromReadout, beginEntry, beginTask, cancelEntry, cancelTask, componentHidden, componentMoved, componentResized, componentShown, contract, contractIcon, echoFieldChange, expand, expandCheck, expandIcon, finishEntry, finishTask, getInstanceURL, getPreferredSize, getTaskName, getTypeURL, highlight, init, initReadout, innerChange, isActive, isDoingTask, isExpanded, monologFinished, mousePressed, nodeChanged, notifyListeners_ValueChanged, notifyListeners, onSettingsButton, removeEntryListener, savePrev, setDocURL, setInnerChange, transferListener, unlinkField, updateField, validateUISettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaterialEntry

public MaterialEntry(java.lang.String label,
                     MaterialField field)
Constructs a MaterialEntry.

Parameters:
label - Label to draw
field - Field to return value though.
Method Detail

setField

public void setField(ModelNode field)
Set data node to effect.

Overrides:
setField in class ValueEntry

getField

public ModelNode getField()
Returns data node to effect.

Overrides:
getField in class ValueEntry

setValue

public void setValue(ModelNode field)
Description copied from class: ValueEntry
Override to set value of corisponding data node. This version uses getField().

Overrides:
setValue in class ValueEntry
Parameters:
field - to set to

init

public void init(ModelNode field)

cleanTask

public void cleanTask()

makeValueUI

public void makeValueUI()

format

public void format(int w,
                   int h)

getEntrySize

public java.awt.Dimension getEntrySize()
Description copied from class: ValueEntry
Override to return the size of the specialized value entry controls.

Overrides:
getEntrySize in class ValueEntry

onSingleColorChanged

public void onSingleColorChanged(EntryEvent e)

onLightside

public void onLightside(HWScrollEvent e)

onDarkside

public void onDarkside(HWScrollEvent e)

calcFromSingle

public void calcFromSingle()

calcDarkAndLight

public void calcDarkAndLight()

onAmbientChanged

public void onAmbientChanged(EntryEvent e)

onDiffuseChanged

public void onDiffuseChanged(EntryEvent e)

onSpecularChanged

public void onSpecularChanged(EntryEvent e)

onEmissiveChanged

public void onEmissiveChanged(EntryEvent e)

onShininessChanged

public void onShininessChanged(HWScrollEvent e)