|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PositionControl
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 |
---|
void setPosition(double p)
p
- the positiondouble getPosition()
double getActualPosition()
double getMinimum()
double getMaximum()
void sleep()
java.awt.Component getControlComponent()
getControlComponent
in interface Control
java.lang.String getUnit()
void addChangeListener(javax.swing.event.ChangeListener l)
l
- the ChangeListener to addremoveChangeListener(javax.swing.event.ChangeListener)
void removeChangeListener(javax.swing.event.ChangeListener l)
l
- the ChangeListener to removeaddChangeListener(javax.swing.event.ChangeListener)
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 addedjava.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 |