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
changeSupportFields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionTLcyLspCreateLayerAction(ALcyFormat aFormat, ILcyGenericMapComponent<ILspView, ILspLayer> aMapComponent) Creates a new action capable of creating and adding anILspLayerof the specifiedALcyFormatto theILspViewofaMapComponent.TLcyLspCreateLayerAction(ILcyLucyEnv aLucyEnv, ILcyGenericMapComponent<ILspView, ILspLayer> aMapComponent) Creates a new action capable of creating and adding anILspLayerto theILspViewofaMapComponent -
Method Summary
Modifier and TypeMethodDescriptioncreateLayersForModel(ILcdModel aModel, Component aParentComponent) Create a list of layers foraModelReturns theILcyGenericMapComponentto 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, setDefaultModelDescriptorFactoryMethods 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 anILspLayerto theILspViewofaMapComponent- 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 anILspLayerof the specifiedALcyFormatto theILspViewofaMapComponent.- Parameters:
aFormat- The format. This format should return a singleALcyDefaultModelDescriptorFactoryinstance 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:ALcyCreateLayersActionReturns theILcyGenericMapComponentto which the created layers will be added.- Overrides:
getMapComponentin classALcyCreateLayersAction<ILspView,ILspLayer> - Returns:
- the
ILcyGenericMapComponentto which the created layers will be added.
-
createLayersForModel
protected List<ILspLayer> createLayersForModel(ILcdModel aModel, Component aParentComponent) throws IllegalArgumentException Description copied from class:ALcyCreateLayersActionCreate a list of layers foraModel- Specified by:
createLayersForModelin 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 benullin case the end-user cancelled the operation. - Throws:
IllegalArgumentException- when no layer could be created foraModel
-