public class CustomizeColor extends javax.swing.AbstractAction implements Layer.LayerAction, Layer.MultiLayerAction
Modifier and Type | Field and Description |
---|---|
private java.util.List<AbstractProperty<java.awt.Color>> |
colors |
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<AbstractProperty<java.awt.Color>> colors
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.LayerAction
supportLayers
in interface Layer.LayerAction
layers
- list of layerstrue
if this action supports the given list of layers, false
otherwisepublic java.awt.Component createMenuComponent()
Layer.LayerAction
createMenuComponent
in interface Layer.LayerAction
public javax.swing.Action getMultiLayerAction(java.util.List<Layer> layers)
Layer.MultiLayerAction
getMultiLayerAction
in interface Layer.MultiLayerAction
layers
- list of layerspublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener