Modifier and Type | Field and Description |
---|---|
protected double[] |
br
The bottom right corner of the shape
|
protected double[] |
center
The center point of the shape
|
protected double[] |
tl
The top left corner of the shape
|
Constructor and Description |
---|
DrawShape() |
Modifier and Type | Method and Description |
---|---|
abstract void |
draw(javafx.scene.canvas.GraphicsContext graphics,
boolean fill)
Draws this shape
Some shapes (like Tube) may ignore the fill parameter |
protected double[] center
protected double[] tl
protected double[] br
public abstract void draw(javafx.scene.canvas.GraphicsContext graphics, boolean fill)
graphics
- the GraphicsContext onto which this image is being drawnfill
- true if the shape should be filled, false otherwise