Class CustomizeDrawingAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.layer.gpx.CustomizeDrawingAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,Layer.LayerAction
,Layer.MultiLayerAction
public class CustomizeDrawingAction extends javax.swing.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:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CustomizeDrawingAction()
CustomizeDrawingAction(java.util.List<Layer> l)
Create a newCustomizeDrawingAction
CustomizeDrawingAction(Layer l)
Create a newCustomizeDrawingAction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
java.awt.Component
createMenuComponent()
Creates and return the menu component.javax.swing.Action
getMultiLayerAction(java.util.List<Layer> layers)
Returns the action for a given list of layers.boolean
supportLayers(java.util.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
-
-
-
-
Constructor Detail
-
CustomizeDrawingAction
public CustomizeDrawingAction(java.util.List<Layer> l)
Create a newCustomizeDrawingAction
- Parameters:
l
- The layers that should be customized
-
CustomizeDrawingAction
public CustomizeDrawingAction(Layer l)
Create a newCustomizeDrawingAction
- Parameters:
l
- The layer that should be customized
-
CustomizeDrawingAction
private CustomizeDrawingAction()
-
-
Method Detail
-
supportLayers
public boolean supportLayers(java.util.List<Layer> layers)
Description copied from interface:Layer.LayerAction
Determines if this action supports a given list of layers.- Specified by:
supportLayers
in interfaceLayer.LayerAction
- Parameters:
layers
- list of layers- Returns:
true
if this action supports the given list of layers,false
otherwise
-
createMenuComponent
public java.awt.Component createMenuComponent()
Description copied from interface:Layer.LayerAction
Creates and return the menu component.- Specified by:
createMenuComponent
in interfaceLayer.LayerAction
- Returns:
- the menu component
-
getMultiLayerAction
public javax.swing.Action getMultiLayerAction(java.util.List<Layer> layers)
Description copied from interface:Layer.MultiLayerAction
Returns the action for a given list of layers.- Specified by:
getMultiLayerAction
in interfaceLayer.MultiLayerAction
- Parameters:
layers
- list of layers- Returns:
- the action for the given list of layers
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
-