public class IlpDefaultObjectInteractionContext extends IlpDefaultInteractionContext implements IlpObjectInteractionContext
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getInitialModifiersEx, getPosition, getView, reset, setInitialModifiersEx, setPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInitialModifiersEx, getPosition, getView, reset, setInitialModifiersEx, setPosition
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 attributeIllegalArgumentException
- 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 occurredIllegalArgumentException
- if the given view is null
IllegalArgumentException
- if the given graphic is null
IlpInteractionContext.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 occurredIllegalArgumentException
- if the given view is null
IllegalArgumentException
- if the given graphic is null
IlpInteractionContext.setPosition(ilog.cpl.graphic.IlpPoint)
public IlpRepresentationObject getRepresentationObject()
getRepresentationObject
in interface IlpObjectInteractionContext
public IlpGraphic getGraphic()
Returns null
if the representation object is not graphically
represented with an IlpGraphic
.
getGraphic
in interface IlpObjectInteractionContext
public IlpAttribute getAttribute()
getAttribute
in interface IlpObjectInteractionContext
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.