ilog.views.prototypes
Class IlvGroupInteractor

java.lang.Object
  extended by ilog.views.IlvObjectInteractor
      extended by ilog.views.prototypes.IlvGroupInteractor
All Implemented Interfaces:
Serializable

public class IlvGroupInteractor
extends IlvObjectInteractor

The class IlvGroupInteractor is a subclass of IlvObjectInteractor that can be used to define user interactions on a graphic element of a group.

This interactor handles all mouse and keyboard events sent to a graphic object. If the graphic object is contained in a group, the interactor sets a number of properties on this group.

You can attach behavior objects to the group to handle these properties and program how the group will react to user interactions.

The properties set on the group by the interactor are the following:

For example, you can define a prototype containing a rectangle and set a IlvGroupInteractor to that rectangle. You can then define a trigger behavior which sets the target property x to eventX. When you move the mouse over the rectangle, the whole prototype will follow the horizontal position of the mouse.

See Also:
IlvGraphicElement, IlvGroup, IlvBehavior, Serialized Form

Constructor Summary
IlvGroupInteractor()
          Creates a new IlvGroupInteractor.
 
Method Summary
 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

IlvGroupInteractor

public IlvGroupInteractor()
Creates a new IlvGroupInteractor.

Method Detail

processEvent

public boolean processEvent(IlvGraphic obj,
                            AWTEvent event,
                            IlvObjectInteractorContext context)
Processes the events.

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


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