Class CustomizeDrawingAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.layer.gpx.CustomizeDrawingAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,Layer.LayerAction,Layer.MultiLayerAction
public class CustomizeDrawingAction
extends AbstractAction
implements Layer.LayerAction, Layer.MultiLayerAction
An action that is displayed in the popup menu for the layer to change the drawing of the GPX layer
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreate a newCustomizeDrawingActionCreate a newCustomizeDrawingAction -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates and return the menu component.getMultiLayerAction(List<Layer> layers) Returns the action for a given list of layers.booleansupportLayers(List<Layer> layers) Determines if this action supports a given list of layers.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
layers
-
-
Constructor Details
-
CustomizeDrawingAction
Create a newCustomizeDrawingAction- Parameters:
l- The layers that should be customized
-
CustomizeDrawingAction
Create a newCustomizeDrawingAction- Parameters:
l- The layer that should be customized
-
CustomizeDrawingAction
private CustomizeDrawingAction()
-
-
Method Details
-
supportLayers
Description copied from interface:Layer.LayerActionDetermines if this action supports a given list of layers.- Specified by:
supportLayersin interfaceLayer.LayerAction- Parameters:
layers- list of layers- Returns:
trueif this action supports the given list of layers,falseotherwise
-
createMenuComponent
Description copied from interface:Layer.LayerActionCreates and return the menu component.- Specified by:
createMenuComponentin interfaceLayer.LayerAction- Returns:
- the menu component
-
getMultiLayerAction
Description copied from interface:Layer.MultiLayerActionReturns the action for a given list of layers.- Specified by:
getMultiLayerActionin interfaceLayer.MultiLayerAction- Parameters:
layers- list of layers- Returns:
- the action for the given list of layers
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-