ilog.views.graphic.composite.objectinteractor
Class IlvCompositeInteractor

java.lang.Object
  extended by ilog.views.IlvObjectInteractor
      extended by ilog.views.graphic.composite.objectinteractor.IlvCompositeInteractor
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IlvSDMCompositeInteractor

public abstract class IlvCompositeInteractor
extends IlvObjectInteractor

An object interactor that allows to perform Swing actions defined on IlvCompositeGraphic instances.

Since:
JViews 6.0
See Also:
ActionEvent, IlvCompositeGraphic, IlvMouseGesture, IlvEventMap, Serialized Form

Constructor Summary
IlvCompositeInteractor()
          Creates a new IlvCompositeInteractor.
 
Method Summary
 boolean acceptEvent(IlvGraphic obj, AWTEvent event, IlvObjectInteractorContext context)
          Tests whether there is an action to perform for the event passes as a parameter.
abstract  IlvCompositeContext getCompositeContext(Object source)
          Returns the composite context of this IlvCompositeInteractor.
 IlvGraphic getEncapsulatedGraphic(IlvGraphic obj)
          Returns the graphic object encapsulated by the specified graphic object, if any.
 boolean processEvent(IlvGraphic obj, AWTEvent event, IlvObjectInteractorContext context)
          Processes the events.
 
Methods inherited from class ilog.views.IlvObjectInteractor
Get, handleExpose, onEnter, onExit, Put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvCompositeInteractor

public IlvCompositeInteractor()
Creates a new IlvCompositeInteractor. You should not use the constructor to create an instance, you may share instances of this interactor by using the IlvObjectInteractor.Get method.

See Also:
IlvObjectInteractor.Get(java.lang.String)
Method Detail

processEvent

public boolean processEvent(IlvGraphic obj,
                            AWTEvent event,
                            IlvObjectInteractorContext context)
Processes the events. You should not call this method directly.

Specified by:
processEvent in class IlvObjectInteractor
Parameters:
obj - The graphic object to which the object interactor is associated.
event - The event to handle
context - The interactor context.
Returns:
true if the event was handled by this processEvent invocation, false otherwise.

getEncapsulatedGraphic

public IlvGraphic getEncapsulatedGraphic(IlvGraphic obj)
Returns the graphic object encapsulated by the specified graphic object, if any. Otherwise, returns the specified graphic object itself.

Parameters:
obj - The graphic object to which the object interactor is associated.
Returns:
The graphic object encapsulated by the specified graphic object, if any, or the specified graphic object itself.

acceptEvent

public boolean acceptEvent(IlvGraphic obj,
                           AWTEvent event,
                           IlvObjectInteractorContext context)
Tests whether there is an action to perform for the event passes as a parameter.

Parameters:
obj - The graphic object to which the object interactor is associated.
event - The event to handle
context - The interactor context.
Returns:
true if there is an action to invoke for the given event.

getCompositeContext

public abstract IlvCompositeContext getCompositeContext(Object source)
Returns the composite context of this IlvCompositeInteractor.

Parameters:
source - The object on which the event initially occurred. For instance IlvManagerView.
Returns:
The IlvCompositeContext for this interactor.
Since:
JViews 8.0
See Also:
IlvCompositeContext


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