org.jhotdraw.draw.action
Class SelectionColorIcon
- java.lang.Object
-
- javax.swing.ImageIcon
-
- org.jhotdraw.draw.action.SelectionColorIcon
-
- All Implemented Interfaces:
- java.io.Serializable, javax.accessibility.Accessible, javax.swing.Icon
public class SelectionColorIcon extends javax.swing.ImageIconSelectionColorIcon draws a shape with the specified color for the selected figures in the current drawing view. If now figures are selcted, the specified color is taken from the DrawingEditor.The behavior for choosing the drawn color matches with
SelectionColorChooserAction.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SelectionColorIcon(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.awt.Image image, java.awt.Shape colorShape)SelectionColorIcon(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.net.URL imageLocation, java.awt.Shape colorShape)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidpaintIcon(java.awt.Component c, java.awt.Graphics gr, int x, int y)
-
-
-
Constructor Detail
-
SelectionColorIcon
public SelectionColorIcon(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.net.URL imageLocation, java.awt.Shape colorShape)
Creates a new instance.- Parameters:
editor- The drawing editor.key- The key of the default attributeimageLocation- the icon imagecolorShape- The shape to be drawn with the color of the default attribute.
-
SelectionColorIcon
public SelectionColorIcon(DrawingEditor editor, AttributeKey<java.awt.Color> key, java.awt.Image image, java.awt.Shape colorShape)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG