public class TLspPanController extends ALspController
Constructor and Description |
---|
TLspPanController()
Creates a new TLspPanController with a navigation default controller model.
|
Modifier and Type | Method and Description |
---|---|
Cursor |
getCursorWhilePanning()
Returns the cursor to be used while panning (while the triggering mouse button is pressed).
|
ILcdAnchoredIcon |
getPanSpotIcon()
Returns the icon that is used to denote using which spot the view is panning.
|
AWTEvent |
handleAWTEventImpl(AWTEvent aEvent)
Called by
handleAWTEvent . |
javafx.event.Event |
handleFXEventImpl(javafx.event.Event aEvent)
Called by
handleFXEvent . |
boolean |
isEnableInertia()
Returns whether or not to use inertia when panning the map.
|
void |
setCursorWhilePanning(Cursor aCursor)
Sets the cursor to be used while panning (while the triggering mouse button is pressed).
|
void |
setEnableInertia(boolean aEnableInertia)
Enables or disables inertia when panning the map.
|
void |
setPanSpotIcon(ILcdAnchoredIcon aPanSpotIcon)
Returns the icon that is used to denote using which spot the view is panning.
|
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 TLspPanController()
public boolean isEnableInertia()
true
if this controller has inertia enabled, false
otherwise.setEnableInertia(boolean)
public void setEnableInertia(boolean aEnableInertia)
aEnableInertia
- true
if this controller should enable inertia, false
otherwise.isEnableInertia()
public void setPanSpotIcon(ILcdAnchoredIcon aPanSpotIcon)
aPanSpotIcon
- The icon which will be used to denote using which spot the view is panning.getPanSpotIcon()
public Cursor getCursorWhilePanning()
public void setCursorWhilePanning(Cursor aCursor)
aCursor
- the new cursor to use.ALspController.setCursor(Cursor)
public ILcdAnchoredIcon getPanSpotIcon()
setPanSpotIcon(com.luciad.gui.ILcdAnchoredIcon)
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 aEvent)
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
aEvent
- 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.