org.jhotdraw.draw.action
Class SelectionColorChooserAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.jhotdraw.draw.action.AbstractSelectedAction
-
- org.jhotdraw.draw.action.AttributeAction
-
- org.jhotdraw.draw.action.EditorColorChooserAction
-
- org.jhotdraw.draw.action.SelectionColorChooserAction
-
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Disposable
public class SelectionColorChooserAction extends EditorColorChooserAction
This is like EditorColorChooserAction, but the JColorChooser is initialized with the color of the currently selected Figures.The behavior for choosing the initial color of the JColorChooser matches with
SelectionColorIcon.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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)
-
Method Summary
-
Methods inherited from class org.jhotdraw.draw.action.EditorColorChooserAction
actionPerformed, selectionChanged
-
Methods inherited from class org.jhotdraw.draw.action.AttributeAction
applyAttributesTo
-
Methods inherited from class org.jhotdraw.draw.action.AbstractSelectedAction
dispose, getEditor, isUpdatEnabledState, setEditor, setUpdateEnabledState
-
-
-
-
Constructor Detail
-
SelectionColorChooserAction
public SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key)
Creates a new instance.
-
SelectionColorChooserAction
public SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, @Nullable javax.swing.Icon icon)
Creates a new instance.
-
SelectionColorChooserAction
public SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, @Nullable java.lang.String name)
Creates a new instance.
-
SelectionColorChooserAction
public SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, @Nullable java.lang.String name, @Nullable javax.swing.Icon icon)
-
SelectionColorChooserAction
public SelectionColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, @Nullable java.lang.String name, @Nullable javax.swing.Icon icon, @Nullable java.util.Map<AttributeKey,java.lang.Object> fixedAttributes)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG