public class VehicleView
extends java.lang.Object
Vehicles.| Modifier and Type | Method and Description |
|---|---|
void |
draw(Vehicle vehicle,
javafx.scene.canvas.Canvas canvas,
javafx.geometry.Point2D point)
Implements the rendering of the graphical element.
|
static VehicleView |
getInstance()
Returns a reference to the single instance of this class
|
public static VehicleView getInstance()
VehicleView object's referencepublic void draw(Vehicle vehicle, javafx.scene.canvas.Canvas canvas, javafx.geometry.Point2D point)
vehicle - the model to drawcanvas - the canvas to draw onpoint - the location of drawing