public class IlpInteractionState extends Object
IlpGraphicController
,
IlpInteractor
,
IlpAbstractInteractor
Constructor and Description |
---|
IlpInteractionState() |
Modifier and Type | Method and Description |
---|---|
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<IlpGesture> |
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.
|
public IlpGesture getGesture()
null
.public void setGesture(IlpGesture gesture)
gesture
- A completely recognized gesture.getGesture()
public Set<IlpGesture> getIncompleteGestures()
public boolean hasIncompleteGestures()
true
if there are incomplete gestures being
processed.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.public void setStartingPosition(IlpPoint startingPosition)
startingPosition
- The location where the gesture started.getStartingPosition()
public void reset()
gesture
to null
.null
.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.