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 TLcdTouchEvents. 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
ConstructorsConstructorDescriptionTLspTouchCreateController(ALspCreateControllerModel aCreateControllerModel) Creates a new TLspTouchCreateController using the provided create controller model. -
Method Summary
Modifier and TypeMethodDescriptionhandleAWTEventImpl(AWTEvent aEvent) Called byhandleAWTEvent.voidhandleFXEvent(Event aEvent) Delegates tohandleFXEventImpl.Methods inherited from class com.luciad.view.lightspeed.controller.manipulation.TLspCreateController
addUndoableListener, cancel, commit, finish, fireUndoableHappened, getActionToTriggerAfterCommit, getControllerModel, getHandleLabelStyler, getHandleStyler, getLayered, getSnapperProvider, getSnapperStyler, getStringTranslator, handleFXEventImpl, isCancelOnTerminateInteraction, nextStep, paint, removeUndoableListener, setActionToTriggerAfterCommit, setCancelOnTerminateInteraction, setHandleLabelStyler, setHandleStyler, setSnapperProvider, setSnapperStyler, setStringTranslator, startInteractionImpl, terminateInteraction, terminateInteractionImplMethods 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:ALspControllerCalled byhandleAWTEvent. Returnsnullwhen the controller consumed the event or a partially consumed event when the controller partially consumed the event (which could happen withTLcdTouchEvents). When the controller did not use the given event, it is returned unaltered.- Overrides:
handleAWTEventImplin classTLspCreateController- Parameters:
aEvent- the event to be handled.- Returns:
nullwhen the input event was consumed, the (possibly modified) input event when it was (partially) consumed.
-
handleFXEvent
Description copied from class:ALspControllerDelegates 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:
handleFXEventin interfaceILspController- Overrides:
handleFXEventin classALspController- Parameters:
aEvent- the event to be handled
-