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, toString
decorate, undecorate
contains, getInteractor, getLayer, getParent, getToolTipText, getUserObject, hit, isVisible, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isVisible, setVisible
getParent, repaint
public BackgroundedCompositeFigure()
public BackgroundedCompositeFigure(Figure background)
public void setBackgroundFigure(Figure background)
setBackgroundFigure
in class CompositeFigure
public Figure getBackgroundFigure()
getBackgroundFigure
in class CompositeFigure
public Rectangle2D getBounds()
getBounds
in interface Figure
getBounds
in class CompositeFigure
public void paint(Graphics2D g)
paint
in interface VisibleComponent
paint
in class CompositeFigure
public void paint(Graphics2D g, Rectangle2D region)
paint
in interface VisibleComponent
paint
in class CompositeFigure
public Figure pick(Rectangle2D region)
pick
in interface FigureContainer
pick
in class CompositeFigure
public void transform(AffineTransform at)
transform
in interface Figure
transform
in class CompositeFigure
public void translate(double x, double y)
translate
in interface Figure
translate
in class CompositeFigure
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.