Class ALspActionController
java.lang.Object
com.luciad.view.lightspeed.controller.ALspController
com.luciad.view.lightspeed.controller.ALspActionController
- All Implemented Interfaces:
ILcdAWTEventListener,ILspController
- Direct Known Subclasses:
TLspClickActionController,TLspKeyActionController
Base class for a controller that triggers instances of
ILcdAction when
receiving certain input events. An example usage could be to trigger a popup menu when the
user right-clicks a particular location.- Since:
- 2012.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ActionEventcreateActionEvent(AWTEvent aSourceEvent) Constructs theActionEventthat will be used to fire theILcdActionassociated with this controller in response to the givenAWTEvent.protected final voidperformAction(AWTEvent aAWTEvent, ILcdAction aAction) Call this method to execute an action.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, handleAWTEventImpl, handleFXEvent, handleFXEventImpl, paint, paintImpl, registerViewPropertyNameForReset, removePropertyChangeListener, removeStatusListener, setAWTFilter, setCursor, setFXCursor, setFXFilter, setIcon, setName, setShortDescription, startInteraction, startInteractionImpl, terminateInteraction, terminateInteractionImpl
-
Constructor Details
-
ALspActionController
public ALspActionController()Default constructor forALspActionController.
-
-
Method Details
-
performAction
Call this method to execute an action.- Parameters:
aAWTEvent- the event triggering the action.aAction- the action to be executed.
-
createActionEvent
Constructs theActionEventthat will be used to fire theILcdActionassociated with this controller in response to the givenAWTEvent. If the incoming event is aMouseEventorTLcdTouchEvent, this method will return aTLcdActionAtLocationEvent. The location is either the mouse location, of the location of the modified touch point. Otherwise, it will return a standardActionEvent.- Parameters:
aSourceEvent- the event that caused this controller's action to be fired- Returns:
- the event that will be passed to the action when firing it
-