harmonic.mz.entries
Class PointSetEntry

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

public class PointSetEntry
extends ValueEntry

This is a gui widget for entering of a set of points. A point entry is on the top to effect the current points, and a point list box is under it. This keeps a PointEntry internally and uses this for most things.

See Also:
Serialized Form

Constructor Summary
PointSetEntry(java.lang.String label, java.lang.Object l, java.lang.String cb, PointSetField psf)
          Constructs a PointSetEntry.
 
Method Summary
 void assignFromReadout()
          Override to assign value from readout.
 void backup()
           
 void beginEntry(harmonic.viewer3D.Task parentTask)
          Start taking input.
 void cleanTask()
           
 void fillListBox()
           
 void finishEntry()
          Called when entry is properly finished.
 void format(int w, int h)
           
 java.awt.Dimension getPreferredSize()
          This either calles refPanel.getPreferredSize() or getEntrySize() depending on what is showing.
 void monologFinished()
          This is called by Monolog when it is finished.
 void onPointEntry(EntryEvent e)
           
 void setEditing(boolean b)
           
 void setField(ModelNode psf)
          Set the data node effected by this.
 
Methods inherited from class harmonic.mz.gui.ValueEntry
_notifyListeners_, add, addEntryListener, aquireInput, beginTask, cancelEntry, cancelTask, componentHidden, componentMoved, componentResized, componentShown, contract, contractIcon, echoFieldChange, expand, expandCheck, expandIcon, finishTask, getEntrySize, getField, getInstanceURL, getTaskName, getTypeURL, highlight, init, initReadout, innerChange, isActive, isDoingTask, isExpanded, mousePressed, nodeChanged, notifyListeners_ValueChanged, notifyListeners, onSettingsButton, removeEntryListener, savePrev, setDocURL, setInnerChange, setValue, transferListener, unlinkField, updateField, validateUISettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointSetEntry

public PointSetEntry(java.lang.String label,
                     java.lang.Object l,
                     java.lang.String cb,
                     PointSetField psf)
Constructs a PointSetEntry.

Method Detail

beginEntry

public void beginEntry(harmonic.viewer3D.Task parentTask)
Start taking input.

Overrides:
beginEntry in class ValueEntry

finishEntry

public void finishEntry()
Description copied from class: ValueEntry
Called when entry is properly finished. Do listener deregistration and remove any objects from viewport.

Overrides:
finishEntry in class ValueEntry

cleanTask

public void cleanTask()

format

public void format(int w,
                   int h)

getPreferredSize

public java.awt.Dimension getPreferredSize()
Description copied from class: ValueEntry
This either calles refPanel.getPreferredSize() or getEntrySize() depending on what is showing.

Overrides:
getPreferredSize in class ValueEntry

setEditing

public void setEditing(boolean b)

setField

public void setField(ModelNode psf)
Set the data node effected by this.

Overrides:
setField in class ValueEntry

fillListBox

public void fillListBox()

onPointEntry

public void onPointEntry(EntryEvent e)

backup

public void backup()

assignFromReadout

public void assignFromReadout()
Description copied from class: ValueEntry
Override to assign value from readout. Called by InputEntrySequence when next value is requested.

Overrides:
assignFromReadout in class ValueEntry

monologFinished

public void monologFinished()
Description copied from class: ValueEntry
This is called by Monolog when it is finished. (ok'ed) By default this calles assignFromReadout(), to make is so user doent have to hit enter in the text boxes. Override this to change this behavour This system has proven better then calling assignFromReadout() when a value entry looses keyboard focus.

Overrides:
monologFinished in class ValueEntry