public class VectorFigure extends AbstractFigure
| Constructor and Description |
|---|
VectorFigure()
Create a new blank figure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Composite c)
Add a new compositioning operator to the list of drawn objects.
|
void |
add(Figure f)
Add a new figure to the list of drawn objects
|
void |
add(Paint p)
Add a new paint to the list of drawn objects.
|
void |
add(Shape s)
Add a new painted shape to the list of drawn objects.
|
void |
add(Stroke s)
Add a new stroke to the list of drawn objects.
|
void |
fillMode()
Add an object to the list that puts drawing into fill mode
|
Rectangle2D |
getBounds()
Get the bounding box of this figure.
|
Shape |
getShape()
Get the shape of this figure.
|
void |
lineMode()
Add an object to the list that puts drawing into line mode
|
void |
paint(Graphics2D g)
Paint the figure.
|
void |
setShape(Shape s)
Set the shape of this Figure.
|
void |
transform(AffineTransform at)
Transform the 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 void add(Shape s)
public void add(Figure f)
public void add(Composite c)
public void add(Paint p)
public void add(Stroke s)
public void fillMode()
public Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class AbstractFigurepublic Shape getShape()
getShape in interface FiguregetShape in class AbstractFigurepublic void lineMode()
public void paint(Graphics2D g)
paint in interface VisibleComponentpaint in class AbstractFigurepublic void setShape(Shape s)
public void transform(AffineTransform at)
transform in interface Figuretransform in class AbstractFigureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.