public final class LayerListDialog.MergeAction extends AbstractAction implements LayerListDialog.IEnabledStateUpdating, Layer.LayerAction, Layer.MultiLayerAction
| Modifier and Type | Field and Description |
|---|---|
private Layer |
layer |
private List<Layer> |
layers |
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Modifier | Constructor and Description |
|---|---|
|
MergeAction(Layer layer)
Constructs a new
MergeAction. |
private |
MergeAction(Layer layer,
List<Layer> layers)
Constructs a new
MergeAction. |
|
MergeAction(List<Layer> layers)
Constructs a new
MergeAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
Component |
createMenuComponent() |
LayerListDialog.MergeAction |
getMultiLayerAction(List<Layer> layers) |
boolean |
supportLayers(List<Layer> layers) |
void |
updateEnabledState() |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic MergeAction(Layer layer)
MergeAction.layer - the layerIllegalArgumentException - if layer is nullpublic MergeAction(List<Layer> layers)
MergeAction.layers - the layer listIllegalArgumentException - if layers is nullprivate MergeAction(Layer layer, List<Layer> layers)
MergeAction.layer - the layer (null if layer list if specified)layers - the layer list (null if a single layer is specified)public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void updateEnabledState()
updateEnabledState in interface LayerListDialog.IEnabledStateUpdatingpublic boolean supportLayers(List<Layer> layers)
supportLayers in interface Layer.LayerActionpublic Component createMenuComponent()
createMenuComponent in interface Layer.LayerActionpublic LayerListDialog.MergeAction getMultiLayerAction(List<Layer> layers)
getMultiLayerAction in interface Layer.MultiLayerAction