Class TLspRotateController

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

public class TLspRotateController extends ALspController
Allows the user to rotate a view by clicking and dragging it. In a 2D view, the map is rotated around the vertical axis.

In 3D, the controller navigates around and toward the object that is under the mouse. This allows convenient navigation around tall or air-borne objects. For instance, air tracks or airspaces. Also, the pitch and yaw angles of the observer are affected.

Since:
2012.0
  • Constructor Details

    • TLspRotateController

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

    • isRotateAroundCenter

      public boolean isRotateAroundCenter()
      Returns whether this rotate controller will rotate around the center of the view or not.
      Returns:
      true if this rotate controller rotates around the center of the view false otherwise.
    • setRotateAroundCenter

      public void setRotateAroundCenter(boolean aRotateAroundCenter)
      Sets whether this rotate controller will rotate around the center of the view or not.
      Parameters:
      aRotateAroundCenter - true if this rotate controller rotates around the center of the view false otherwise.
    • startInteraction

      public void startInteraction(ILspView aView)
      Description copied from class: ALspController
      Called to start interacting with the controller. This automatically happens when setting the controller on the view using ILspView.setController(com.luciad.view.lightspeed.controller.ILspController).

      This implementation sends out a status event based on the short description. It also calls startInteraction on the next controller. Override startInteractionImpl if you want to add your own behavior to this controller.

      Specified by:
      startInteraction in interface ILspController
      Overrides:
      startInteraction in class ALspController
      Parameters:
      aView - the view the controller operates on
    • terminateInteraction

      public void terminateInteraction(ILspView aView)
      Description copied from class: ALspController
      Terminates interaction with this controller. This automatically happens when setting a different controller on the view using ILspView.setController(com.luciad.view.lightspeed.controller.ILspController).

      This implementation also calls terminateInteraction on the next controller. Override terminateInteractionImpl if you want to add your own behavior to this controller.

      Specified by:
      terminateInteraction in interface ILspController
      Overrides:
      terminateInteraction in class ALspController
      Parameters:
      aView - the view the controller was operating on
    • 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.
    • setRotateSpotIcon

      public void setRotateSpotIcon(ILcdAnchoredIcon aRotateSpotIcon)
      Used to set the provided icon as the icon that will be used to denote the anchor spot when rotating the view.
      Parameters:
      aRotateSpotIcon - the icon that will be used to denote the anchor spot when rotating the view
    • getRotateSpotIcon

      public ILcdAnchoredIcon getRotateSpotIcon()
      Used to retrieve the icon that is used to denote the anchor spot when rotating the view.
      Returns:
      The icon that is used to denote the anchor spot when rotating the view.
    • getCursorWhileRotating

      public Cursor getCursorWhileRotating()
      Returns the cursor to be used while rotating (while the triggering mouse button is pressed).
      Returns:
      the rotate cursor
    • setCursorWhileRotating

      public void setCursorWhileRotating(Cursor aCursor)
      Sets the cursor to be used while rotating (while the triggering mouse button is pressed).
      Parameters:
      aCursor - the new cursor to use.
      See Also: