org.jhotdraw.draw.action
Class AttributeAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.jhotdraw.draw.action.AbstractSelectedAction
-
- org.jhotdraw.draw.action.AttributeAction
-
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Disposable
- Direct Known Subclasses:
- EditorColorChooserAction
public class AttributeAction extends AbstractSelectedAction
AttributeActionapplies attribute values on the selected figures of the currentDrawingViewof aDrawingEditor.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value)Creates a new instance.AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value, javax.swing.Icon icon)Creates a new instance.AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value, java.lang.String name)Creates a new instance.AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value, java.lang.String name, javax.swing.Icon icon)AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value, java.lang.String name, javax.swing.Icon icon, javax.swing.Action compatibleTextAction)AttributeAction(DrawingEditor editor, java.util.Map<AttributeKey,java.lang.Object> attributes, java.lang.String name, javax.swing.Icon icon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidactionPerformed(java.awt.event.ActionEvent evt)voidapplyAttributesTo(java.util.Map<AttributeKey,java.lang.Object> a, java.util.Set<Figure> figures)Applies the specified attributes to the currently selected figures of the drawing.-
Methods inherited from class org.jhotdraw.draw.action.AbstractSelectedAction
dispose, getEditor, isUpdatEnabledState, setEditor, setUpdateEnabledState
-
-
-
-
Constructor Detail
-
AttributeAction
public AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value)
Creates a new instance.
-
AttributeAction
public AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value, @Nullable javax.swing.Icon icon)
Creates a new instance.
-
AttributeAction
public AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value, @Nullable java.lang.String name)
Creates a new instance.
-
AttributeAction
public AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value, @Nullable java.lang.String name, @Nullable javax.swing.Icon icon)
-
AttributeAction
public AttributeAction(DrawingEditor editor, AttributeKey key, java.lang.Object value, @Nullable java.lang.String name, @Nullable javax.swing.Icon icon, @Nullable javax.swing.Action compatibleTextAction)
-
AttributeAction
public AttributeAction(DrawingEditor editor, @Nullable java.util.Map<AttributeKey,java.lang.Object> attributes, @Nullable java.lang.String name, @Nullable javax.swing.Icon icon)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
-
applyAttributesTo
public void applyAttributesTo(java.util.Map<AttributeKey,java.lang.Object> a, java.util.Set<Figure> figures)
Applies the specified attributes to the currently selected figures of the drawing.- Parameters:
a- The attributes.figures- The figures to which the attributes are applied.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG