uk.org.toot.control
Class IntegerControl

java.lang.Object
  extended by java.util.Observable
      extended by uk.org.toot.control.Control
          extended by uk.org.toot.control.LawControl
              extended by uk.org.toot.control.FloatControl
                  extended by uk.org.toot.control.IntegerControl

public class IntegerControl
extends FloatControl

An IntegerControl is actually a FloatControl which has an int-based API. Because of this getUserValue() returns the user value, not getValue().

Author:
st

Constructor Summary
IntegerControl(int id, java.lang.String name, IntegerLaw law, float precision, int initialValue)
           
 
Method Summary
 int getUserValue()
           
 java.lang.String getValueString()
          Overridden to present an int display
 
Methods inherited from class uk.org.toot.control.FloatControl
getMaximum, getMaxLabel, getMidLabel, getMinimum, getMinLabel, isRotary, toString
 
Methods inherited from class uk.org.toot.control.LawControl
applyPreset, getInsertColor, getIntValue, getLaw, getPrecision, getPresetNames, getValue, setInsertColor, setIntValue, setValue
 
Methods inherited from class uk.org.toot.control.Control
getAnnotation, getControlPath, getControlPath, getId, getName, getParent, isAdjusting, isEnabled, isHidden, isIndicator, setAdjusting, setAnnotation, setEnabled, setHidden, setName
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegerControl

public IntegerControl(int id,
                      java.lang.String name,
                      IntegerLaw law,
                      float precision,
                      int initialValue)
Method Detail

getUserValue

public int getUserValue()
Returns:
int - the user value

getValueString

public java.lang.String getValueString()
Overridden to present an int display

Overrides:
getValueString in class LawControl


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.