|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.AbstractFigureContainer
diva.canvas.CompositeFigure
diva.canvas.toolbox.BackgroundedCompositeFigure
public class BackgroundedCompositeFigure
A composite figure which has a background shape and appropriate event-handling capabilities, behaving in a way similar to PaneWrapper.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class diva.canvas.CompositeFigure |
---|
add, add, contains, figures, figuresFromBack, figuresFromFront, get, getChildren, getFigureCount, getOrigin, getShape, getTransformContext, indexOf, intersects, invalidateCachedBounds, pick, remove, remove, repaint, replaceChild, setIndex, toString |
Methods inherited from class diva.canvas.AbstractFigureContainer |
---|
decorate, undecorate |
Methods inherited from class diva.canvas.AbstractFigure |
---|
contains, getInteractor, getLayer, getParent, getToolTipText, getUserObject, hit, isVisible, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface diva.canvas.VisibleComponent |
---|
isVisible, setVisible |
Methods inherited from interface diva.canvas.CanvasComponent |
---|
getParent, repaint |
Constructor Detail |
---|
public BackgroundedCompositeFigure()
public BackgroundedCompositeFigure(Figure background)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |