Class TLspTouchCreateController
java.lang.Object
com.luciad.view.lightspeed.controller.ALspController
com.luciad.view.lightspeed.controller.manipulation.TLspCreateController
com.luciad.view.lightspeed.controller.touch.TLspTouchCreateController
- All Implemented Interfaces:
ILcdUndoableSource
,ILcdAWTEventListener
,ILspController
Touch enabled version of the
TLspCreateController
.
This controller will behave almost exactly the same as the TLspCreateController
, but
will have some specific settings for touch based devices. The most important of these is that this
controller will filter out all input events that are not TLcdTouchEvent
s. The reason for this is
that some touch based devices send both mouse and touch events to the application, which could
cause the controller to get flooded with events and possibly do things twice.
The handleFXEvent(Event aEvent) converts the native JavaFX TouchEvent
to a TLcdTouchEvent
and passes it to the ALspController.handleAWTEvent(AWTEvent aEvent).
- Since:
- 2012.0
-
Constructor Summary
ConstructorDescriptionTLspTouchCreateController
(ALspCreateControllerModel aCreateControllerModel) Creates a new TLspTouchCreateController using the provided create controller model. -
Method Summary
Modifier and TypeMethodDescriptionhandleAWTEventImpl
(AWTEvent aEvent) Called byhandleAWTEvent
.void
handleFXEvent
(Event aEvent) Delegates tohandleFXEventImpl
.Methods inherited from class com.luciad.view.lightspeed.controller.manipulation.TLspCreateController
addUndoableListener, cancel, commit, finish, fireUndoableHappened, getActionToTriggerAfterCommit, getControllerModel, getHandleStyler, getLayered, getSnapperProvider, getSnapperStyler, getStringTranslator, handleFXEventImpl, isCancelOnTerminateInteraction, nextStep, paint, removeUndoableListener, setActionToTriggerAfterCommit, setCancelOnTerminateInteraction, setHandleStyler, setSnapperProvider, setSnapperStyler, setStringTranslator, startInteractionImpl, terminateInteraction, terminateInteractionImpl
Methods inherited from class com.luciad.view.lightspeed.controller.ALspController
addPropertyChangeListener, addStatusListener, appendController, firePropertyChange, fireStatusEvent, getAWTFilter, getCursor, getFXCursor, getFXFilter, getIcon, getName, getNextController, getShortDescription, getView, handleAWTEvent, paintImpl, registerViewPropertyNameForReset, removePropertyChangeListener, removeStatusListener, setAWTFilter, setCursor, setFXCursor, setFXFilter, setIcon, setName, setShortDescription, startInteraction
-
Constructor Details
-
TLspTouchCreateController
Creates a new TLspTouchCreateController using the provided create controller model.- Parameters:
aCreateControllerModel
- the create controller model.
-
-
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.- Overrides:
handleAWTEventImpl
in classTLspCreateController
- 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.
-
handleFXEvent
Description copied from class:ALspController
Delegates tohandleFXEventImpl
. If that method does not returnnull
, the result is passed on to the next controller in the chain (if one exists). If the controller has a filter that does not accept the event, the event is not delegated and is immediately passed on to the next controller.- Specified by:
handleFXEvent
in interfaceILspController
- Overrides:
handleFXEvent
in classALspController
- Parameters:
aEvent
- the event to be handled
-