public abstract class FigureWrapper extends AbstractFigure
| Constructor and Description |
|---|
FigureWrapper(Figure f)
Construct a new figure with the given child figure.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getBounds()
Get the bounds of the child figure.
|
Figure |
getChild()
Get the child figure, or null if there isn't one.
|
Shape |
getShape()
Get the outline shape of the child figure.
|
void |
paint(Graphics2D g)
Paint the child if this figure is visible.
|
void |
setChild(Figure f)
Set the child figure.
|
void |
transform(AffineTransform at)
Transform the child figure with the supplied transform.
|
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, hit, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible, translatepublic FigureWrapper(Figure f)
public Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class AbstractFigurepublic Figure getChild()
public Shape getShape()
getShape in interface FiguregetShape in class AbstractFigurepublic void paint(Graphics2D g)
paint in interface VisibleComponentpaint in class AbstractFigurepublic void setChild(Figure f)
public void transform(AffineTransform at)
transform in interface Figuretransform in class AbstractFigureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.