public class BackgroundedCompositeFigure extends CompositeFigure
| Constructor and Description |
|---|
BackgroundedCompositeFigure()
Construct a backgrounded composite figure with
no background and no children.
|
BackgroundedCompositeFigure(Figure background)
Construct a backgrounded composite figure with the
given background and no children.
|
| Modifier and Type | Method and Description |
|---|---|
Figure |
getBackgroundFigure()
Return the figure that is displayed in the background of this
figure and which handles the events that this figure's children
do not.
|
Rectangle2D |
getBounds()
Return a union of the bounding box of the children and the
bounding box of the background figure.
|
void |
paint(Graphics2D g)
Paint this composite figure onto a 2D graphics object.
|
void |
paint(Graphics2D g,
Rectangle2D region)
Paint this composite figure onto a 2D graphics object, within
the given region.
|
Figure |
pick(Rectangle2D region)
Get the picked figure.
|
void |
setBackgroundFigure(Figure background)
Set the figure that is displayed in the background of this
figure and which handles the events that this figure's children
do not.
|
void |
transform(AffineTransform at)
Transform this figure with the supplied transform.
|
void |
translate(double x,
double y)
Translate this figure the given distance.
|
add, add, contains, figures, figuresFromBack, figuresFromFront, get, getChildren, getFigureCount, getOrigin, getShape, getTransformContext, indexOf, intersects, invalidateCachedBounds, pick, remove, remove, repaint, replaceChild, setIndex, toStringdecorate, undecoratecontains, getInteractor, getLayer, getParent, getToolTipText, getUserObject, hit, isVisible, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisVisible, setVisiblegetParent, repaintpublic BackgroundedCompositeFigure()
public BackgroundedCompositeFigure(Figure background)
public void setBackgroundFigure(Figure background)
setBackgroundFigure in class CompositeFigurepublic Figure getBackgroundFigure()
getBackgroundFigure in class CompositeFigurepublic Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class CompositeFigurepublic void paint(Graphics2D g)
paint in interface VisibleComponentpaint in class CompositeFigurepublic void paint(Graphics2D g, Rectangle2D region)
paint in interface VisibleComponentpaint in class CompositeFigurepublic Figure pick(Rectangle2D region)
pick in interface FigureContainerpick in class CompositeFigurepublic void transform(AffineTransform at)
transform in interface Figuretransform in class CompositeFigurepublic void translate(double x,
double y)
translate in interface Figuretranslate in class CompositeFigureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.