Class TLspZoomToController
java.lang.Object
com.luciad.view.lightspeed.controller.ALspController
com.luciad.view.lightspeed.controller.navigation.TLspZoomToController
- All Implemented Interfaces:
ILcdAWTEventListener
,ILspController
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.
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 Summary
ConstructorDescriptionCreates a new TLspZoomToController with a default name, short description and icon. -
Method Summary
Modifier and TypeMethodDescriptionhandleAWTEventImpl
(AWTEvent aAWTEvent) Called byhandleAWTEvent
.handleFXEventImpl
(Event aEvent) Called byhandleFXEvent
.Methods inherited from class com.luciad.view.lightspeed.controller.ALspController
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, startInteraction, startInteractionImpl, terminateInteraction, terminateInteractionImpl
-
Constructor Details
-
TLspZoomToController
public TLspZoomToController()Creates a new TLspZoomToController with a default name, short description and icon.
-
-
Method Details
-
handleAWTEventImpl
Description copied from class:ALspController
Called byhandleAWTEvent
. Returnsnull
when the controller consumed the event or a partially consumed event when the controller partially consumed the event (which could happen withTLcdTouchEvent
s). When the controller did not use the given event, it is returned unaltered.- Specified by:
handleAWTEventImpl
in classALspController
- 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
Description copied from class:ALspController
Called byhandleFXEvent
. Returnsnull
when the controller consumed the event. When the controller did not use the given event, it is returned unaltered.- Overrides:
handleFXEventImpl
in classALspController
- 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.
-