public class CustomizeColor extends javax.swing.AbstractAction implements Layer.LayerAction, Layer.MultiLayerAction
GpxLayer or MarkerLayer.| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Layer> |
colorLayers |
| Constructor and Description |
|---|
CustomizeColor(Layer l)
Constructs a new
CustomizeColor for a single layer. |
CustomizeColor(java.util.List<Layer> l)
Constructs a new
CustomizeColor for a given list of layers. |
| Modifier and Type | Method and 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.
|
private final transient java.util.List<Layer> colorLayers
public CustomizeColor(java.util.List<Layer> l)
CustomizeColor for a given list of layers.l - list of layerspublic CustomizeColor(Layer l)
CustomizeColor for a single layer.l - layerpublic boolean supportLayers(java.util.List<Layer> layers)
Layer.LayerActionsupportLayers in interface Layer.LayerActionlayers - list of layerstrue if this action supports the given list of layers, false otherwisepublic java.awt.Component createMenuComponent()
Layer.LayerActioncreateMenuComponent in interface Layer.LayerActionpublic javax.swing.Action getMultiLayerAction(java.util.List<Layer> layers)
Layer.MultiLayerActiongetMultiLayerAction in interface Layer.MultiLayerActionlayers - list of layerspublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener