public interface GraphicalPrimitive
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g2d,
CoordinateConverter converter)
The function that draws the primitive
|
BoundingBox |
getBoundingBox()
Computes the bounding box of the graphical primitive.
|
void draw(java.awt.Graphics2D g2d, CoordinateConverter converter)
g2d
- the Graphics2D object on which the shape must be drawn.converter
- the coordinate converter used to convert the primitive's coordinates into the screen (hence Graphics2D) coordinates.BoundingBox getBoundingBox()