|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Describes a mechanical device that can control the position of something
Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener l)
Adds a ChangeListener to the model's listener list. |
double |
getActualPosition()
get the actual position of the device. |
javax.swing.event.ChangeListener[] |
getChangeListeners()
Returns an array of all the ChangeListener s added
to this PositionControl with addChangeListener(). |
java.awt.Component |
getControlComponent()
get a Component through which we can control the position |
java.util.EventListener[] |
getListeners(java.lang.Class listenerType)
Return an array of all the listeners of the given type that were added to this PositionControl. |
double |
getMaximum()
get the maximum position |
double |
getMinimum()
get the minimum position |
double |
getPosition()
get the position that must be reached. |
java.lang.String |
getUnit()
get a String with the description of the units used for all the values. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Removes a ChangeListener from the model's listener list. |
void |
setPosition(double p)
set the position |
void |
sleep()
sleeps for the time needed to stabilize the position. |
Method Detail |
public void setPosition(double p)
p
- the positionpublic double getPosition()
public double getActualPosition()
public double getMinimum()
public double getMaximum()
public void sleep()
public java.awt.Component getControlComponent()
getControlComponent
in interface Control
public java.lang.String getUnit()
public void addChangeListener(javax.swing.event.ChangeListener l)
l
- the ChangeListener to addremoveChangeListener(javax.swing.event.ChangeListener)
public void removeChangeListener(javax.swing.event.ChangeListener l)
l
- the ChangeListener to removeaddChangeListener(javax.swing.event.ChangeListener)
public javax.swing.event.ChangeListener[] getChangeListeners()
ChangeListener
s added
to this PositionControl with addChangeListener().
ChangeListener
s added or an empty
array if no listeners have been addedpublic java.util.EventListener[] getListeners(java.lang.Class listenerType)
listenerType
- the type of listeners to return, e.g. ChangeListener.class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |