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