public class TLcyGXYNewControllerActiveSettable extends ALcyGXYNewControllerActiveSettable<TLcdGXYNewController2>
ALcyGXYNewControllerActiveSettable
implementation for a TLcdGXYNewController2
.DEFAULT, LONG_DESCRIPTION, NAME, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, SMALL_SELECTED_ICON, VISIBLE
Constructor and Description |
---|
TLcyGXYNewControllerActiveSettable(ALcdGXYNewControllerModel2 aControllerModel,
ILcyMapComponent aMapComponent,
ILcyLucyEnv aLucyEnv)
Utility constructor that creates a new
TLcyNewController2ActiveSettable for the
given ALcdGXYNewControllerModel2 using a new TLcdGXYNewController2 . |
TLcyGXYNewControllerActiveSettable(ALcyGXYNewControllerModel aControllerModel,
ILcyLucyEnv aLucyEnv)
Utility constructor that creates a new
TLcyNewController2ActiveSettable for the
given ALcyGXYNewControllerModel using a new TLcdGXYNewController2 . |
TLcyGXYNewControllerActiveSettable(TLcdGXYNewController2 aGXYNewController,
ILcdGXYView aGXYView,
ILcdAction aActionToTriggerAfterCreation,
ILcdGXYController aControllerToSetToView,
ILcyLucyEnv aLucyEnv)
Constructor that creates a new
TLcyNewController2ActiveSettable given a
TLcdGXYNewController2 , a view and an action. |
TLcyGXYNewControllerActiveSettable(TLcdGXYNewController2 aGXYNewController,
ILcdGXYView aGXYView,
ILcdAction aActionToTriggerAfterCreation,
ILcyLucyEnv aLucyEnv)
Constructor that creates a new
TLcyNewController2ActiveSettable given a
TLcdGXYNewController2 , a view and an action. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isKeepActiveTrigger(MouseEvent aEvent)
Determines if the controller should be kept active after the given mouse event.
|
customizeRepresentation, getGXYNewController, getKeepActiveIcon, setActive, setKeepActiveIcon
combineWithNavigateController, getGXYController, getGXYView, getLucyEnv, isActive, setGXYController, setGXYView
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, removePropertyChangeListener, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValue, isActive, isEnabled, putValue, setEnabled
addPropertyChangeListener, removePropertyChangeListener
public TLcyGXYNewControllerActiveSettable(ALcyGXYNewControllerModel aControllerModel, ILcyLucyEnv aLucyEnv)
TLcyNewController2ActiveSettable
for the
given ALcyGXYNewControllerModel
using a new TLcdGXYNewController2
.
It performs these steps automatically: setSnappables
) of
the created TLcdGXYNewController2
is set to aControllerModel.getMapComponent().getSnapList()
setActionToTriggerAfterCommit
of the new controller is initialized with an
action that switches back to the select controller of the current mapTLcyGXYSetControllerActiveSettable.combineWithNavigateController
aControllerModel
- model to use for creating the new instanceaLucyEnv
- The current Lucy environmentpublic TLcyGXYNewControllerActiveSettable(ALcdGXYNewControllerModel2 aControllerModel, ILcyMapComponent aMapComponent, ILcyLucyEnv aLucyEnv)
TLcyNewController2ActiveSettable
for the
given ALcdGXYNewControllerModel2
using a new TLcdGXYNewController2
.
It performs these steps automatically: setSnappables
) of
the created TLcdGXYNewController2
is set to aMapComponent.getSnapList()
aMapComponent.retrieveAvailableGXYController( TLcyMapComponentFactory.SELECT_CONTROLLER
)
TLcyGXYSetControllerActiveSettable.combineWithNavigateController
aControllerModel
- model to use for creating the new instanceaMapComponent
- The map componentaLucyEnv
- The current Lucy environmentpublic TLcyGXYNewControllerActiveSettable(TLcdGXYNewController2 aGXYNewController, ILcdGXYView aGXYView, ILcdAction aActionToTriggerAfterCreation, ILcyLucyEnv aLucyEnv)
TLcyNewController2ActiveSettable
given a
TLcdGXYNewController2
, a view and an action.aGXYNewController
- The controller to set active.aGXYView
- The view where the controller will be set inaActionToTriggerAfterCreation
- The action that is trigger after a new instance has beenaLucyEnv
- The current Lucy environmentpublic TLcyGXYNewControllerActiveSettable(TLcdGXYNewController2 aGXYNewController, ILcdGXYView aGXYView, ILcdAction aActionToTriggerAfterCreation, ILcdGXYController aControllerToSetToView, ILcyLucyEnv aLucyEnv)
TLcyNewController2ActiveSettable
given a
TLcdGXYNewController2
, a view and an action.aGXYNewController
- The new controller to set active. Its property
setActionToTriggerAfterCommit
is modified to
have the special double click behavior (see class
comment).aGXYView
- The view where the controller will be set inaActionToTriggerAfterCreation
- The action that is triggered after a new instance has
beenaControllerToSetToView
- The controller that is actually set to the
ILcdGXYView
using setGXYController
.
It can be different from aNewController
to
allow wrapping the controller, for example by using combineWithNavigateController
.aLucyEnv
- The current Lucy environmentprotected boolean isKeepActiveTrigger(MouseEvent aEvent)
aEvent
- the mouse event