Package mgui.models.updaters
Class LinearUpdater
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.models.updaters.SimpleEnvironmentUpdater
mgui.models.updaters.LinearUpdater
- All Implemented Interfaces:
AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,DynamicModelUpdater
public class LinearUpdater extends SimpleEnvironmentUpdater
-
Field Summary
Fields inherited from class mgui.models.updaters.SimpleEnvironmentUpdater
attributes
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description LinearUpdater()
LinearUpdater(double offset, double factor)
-
Method Summary
Methods inherited from class mgui.models.updaters.SimpleEnvironmentUpdater
getAttribute, getAttributes, getAttributeValue, setAttribute, setAttributes, setTreeNode, test, toString, update
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mgui.interfaces.NamedObject
getName, setName
-
Constructor Details
-
LinearUpdater
public LinearUpdater() -
LinearUpdater
public LinearUpdater(double offset, double factor)
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classSimpleEnvironmentUpdater
-
reset
public void reset() -
setOffset
public void setOffset(double offset) -
setFactor
public void setFactor(double factor) -
setStep
public void setStep(double step) -
getOffset
public double getOffset() -
getFactor
public double getFactor() -
getStep
public double getStep() -
doUpdate
- Specified by:
doUpdate
in classSimpleEnvironmentUpdater
-