Class TLspRecenterProjectionController

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

public class TLspRecenterProjectionController extends ALspController
When active on an ILspView, this ILspController will try to center the ILcdProjection that is currently set on the ILspView on the location that was clicked.

For example, if the ILcdProjection is an ILcdAzimuthal projection, this ILspController will transform the clicked screen point into a LonLat coordinate and use it to set the originLon and originLat properties of the ILcdAzimuthal projection.

Note that the map recenter controller will only work on a view that has an ILcdGridReference as a world reference. For any other type of world reference, the map recenter controller will do nothing.

The map recenter controller only supports the following projections:

  • ILcdAzimuthal
  • ILcdCylindrical
  • ILcdTransverseCylindrical
  • ILcdObliqueCylindrical
  • ILcdConic
  • TLcdPolyconic
Since:
2012.0
  • Constructor Details

    • TLspRecenterProjectionController

      public TLspRecenterProjectionController()
      Creates a controller used to center a 2D map with a crosshair cursor.
    • TLspRecenterProjectionController

      public TLspRecenterProjectionController(Cursor aCursor)
      Creates a controller used to center a 2D map with the given cursor.
      Parameters:
      aCursor - the cursor to use when the controller is active
  • Method Details

    • handleAWTEventImpl

      public AWTEvent handleAWTEventImpl(AWTEvent aEvent)
      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:
      aEvent - 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.