|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.interactor.IlpDefaultInteractionContext
public class IlpDefaultInteractionContext
Default implementation for IlpInteractionContext.
Describes the context of user interactions.
An interaction context is used to store contextual information
about the events that an IlpGraphicController
delegates to an IlpInteractor. It is dedicated to a view.
IlpInteractionContext,
IlpGraphicController,
IlpInteractor,
IlpAbstractInteractor| Constructor Summary | |
|---|---|
IlpDefaultInteractionContext(IlpGraphicView view)
Constructs an interaction context dedicated to a view. |
|
| Method Summary | |
|---|---|
IlpPoint |
getPosition()
Returns the location where a gesture ended, in view coordinates. |
IlpGraphicView |
getView()
Returns the graphic view. |
void |
reset()
Resets the context as follows: Sets position to null
|
void |
setPosition(IlpPoint position)
Sets the location where a gesture ended, in view coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlpDefaultInteractionContext(IlpGraphicView view)
view - The view this context is dedicated to.
IllegalArgumentException - if the given view is null.| Method Detail |
|---|
public IlpGraphicView getView()
getView in interface IlpInteractionContextpublic IlpPoint getPosition()
null until a complete gesture has been recognized.
getPosition in interface IlpInteractionContextsetPosition(ilog.cpl.graphic.IlpPoint)public void setPosition(IlpPoint position)
setPosition in interface IlpInteractionContextposition - The location where the gesture ended.getPosition()public void reset()
position to null
reset in interface IlpInteractionContext
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||