ilog.cpl.interactor
Interface IlpInteractionContext

All Known Subinterfaces:
IlpObjectInteractionContext, IlpViewInteractionContext
All Known Implementing Classes:
IlpDefaultInteractionContext, IlpDefaultObjectInteractionContext, IlpDefaultViewInteractionContext, IlpTableHeaderInteractionContext, IlpTableViewInteractionContext

public interface 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.

Since:
JTGO 3.0
See Also:
IlpGraphicController, IlpInteractor, IlpAbstractInteractor

Method Summary
 IlpPoint getPosition()
          Returns the location where a gesture ended, in view coordinates.
 IlpGraphicView getView()
          Returns the view this context refers to.
 void reset()
          Resets the context.
 void setPosition(IlpPoint position)
          Sets the location where a gesture ended, in view coordinates.
 

Method Detail

getView

IlpGraphicView getView()
Returns the view this context refers to.


getPosition

IlpPoint getPosition()
Returns the location where a gesture ended, in view coordinates. Is null until a complete gesture has been recognized.

See Also:
setPosition(ilog.cpl.graphic.IlpPoint)

setPosition

void setPosition(IlpPoint position)
Sets the location where a gesture ended, in view coordinates.

Parameters:
position - The location where the gesture ended.
See Also:
getPosition()

reset

void reset()
Resets the context.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.