public class EditorColorChooserAction extends AttributeAction
The behavior for choosing the initial color of the JColorChooser matches with
EditorColorIcon.
| Modifier and Type | Field and Description |
|---|---|
protected static javax.swing.JColorChooser |
colorChooser |
protected AttributeKey<java.awt.Color> |
key |
attributes| Constructor and Description |
|---|
EditorColorChooserAction(DrawingEditor editor,
AttributeKey<java.awt.Color> key)
Creates a new instance.
|
EditorColorChooserAction(DrawingEditor editor,
AttributeKey<java.awt.Color> key,
javax.swing.Icon icon)
Creates a new instance.
|
EditorColorChooserAction(DrawingEditor editor,
AttributeKey<java.awt.Color> key,
java.lang.String name)
Creates a new instance.
|
EditorColorChooserAction(DrawingEditor editor,
AttributeKey<java.awt.Color> key,
java.lang.String name,
javax.swing.Icon icon) |
EditorColorChooserAction(DrawingEditor editor,
AttributeKey<java.awt.Color> key,
java.lang.String name,
javax.swing.Icon icon,
java.util.Map<AttributeKey,java.lang.Object> fixedAttributes) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected java.awt.Color |
getInitialColor() |
void |
selectionChanged(FigureSelectionEvent evt) |
applyAttributesTo, updateEnabledStatedispose, fireUndoableEditHappened, getDrawing, getEditor, getView, isUpdatEnabledState, setEditor, setUpdateEnabledStateprotected AttributeKey<java.awt.Color> key
protected static javax.swing.JColorChooser colorChooser
public EditorColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key)
public EditorColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, javax.swing.Icon icon)
public EditorColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.lang.String name)
public EditorColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.lang.String name, javax.swing.Icon icon)
public EditorColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.lang.String name, javax.swing.Icon icon, java.util.Map<AttributeKey,java.lang.Object> fixedAttributes)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class AttributeActionpublic void selectionChanged(FigureSelectionEvent evt)
protected java.awt.Color getInitialColor()