public class SelectionColorChooserAction extends EditorColorChooserAction
The behavior for choosing the initial color of the JColorChooser matches with
SelectionColorIcon.
colorChooser, keyattributes| Constructor and Description |
|---|
SelectionColorChooserAction(DrawingEditor editor,
AttributeKey<java.awt.Color> key)
Creates a new instance.
|
SelectionColorChooserAction(DrawingEditor editor,
AttributeKey<java.awt.Color> key,
javax.swing.Icon icon)
Creates a new instance.
|
SelectionColorChooserAction(DrawingEditor editor,
AttributeKey<java.awt.Color> key,
java.lang.String name)
Creates a new instance.
|
SelectionColorChooserAction(DrawingEditor editor,
AttributeKey<java.awt.Color> key,
java.lang.String name,
javax.swing.Icon icon) |
SelectionColorChooserAction(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 |
|---|---|
protected java.awt.Color |
getInitialColor() |
actionPerformed, selectionChangedapplyAttributesTo, updateEnabledStatedispose, fireUndoableEditHappened, getDrawing, getEditor, getView, isUpdatEnabledState, setEditor, setUpdateEnabledStatepublic SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key)
public SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, javax.swing.Icon icon)
public SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.lang.String name)
public SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.lang.String name, javax.swing.Icon icon)
public SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.lang.String name, javax.swing.Icon icon, java.util.Map<AttributeKey,java.lang.Object> fixedAttributes)
protected java.awt.Color getInitialColor()
getInitialColor in class EditorColorChooserAction