public class TLcyLspCreateLayerAction extends ALcyCreateLayersAction<ILspView,ILspLayer>
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.
changeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcyLspCreateLayerAction(ALcyFormat aFormat,
ILcyGenericMapComponent<ILspView,ILspLayer> aMapComponent)
Creates a new action capable of creating and adding an
ILspLayer of the specified ALcyFormat
to the ILspView of aMapComponent . |
TLcyLspCreateLayerAction(ILcyLucyEnv aLucyEnv,
ILcyGenericMapComponent<ILspView,ILspLayer> aMapComponent)
Creates a new action capable of creating and adding an
ILspLayer to the ILspView of aMapComponent |
Modifier and Type | Method and Description |
---|---|
protected List<ILspLayer> |
createLayersForModel(ILcdModel aModel,
Component aParentComponent)
Create a list of layers for
aModel |
ILcyGenericMapComponent<ILspView,ILspLayer> |
getMapComponent()
Returns the
ILcyGenericMapComponent to which the created layers will be added. |
actionPerformed, addUndoableListener, createAndInsertLayers, createModel, fireUndoableHappened, getDefaultModelDescriptorFactory, getLucyEnv, removeUndoableListener, setDefaultModelDescriptorFactory
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
public TLcyLspCreateLayerAction(ILcyLucyEnv aLucyEnv, ILcyGenericMapComponent<ILspView,ILspLayer> aMapComponent)
ILspLayer
to the ILspView
of aMapComponent
aLucyEnv
- The Lucy back-endaMapComponent
- The map component to which the created layers will be addedpublic TLcyLspCreateLayerAction(ALcyFormat aFormat, ILcyGenericMapComponent<ILspView,ILspLayer> aMapComponent)
ILspLayer
of the specified ALcyFormat
to the ILspView
of aMapComponent
.aFormat
- The format.
This format should return a single ALcyDefaultModelDescriptorFactory
instance from its ALcyFormat.getDefaultModelDescriptorFactories()
method.aMapComponent
- The map component to which the created layers will be addedpublic ILcyGenericMapComponent<ILspView,ILspLayer> getMapComponent()
ALcyCreateLayersAction
ILcyGenericMapComponent
to which the created layers will be added.getMapComponent
in class ALcyCreateLayersAction<ILspView,ILspLayer>
ILcyGenericMapComponent
to which the created layers will be added.protected List<ILspLayer> createLayersForModel(ILcdModel aModel, Component aParentComponent) throws IllegalArgumentException
ALcyCreateLayersAction
aModel
createLayersForModel
in class ALcyCreateLayersAction<ILspView,ILspLayer>
aModel
- The model to create the layers foraParentComponent
- The parent component, used to parent dialogs.aModel
. This list should not
be empty, nor should it contain null
. Can be null
in case the end-user
cancelled the operation.IllegalArgumentException
- when no layer could be created for aModel