public class TransformedFigureTutorial.CloudFigure extends AbstractFigure
| Constructor and Description |
|---|
CloudFigure(double x,
double y,
double width,
double height)
Create a new instance of this figure.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getBounds()
Get the bounds of this figure.
|
Shape |
getShape()
Get the shape of this figure.
|
TransformContext |
getTransformContext()
Get the transform context.
|
void |
paint(Graphics2D g)
Paint this figure onto the given graphics context.
|
void |
transform(AffineTransform at)
Transform the object.
|
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getUserObject, hit, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible, translatepublic CloudFigure(double x,
double y,
double width,
double height)
public Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class AbstractFigurepublic Shape getShape()
getShape in interface FiguregetShape in class AbstractFigurepublic TransformContext getTransformContext()
getTransformContext in interface CanvasComponentgetTransformContext in class AbstractFigurepublic void paint(Graphics2D g)
paint in interface VisibleComponentpaint in class AbstractFigurepublic void transform(AffineTransform at)
transform in interface Figuretransform in class AbstractFigureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.