Class TLcdGXYCompositeController

java.lang.Object
com.luciad.view.gxy.controller.TLcdGXYCompositeController
All Implemented Interfaces:
ILcdGXYController, ComponentListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, Serializable, EventListener

public class TLcdGXYCompositeController extends Object implements ILcdGXYController, ComponentListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener
Combines several controllers into one controller. When set on an ILcdGXYView, this controller will be registered for the following listener interfaces;
  • ComponentListener
  • KeyListener
  • MouseListener
  • MouseMotionListener
  • MouseWheelListener
Every controller added to this composite controller that implements one of these interfaces is notified of any related events.

If the delegate controller does not implement the above interface but implements ILcdAWTEventListener the event is delegated using that interface.

The properties 'cursor', 'name', 'shortDescription' and 'icon' are used from the first added controller, and are null if no controllers were added.

Note that dispatching the same event to multiple controllers might result in the controllers taking contradictory actions. We recommend to chain controllers rather than composing them.

Since:
8.0
See Also: