|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.interactor.IlpDefaultInteractionContext
ilog.cpl.interactor.IlpDefaultViewInteractionContext
public class IlpDefaultViewInteractionContext
Provides a default implementation of IlpViewInteractionContext
A view interaction context is used to store contextual information
about the events that occur over a graphic view.
IlpViewInteractionContext,
IlpGraphicView| Constructor Summary | |
|---|---|
IlpDefaultViewInteractionContext(IlpGraphicView view)
Constructs an interaction context dedicated to a view. |
|
| Method Summary | |
|---|---|
void |
addGraphic(IlpGraphic graphic)
Adds a graphic to the collection of graphics involved in a gesture. |
void |
addRepresentationObject(IlpRepresentationObject object)
Adds a representation object to the collection of representation objects involved in a gesture. |
Collection |
getGraphics()
Returns the collection of IlpGraphics involved in
a gesture. |
IlpObjectInteractionContext |
getObjectContext()
Returns the object interaction context used when the event management is delegated to an object interactor. |
Collection |
getRepresentationObjects()
Returns the collection of IlpRepresentationObjects
involved in a gesture. |
boolean |
removeGraphic(IlpGraphic graphic)
Removes a graphic from the collection of graphics involved in a gesture. |
boolean |
removeRepresentationObject(IlpRepresentationObject object)
Removes a representation object from the collection of representation objects involved in a gesture. |
void |
reset()
Redefined here to reset the collection of representation objects and graphics involved in the gesture. |
void |
setObjectContext(IlpObjectInteractionContext objectContext)
Sets the object interaction context used when the event management is delegated to an object interactor. |
| Methods inherited from class ilog.cpl.interactor.IlpDefaultInteractionContext |
|---|
getPosition, getView, setPosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.cpl.interactor.IlpInteractionContext |
|---|
getPosition, getView, setPosition |
| Constructor Detail |
|---|
public IlpDefaultViewInteractionContext(IlpGraphicView view)
view - The view this context is dedicated to.
IllegalArgumentException - if the given view is null.| Method Detail |
|---|
public Collection getRepresentationObjects()
IlpRepresentationObjects
involved in a gesture. The collection may be empty.
getRepresentationObjects in interface IlpViewInteractionContextaddRepresentationObject(ilog.cpl.model.IlpRepresentationObject),
removeRepresentationObject(ilog.cpl.model.IlpRepresentationObject)public void addRepresentationObject(IlpRepresentationObject object)
addRepresentationObject in interface IlpViewInteractionContextobject - The representation object to be added.
IllegalArgumentException - if the given representation object
is null.getRepresentationObjects(),
removeRepresentationObject(ilog.cpl.model.IlpRepresentationObject)public boolean removeRepresentationObject(IlpRepresentationObject object)
removeRepresentationObject in interface IlpViewInteractionContextobject - The representation object to be removed.
true if the given representation object has
been removed.getRepresentationObjects(),
addRepresentationObject(ilog.cpl.model.IlpRepresentationObject)public Collection getGraphics()
IlpGraphics involved in
a gesture. The collection may be empty.
getGraphics in interface IlpViewInteractionContextaddGraphic(ilog.cpl.graphic.IlpGraphic),
removeGraphic(ilog.cpl.graphic.IlpGraphic)public void addGraphic(IlpGraphic graphic)
addGraphic in interface IlpViewInteractionContextgraphic - The graphic to be added.
IllegalArgumentException - if the given graphic
is null.getGraphics(),
removeGraphic(ilog.cpl.graphic.IlpGraphic)public boolean removeGraphic(IlpGraphic graphic)
removeGraphic in interface IlpViewInteractionContextgraphic - The graphic to be removed.
true if the given graphic has been removed.getGraphics(),
addGraphic(ilog.cpl.graphic.IlpGraphic)public IlpObjectInteractionContext getObjectContext()
null.
getObjectContext in interface IlpViewInteractionContextsetObjectContext(ilog.cpl.interactor.IlpObjectInteractionContext)public void setObjectContext(IlpObjectInteractionContext objectContext)
setObjectContext in interface IlpViewInteractionContextobjectContext - The object interaction context used to delegate
the event management. May be null.getObjectContext()public void reset()
reset in interface IlpInteractionContextreset in class IlpDefaultInteractionContext
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||