public class DrawingOpacityIcon
extends javax.swing.ImageIcon
DrawingOpacityIcon
visualizes an opacity attribute of the
Drawing
object which is in the active DrawingView
of a
DrawingEditor
.Constructor and Description |
---|
DrawingOpacityIcon(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) |
DrawingOpacityIcon(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.
|
Modifier and Type | Method and Description |
---|---|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics gr,
int x,
int y) |
public DrawingOpacityIcon(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)
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.public DrawingOpacityIcon(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)