Class TLcyLspCreateLayerAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.lucy.map.action.ALcyCreateLayersAction<ILspView,ILspLayer>
com.luciad.lucy.map.action.lightspeed.TLcyLspCreateLayerAction
- All Implemented Interfaces:
ILcdAction
,ILcdUndoableSource
,ILcdPropertyChangeSource
,ActionListener
,Serializable
,EventListener
Implementation of ALcyCreateLayersAction
for ILspLayer
and ILspView
instances.
Consult the class javadoc of the super class for more information on how to use this class.
- Since:
- 2012.1
- See Also:
-
Field Summary
Fields inherited from class com.luciad.gui.ALcdAction
changeSupport
Fields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
-
Constructor Summary
ConstructorDescriptionTLcyLspCreateLayerAction
(ALcyFormat aFormat, ILcyGenericMapComponent<ILspView, ILspLayer> aMapComponent) Creates a new action capable of creating and adding anILspLayer
of the specifiedALcyFormat
to theILspView
ofaMapComponent
.TLcyLspCreateLayerAction
(ILcyLucyEnv aLucyEnv, ILcyGenericMapComponent<ILspView, ILspLayer> aMapComponent) Creates a new action capable of creating and adding anILspLayer
to theILspView
ofaMapComponent
-
Method Summary
Modifier and TypeMethodDescriptioncreateLayersForModel
(ILcdModel aModel, Component aParentComponent) Create a list of layers foraModel
Returns theILcyGenericMapComponent
to which the created layers will be added.Methods inherited from class com.luciad.lucy.map.action.ALcyCreateLayersAction
actionPerformed, addUndoableListener, createAndInsertLayers, createModel, fireUndoableHappened, getDefaultModelDescriptorFactory, getLucyEnv, removeUndoableListener, setDefaultModelDescriptorFactory
Methods inherited from class com.luciad.gui.ALcdAction
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
-
Constructor Details
-
TLcyLspCreateLayerAction
public TLcyLspCreateLayerAction(ILcyLucyEnv aLucyEnv, ILcyGenericMapComponent<ILspView, ILspLayer> aMapComponent) Creates a new action capable of creating and adding anILspLayer
to theILspView
ofaMapComponent
- Parameters:
aLucyEnv
- The Lucy back-endaMapComponent
- The map component to which the created layers will be added
-
TLcyLspCreateLayerAction
public TLcyLspCreateLayerAction(ALcyFormat aFormat, ILcyGenericMapComponent<ILspView, ILspLayer> aMapComponent) Creates a new action capable of creating and adding anILspLayer
of the specifiedALcyFormat
to theILspView
ofaMapComponent
.- Parameters:
aFormat
- The format. This format should return a singleALcyDefaultModelDescriptorFactory
instance from itsALcyFormat.getDefaultModelDescriptorFactories()
method.aMapComponent
- The map component to which the created layers will be added- Since:
- 2019.0
-
-
Method Details
-
getMapComponent
Description copied from class:ALcyCreateLayersAction
Returns theILcyGenericMapComponent
to which the created layers will be added.- Overrides:
getMapComponent
in classALcyCreateLayersAction<ILspView,
ILspLayer> - Returns:
- the
ILcyGenericMapComponent
to which the created layers will be added.
-
createLayersForModel
protected List<ILspLayer> createLayersForModel(ILcdModel aModel, Component aParentComponent) throws IllegalArgumentException Description copied from class:ALcyCreateLayersAction
Create a list of layers foraModel
- Specified by:
createLayersForModel
in classALcyCreateLayersAction<ILspView,
ILspLayer> - Parameters:
aModel
- The model to create the layers foraParentComponent
- The parent component, used to parent dialogs.- Returns:
- A list containing the layers that were created for
aModel
. This list should not be empty, nor should it containnull
. Can benull
in case the end-user cancelled the operation. - Throws:
IllegalArgumentException
- when no layer could be created foraModel
-