public class SelectionColorChooserAction extends EditorColorChooserAction
The behavior for choosing the initial color of the JColorChooser matches with
SelectionColorIcon
.
colorChooser, key
attributes
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, selectionChanged
applyAttributesTo, updateEnabledState
dispose, fireUndoableEditHappened, getDrawing, getEditor, getView, isUpdatEnabledState, setEditor, setUpdateEnabledState
public 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