public class IconFigure extends AbstractFigure
| Constructor and Description |
|---|
IconFigure(Figure f)
Create a new icon figure using the given figure as the "background"
figure.
|
IconFigure(Figure f,
PaintedObject g)
Create a new icon figure using the given figure as the
"background" figure and the given Painted object as its "graphic."
|
IconFigure(Figure f,
PaintedObject g,
String label)
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.
|
IconFigure(Figure f,
String label)
Create a new icon figure using the given figure as the
"background" figure and with the given label.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTerminal(Terminal t,
int side,
double offset)
Add the given terminal, on the given side and with the given
offset, to the icon.
|
Figure |
getBackground()
Get the background figure of the icon.
|
Rectangle2D |
getBounds()
Get the bounding box of this icon, including the terminals.
|
Composite |
getComposite()
Get the composite of this icon, or null if it doesn't
have one.
|
PaintedObject |
getGraphic()
Get the painted object that is drawn over the top
of the icon as its "graphic."
|
Shape |
getShape()
Get the shape of this figure.
|
Terminal |
getTerminal(int index)
Get the terminal at the given index
|
boolean |
intersects(Rectangle2D r)
Test if this figure intersects the given rectangle.
|
void |
paint(Graphics2D g)
Paint the icon.
|
void |
setComposite(Composite c)
Set the color composition operator of this figure.
|
void |
setLabel(String s)
Set the label of this figure.
|
Iterator |
terminals()
Get an iterator over the terminals of this figure.
|
void |
transform(AffineTransform at)
Transform the figure with the supplied transform.
|
void |
translate(double x,
double y)
Translate the figure the given distance.
|
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, hit, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisiblepublic IconFigure(Figure f)
public IconFigure(Figure f, PaintedObject g)
public IconFigure(Figure f, String label)
public IconFigure(Figure f, PaintedObject g, String label)
public void addTerminal(Terminal t, int side, double offset)
public Figure getBackground()
public Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class AbstractFigurepublic PaintedObject getGraphic()
public Composite getComposite()
public Shape getShape()
getShape in interface FiguregetShape in class AbstractFigurepublic Terminal getTerminal(int index)
public boolean intersects(Rectangle2D r)
intersects in interface Figureintersects in class AbstractFigurepublic void paint(Graphics2D g)
paint in interface VisibleComponentpaint in class AbstractFigurepublic void setComposite(Composite c)
public void setLabel(String s)
public Iterator terminals()
public void transform(AffineTransform at)
transform in interface Figuretransform in class AbstractFigurepublic void translate(double x,
double y)
translate in interface Figuretranslate in class AbstractFigureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.