public class CustomizeDrawingAction extends javax.swing.AbstractAction implements Layer.LayerAction, Layer.MultiLayerAction
Modifier | Constructor and Description |
---|---|
private |
CustomizeDrawingAction() |
|
CustomizeDrawingAction(Layer l)
Create a new
CustomizeDrawingAction |
|
CustomizeDrawingAction(java.util.List<Layer> l)
Create a new
CustomizeDrawingAction |
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.
|
public CustomizeDrawingAction(java.util.List<Layer> l)
CustomizeDrawingAction
l
- The layers that should be customizedpublic CustomizeDrawingAction(Layer l)
CustomizeDrawingAction
l
- The layer that should be customizedprivate CustomizeDrawingAction()
public 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