public class TLspRotateController extends ALspController
Constructor and Description |
---|
TLspRotateController()
Creates a new TLspRotateController with a default name, short description, icon and rotate spot icon.
|
Modifier and Type | Method and Description |
---|---|
Cursor |
getCursorWhileRotating()
Returns the cursor to be used while rotating (while the triggering mouse button is pressed).
|
ILcdAnchoredIcon |
getRotateSpotIcon()
Used to retrieve the icon that is used to denote the anchor spot when rotating the view.
|
AWTEvent |
handleAWTEventImpl(AWTEvent aAWTEvent)
Called by
handleAWTEvent . |
javafx.event.Event |
handleFXEventImpl(javafx.event.Event aEvent)
Called by
handleFXEvent . |
boolean |
isRotateAroundCenter()
Returns whether this rotate controller will rotate around the center of the view or not.
|
void |
setCursorWhileRotating(Cursor aCursor)
Sets the cursor to be used while rotating (while the triggering mouse button is pressed).
|
void |
setRotateAroundCenter(boolean aRotateAroundCenter)
Sets whether this rotate controller will rotate around the center of the view or not.
|
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.
|
void |
startInteraction(ILspView aView)
Called to start interacting with the controller.
|
void |
terminateInteraction(ILspView aView)
Terminates interaction with this controller.
|
addPropertyChangeListener, addStatusListener, appendController, firePropertyChange, fireStatusEvent, getAWTFilter, getCursor, getFXCursor, getFXFilter, getIcon, getLayered, getName, getNextController, getShortDescription, getView, handleAWTEvent, handleFXEvent, paint, paintImpl, registerViewPropertyNameForReset, removePropertyChangeListener, removeStatusListener, setAWTFilter, setCursor, setFXCursor, setFXFilter, setIcon, setName, setShortDescription, startInteractionImpl, terminateInteractionImpl
public TLspRotateController()
public boolean isRotateAroundCenter()
true
if this rotate controller rotates around the center of the view
false
otherwise.public void setRotateAroundCenter(boolean aRotateAroundCenter)
aRotateAroundCenter
- true
if this rotate controller rotates around the center of the view
false
otherwise.public void startInteraction(ILspView aView)
ALspController
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.startInteraction
in interface ILspController
startInteraction
in class ALspController
aView
- the view the controller operates onpublic void terminateInteraction(ILspView aView)
ALspController
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.terminateInteraction
in interface ILspController
terminateInteraction
in class ALspController
aView
- the view the controller was operating onpublic AWTEvent handleAWTEventImpl(AWTEvent aAWTEvent)
ALspController
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
TLcdTouchEvent
s). When the controller did not use the given event, it is returned
unaltered.handleAWTEventImpl
in class ALspController
aAWTEvent
- the event to be handled.null
when the input event was consumed, the (possibly modified) input
event when it was (partially) consumed.public javafx.event.Event handleFXEventImpl(javafx.event.Event aEvent)
ALspController
handleFXEvent
.
Returns null
when the controller consumed the event. When the controller did not use the
given event, it is returned unaltered.handleFXEventImpl
in class ALspController
aEvent
- the event to be handled.null
when the input event was consumed, the (possibly modified) input
event when it was (partially) consumed.public void setRotateSpotIcon(ILcdAnchoredIcon aRotateSpotIcon)
aRotateSpotIcon
- the icon that will be used to denote the anchor spot when rotating the viewpublic ILcdAnchoredIcon getRotateSpotIcon()
public Cursor getCursorWhileRotating()
public void setCursorWhileRotating(Cursor aCursor)
aCursor
- the new cursor to use.ALspController.setCursor(Cursor)