Class TLspZoomToController

java.lang.Object
com.luciad.view.lightspeed.controller.ALspController
com.luciad.view.lightspeed.controller.navigation.TLspZoomToController
All Implemented Interfaces:
ILcdAWTEventListener, ILspController

public class TLspZoomToController extends ALspController
Performs a "zoom to" animation when the user double-clicks in the view. The animation pans the view so that it is centered on the click location, and simultaneously zooms in on the same point.
A double-click using the left mouse button will trigger a "zoom in" animation while a double click using the right mouse button will trigger a "zoom out" animation.

The zoom-to controller only accepts double click events as a trigger for starting the animation. Events that make a double click impossible like a mouse dragged event, will cause this controller to automatically delegate the received pressed event, all consecutive drag events and the released event. You can add a MouseButton filter to further limit the events this controller will use (only left mouse button for instance). The fact that it only accepts double click events also means that any other events, such as single clicks, are delegated.

Since:
2012.0
  • Constructor Details

    • TLspZoomToController

      public TLspZoomToController()
      Creates a new TLspZoomToController with a default name, short description and icon.
  • Method Details

    • handleAWTEventImpl

      public AWTEvent handleAWTEventImpl(AWTEvent aAWTEvent)
      Description copied from class: ALspController
      Called by handleAWTEvent. Returns null when the controller consumed the event or a partially consumed event when the controller partially consumed the event (which could happen with TLcdTouchEvents). When the controller did not use the given event, it is returned unaltered.
      Specified by:
      handleAWTEventImpl in class ALspController
      Parameters:
      aAWTEvent - the event to be handled.
      Returns:
      null when the input event was consumed, the (possibly modified) input event when it was (partially) consumed.
    • handleFXEventImpl

      public Event handleFXEventImpl(Event aEvent)
      Description copied from class: ALspController
      Called by handleFXEvent. Returns null when the controller consumed the event. When the controller did not use the given event, it is returned unaltered.
      Overrides:
      handleFXEventImpl in class ALspController
      Parameters:
      aEvent - the event to be handled.
      Returns:
      null when the input event was consumed, the (possibly modified) input event when it was (partially) consumed.