Create a new icon figure using the given figure as the
"background" figure, the given Painted object as its "graphic,"
and the given string as a displayed label.
public void addTerminal(Terminal t,
Add the given terminal, on the given side and with the given
offset, to the icon. A BoundsSite will be created and the
terminal attached to it. See the BoundsSite class for a
description if the side and offset arguments.
Get the bounding box of this icon, including the terminals.
The bounds of the painted objects on top of the icon is not
included in the calculation, as its expensive to compute and
whoever created the icon is assumed to check that the painted
objects are within bounds at creation time.
g - The 2D graphics object that this object
it to be painted upon.
public void setComposite(java.awt.Composite c)
Set the color composition operator of this figure. If the
composite is set to null, then the composite will not be
changed when the figure is painted -- provided that all
other objects in the system are well-behaved, this means
that icons will be opaque. The default composite value
public void setLabel(java.lang.String s)
Set the label of this figure.
public java.util.Iterator terminals()
Get an iterator over the terminals of this figure.
public void transform(java.awt.geom.AffineTransform at)
Transform the figure with the supplied transform. This method
transforms the background figure and the graphic, but not
the label or the terminals.