org.jhotdraw.samples.svg.gui
Class SelectionOpacityIcon
- java.lang.Object
-
- javax.swing.ImageIcon
-
- org.jhotdraw.samples.svg.gui.SelectionOpacityIcon
-
- All Implemented Interfaces:
- java.io.Serializable, javax.accessibility.Accessible, javax.swing.Icon
public class SelectionOpacityIcon extends javax.swing.ImageIconSelectionOpacityIconvisualizes an opacity attribute of the selectedFigure(s) in the activeDrawingViewof aDrawingEditor.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SelectionOpacityIcon(DrawingEditor editor, AttributeKey<java.lang.Double> opacityKey, AttributeKey<java.awt.Color> fillColorKey, AttributeKey<java.awt.Color> strokeColorKey, java.awt.Image image, java.awt.Shape fillShape, java.awt.Shape strokeShape)SelectionOpacityIcon(DrawingEditor editor, AttributeKey<java.lang.Double> opacityKey, AttributeKey<java.awt.Color> fillColorKey, AttributeKey<java.awt.Color> strokeColorKey, java.net.URL imageLocation, java.awt.Shape fillShape, java.awt.Shape strokeShape)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
-
SelectionOpacityIcon
public SelectionOpacityIcon(DrawingEditor editor, AttributeKey<java.lang.Double> opacityKey, AttributeKey<java.awt.Color> fillColorKey, @Nullable AttributeKey<java.awt.Color> strokeColorKey, java.net.URL imageLocation, java.awt.Shape fillShape, java.awt.Shape strokeShape)
Creates a new instance.- Parameters:
editor- The drawing editor.opacityKey- The opacityKey of the default attributeimageLocation- the icon imagefillShape- The shape to be drawn with the fillColor of the default attribute.
-
SelectionOpacityIcon
public SelectionOpacityIcon(DrawingEditor editor, AttributeKey<java.lang.Double> opacityKey, AttributeKey<java.awt.Color> fillColorKey, @Nullable AttributeKey<java.awt.Color> strokeColorKey, java.awt.Image image, java.awt.Shape fillShape, java.awt.Shape strokeShape)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG