Package com.luciad.lucy.map.action
Class TLcyGXYNewControllerActiveSettable
java.lang.Object
com.luciad.lucy.gui.ALcyActiveSettable
com.luciad.lucy.map.action.TLcyGXYSetControllerActiveSettable
com.luciad.lucy.map.action.ALcyGXYNewControllerActiveSettable<TLcdGXYNewController2>
com.luciad.lucy.map.action.TLcyGXYNewControllerActiveSettable
- All Implemented Interfaces:
ILcyActiveSettable
,ILcyCustomizableRepresentationActiveSettable
,ILcdPropertyChangeSource
,Serializable
public class TLcyGXYNewControllerActiveSettable
extends ALcyGXYNewControllerActiveSettable<TLcdGXYNewController2>
ALcyGXYNewControllerActiveSettable
implementation for a TLcdGXYNewController2
.- See Also:
-
Field Summary
Fields inherited from interface com.luciad.lucy.gui.ILcyActiveSettable
DEFAULT, LONG_DESCRIPTION, NAME, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, SMALL_SELECTED_ICON, VISIBLE
-
Constructor Summary
ConstructorDescriptionTLcyGXYNewControllerActiveSettable
(ALcyGXYNewControllerModel aControllerModel, ILcyLucyEnv aLucyEnv) Utility constructor that creates a newTLcyNewController2ActiveSettable
for the givenALcyGXYNewControllerModel
using a newTLcdGXYNewController2
.TLcyGXYNewControllerActiveSettable
(ALcdGXYNewControllerModel2 aControllerModel, ILcyMapComponent aMapComponent, ILcyLucyEnv aLucyEnv) Utility constructor that creates a newTLcyNewController2ActiveSettable
for the givenALcdGXYNewControllerModel2
using a newTLcdGXYNewController2
.TLcyGXYNewControllerActiveSettable
(TLcdGXYNewController2 aGXYNewController, ILcdGXYView aGXYView, ILcdAction aActionToTriggerAfterCreation, ILcyLucyEnv aLucyEnv) Constructor that creates a newTLcyNewController2ActiveSettable
given aTLcdGXYNewController2
, a view and an action.TLcyGXYNewControllerActiveSettable
(TLcdGXYNewController2 aGXYNewController, ILcdGXYView aGXYView, ILcdAction aActionToTriggerAfterCreation, ILcdGXYController aControllerToSetToView, ILcyLucyEnv aLucyEnv) Constructor that creates a newTLcyNewController2ActiveSettable
given aTLcdGXYNewController2
, a view and an action. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isKeepActiveTrigger
(MouseEvent aEvent) Determines if the controller should be kept active after the given mouse event.Methods inherited from class com.luciad.lucy.map.action.ALcyGXYNewControllerActiveSettable
customizeRepresentation, getGXYNewController, getKeepActiveIcon, setActive, setKeepActiveIcon
Methods inherited from class com.luciad.lucy.map.action.TLcyGXYSetControllerActiveSettable
combineWithNavigateController, getGXYController, getGXYView, getLucyEnv, isActive, setGXYController, setGXYView
Methods inherited from class com.luciad.lucy.gui.ALcyActiveSettable
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, removePropertyChangeListener, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.luciad.lucy.gui.ILcyActiveSettable
getValue, isActive, isEnabled, putValue, setEnabled
-
Constructor Details
-
TLcyGXYNewControllerActiveSettable
public TLcyGXYNewControllerActiveSettable(ALcyGXYNewControllerModel aControllerModel, ILcyLucyEnv aLucyEnv) Utility constructor that creates a newTLcyNewController2ActiveSettable
for the givenALcyGXYNewControllerModel
using a newTLcdGXYNewController2
. It performs these steps automatically:- The snappables (
setSnappables
) of the createdTLcdGXYNewController2
is set toaControllerModel.getMapComponent().getSnapList()
- The
setActionToTriggerAfterCommit
of the new controller is initialized with an action that switches back to the select controller of the current map - The controller
is automatically combined with the navigate controller (to support the scroll wheel):
TLcyGXYSetControllerActiveSettable.combineWithNavigateController
- Parameters:
aControllerModel
- model to use for creating the new instanceaLucyEnv
- The current Lucy environment
- The snappables (
-
TLcyGXYNewControllerActiveSettable
public TLcyGXYNewControllerActiveSettable(ALcdGXYNewControllerModel2 aControllerModel, ILcyMapComponent aMapComponent, ILcyLucyEnv aLucyEnv) Utility constructor that creates a newTLcyNewController2ActiveSettable
for the givenALcdGXYNewControllerModel2
using a newTLcdGXYNewController2
. It performs these steps automatically:- The snappables (
setSnappables
) of the createdTLcdGXYNewController2
is set toaMapComponent.getSnapList()
- The action that is performed after an object is drawn on the map, activates the select
controller:
aMapComponent.retrieveAvailableGXYController( TLcyMapComponentFactory.SELECT_CONTROLLER )
- The controller is automatically combined with the navigate controller (to
support the scroll wheel):
TLcyGXYSetControllerActiveSettable.combineWithNavigateController
- Parameters:
aControllerModel
- model to use for creating the new instanceaMapComponent
- The map componentaLucyEnv
- The current Lucy environment
- The snappables (
-
TLcyGXYNewControllerActiveSettable
public TLcyGXYNewControllerActiveSettable(TLcdGXYNewController2 aGXYNewController, ILcdGXYView aGXYView, ILcdAction aActionToTriggerAfterCreation, ILcyLucyEnv aLucyEnv) Constructor that creates a newTLcyNewController2ActiveSettable
given aTLcdGXYNewController2
, a view and an action.- Parameters:
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 environment
-
TLcyGXYNewControllerActiveSettable
public TLcyGXYNewControllerActiveSettable(TLcdGXYNewController2 aGXYNewController, ILcdGXYView aGXYView, ILcdAction aActionToTriggerAfterCreation, ILcdGXYController aControllerToSetToView, ILcyLucyEnv aLucyEnv) Constructor that creates a newTLcyNewController2ActiveSettable
given aTLcdGXYNewController2
, a view and an action.- Parameters:
aGXYNewController
- The new controller to set active. Its propertysetActionToTriggerAfterCommit
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 theILcdGXYView
usingsetGXYController
. It can be different fromaNewController
to allow wrapping the controller, for example by usingcombineWithNavigateController
.aLucyEnv
- The current Lucy environment
-
-
Method Details
-
isKeepActiveTrigger
Determines if the controller should be kept active after the given mouse event. Keeping the controller active allows the user to create multiple instances in a row.- Parameters:
aEvent
- the mouse event- Returns:
- True if the controller should keep active.
-