uk.org.toot.control
Class IntegerControl
java.lang.Object
java.util.Observable
uk.org.toot.control.Control
uk.org.toot.control.LawControl
uk.org.toot.control.FloatControl
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
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 |
IntegerControl
public IntegerControl(int id,
java.lang.String name,
IntegerLaw law,
float precision,
int initialValue)
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.