|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.interactor.IlpInteractionState
public class IlpInteractionState
Describes the state of a user interaction.
IlpGraphicController,
IlpInteractor,
IlpAbstractInteractor| Constructor Summary | |
|---|---|
IlpInteractionState()
|
|
| Method Summary | |
|---|---|
void |
addIncompleteGesture(IlpGesture gesture)
Adds a gesture to the set of incomplete gestures being processed. |
IlpGesture |
getGesture()
When a complete gesture has been recognized, returns this gesture, otherwise returns null. |
Set |
getIncompleteGestures()
Returns the set of gestures that could possibly result from the current incomplete set of input events. |
Object |
getIncompleteGestureState(IlpGesture gesture)
Returns additional state information for a gesture. |
IlpPoint |
getStartingPosition()
Returns the location where a gesture started, in view coordinates. |
boolean |
hasIncompleteGestures()
Returns true if there are incomplete gestures being
processed. |
boolean |
removeIncompleteGesture(IlpGesture gesture)
Removes a gesture from the set of incomplete gestures being processed. |
void |
reset()
Resets the state. |
void |
setGesture(IlpGesture gesture)
Sets a gesture which has been completely recognized. |
void |
setIncompleteGestureState(IlpGesture gesture,
Object state)
Associates additional state information with a gesture. |
void |
setStartingPosition(IlpPoint startingPosition)
Sets the location where a gesture started, in view coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlpInteractionState()
| Method Detail |
|---|
public IlpGesture getGesture()
null.
setGesture(ilog.cpl.interactor.IlpGesture)public void setGesture(IlpGesture gesture)
gesture - A completely recognized gesture.getGesture()public Set getIncompleteGestures()
addIncompleteGesture(ilog.cpl.interactor.IlpGesture),
removeIncompleteGesture(ilog.cpl.interactor.IlpGesture),
hasIncompleteGestures()public boolean hasIncompleteGestures()
true if there are incomplete gestures being
processed.
getIncompleteGestures(),
addIncompleteGesture(ilog.cpl.interactor.IlpGesture),
removeIncompleteGesture(ilog.cpl.interactor.IlpGesture)public void addIncompleteGesture(IlpGesture gesture)
gesture - The gesture to add to the set of incomplete gestures
being processed.
IllegalArgumentException - if the given gesture is null.getIncompleteGestures(),
removeIncompleteGesture(ilog.cpl.interactor.IlpGesture),
hasIncompleteGestures()public boolean removeIncompleteGesture(IlpGesture gesture)
gesture - The gesture to remove from the set of incomplete gestures
being processed.
true if the given gesture has been removed.getIncompleteGestures(),
addIncompleteGesture(ilog.cpl.interactor.IlpGesture),
hasIncompleteGestures(),
setIncompleteGestureState(ilog.cpl.interactor.IlpGesture, java.lang.Object)public Object getIncompleteGestureState(IlpGesture gesture)
gesture - The gesture concerned.setIncompleteGestureState(ilog.cpl.interactor.IlpGesture, java.lang.Object)
public void setIncompleteGestureState(IlpGesture gesture,
Object state)
gesture - The gesture concerned.state - The additional state information to associate with the given
gesture.
IllegalArgumentException - if the given gesture is null
or does not belong to the list of incomplete gestures.getIncompleteGestureState(ilog.cpl.interactor.IlpGesture)public IlpPoint getStartingPosition()
null until incomplete gestures have been recognized.
setStartingPosition(ilog.cpl.graphic.IlpPoint)public void setStartingPosition(IlpPoint startingPosition)
startingPosition - The location where the gesture started.getStartingPosition()public void reset()
gesture to null.null.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||