|
||||||||||
| 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.IlpDefaultObjectInteractionContext
public class IlpDefaultObjectInteractionContext
Provides a default implementation of IlpObjectInteractionContext.
An object interaction context is used to store contextual information
about the events that occur over a single object.
This object can be an IlpGraphic representing
an IlpRepresentationObject or directly an
IlpRepresentationObject.
IlpObjectInteractionContext,
IlpDefaultInteractionContext,
IlpGraphic,
IlpRepresentationObject| Constructor Summary | |
|---|---|
IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpGraphic graphic)
Constructs an interaction context dedicated to a view and a single object in this view. |
|
IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpGraphic graphic,
AWTEvent event)
Constructs an interaction context dedicated to a view and a single object in this view. |
|
IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpRepresentationObject representationObject)
Constructs an interaction context dedicated to a view and a single object in this view. |
|
IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpRepresentationObject representationObject,
IlpAttribute attribute)
Constructs an interaction context dedicated to a view, a single object and a single attribute in this view. |
|
IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpRepresentationObject ro,
IlpGraphic graphic,
AWTEvent event)
Constructs an interaction context dedicated to a view and a single object in this view. |
|
| Method Summary | |
|---|---|
IlpAttribute |
getAttribute()
Returns the attribute on which the interaction occurs. |
IlpGraphic |
getGraphic()
Returns the graphic object on which the interaction occurs. |
IlpRepresentationObject |
getRepresentationObject()
Returns the representation object on which the interaction occurred. |
| Methods inherited from class ilog.cpl.interactor.IlpDefaultInteractionContext |
|---|
getPosition, getView, reset, 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, reset, setPosition |
| Constructor Detail |
|---|
public IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpRepresentationObject representationObject)
view - The view this context is dedicated to.representationObject - The representation object this
context is dedicated to.
IllegalArgumentException - if the given view is null.
IllegalArgumentException - if the given representation object is
null.
public IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpRepresentationObject representationObject,
IlpAttribute attribute)
view - The view this context is dedicated to.representationObject - The representation object this
context is dedicated to.attribute - The business attribute
IllegalArgumentException - if the given view is null.
IllegalArgumentException - if the given representation object is
null.
public IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpGraphic graphic)
view - The view this context is dedicated to.graphic - The graphic representation of the object this
context is dedicated to.
IllegalArgumentException - if the given view is null.
IllegalArgumentException - if the given graphic is null.
public IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpGraphic graphic,
AWTEvent event)
view - the view this context is dedicated tographic - the graphic representation of the object this
context is dedicated toevent - event used to initialized the position where
the interaction occurred
IllegalArgumentException - if the given view is null
IllegalArgumentException - if the given graphic is nullIlpInteractionContext.setPosition(ilog.cpl.graphic.IlpPoint)
public IlpDefaultObjectInteractionContext(IlpGraphicView view,
IlpRepresentationObject ro,
IlpGraphic graphic,
AWTEvent event)
view - The view where the event has occurredro - The representation objectgraphic - The graphic representation of the objectevent - The event used to initialize the position where
the interaction occurred
IllegalArgumentException - if the given view is null
IllegalArgumentException - if the given graphic is nullIlpInteractionContext.setPosition(ilog.cpl.graphic.IlpPoint)| Method Detail |
|---|
public IlpRepresentationObject getRepresentationObject()
getRepresentationObject in interface IlpObjectInteractionContextpublic IlpGraphic getGraphic()
Returns null if the representation object is not graphically
represented with an IlpGraphic.
getGraphic in interface IlpObjectInteractionContextpublic IlpAttribute getAttribute()
getAttribute in interface IlpObjectInteractionContext
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||