org.jhotdraw.draw.action
Class DrawingColorChooserAction
- 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.DrawingColorChooserAction
-
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Disposable
public class DrawingColorChooserAction extends EditorColorChooserAction
The DrawingColorChooserAction changes a color attribute of the Drawing object in the current view of the DrawingEditor.The behavior for choosing the initial color of the JColorChooser matches with
DrawingColorIcon.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DrawingColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key)Creates a new instance.DrawingColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, javax.swing.Icon icon)Creates a new instance.DrawingColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.lang.String name)Creates a new instance.DrawingColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.lang.String name, javax.swing.Icon icon)DrawingColorChooserAction(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
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidactionPerformed(java.awt.event.ActionEvent e)-
Methods inherited from class org.jhotdraw.draw.action.EditorColorChooserAction
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
-
DrawingColorChooserAction
public DrawingColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key)
Creates a new instance.
-
DrawingColorChooserAction
public DrawingColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, @Nullable javax.swing.Icon icon)
Creates a new instance.
-
DrawingColorChooserAction
public DrawingColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, @Nullable java.lang.String name)
Creates a new instance.
-
DrawingColorChooserAction
public DrawingColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, @Nullable java.lang.String name, @Nullable javax.swing.Icon icon)
-
DrawingColorChooserAction
public DrawingColorChooserAction(DrawingEditor editor, AttributeKey<java.awt.Color> key, @Nullable java.lang.String name, @Nullable javax.swing.Icon icon, java.util.Map<AttributeKey,java.lang.Object> fixedAttributes)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classEditorColorChooserAction
-
-
DataMelt 3.0 © DataMelt by jWork.ORG