public abstract class SlotView extends SimpleView<Slot>
SlotView class serves as a base class
for all view classes belonging to classes derived from the
Slot class.| Constructor and Description |
|---|
SlotView(Slot model)
Creates a
Slot based on the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw()
Implements the rendering of the graphical element.
|
void |
injectCanvas(javafx.scene.canvas.Canvas canvas)
Setter of the canvas.
|
void |
injectPoint(javafx.geometry.Point2D point)
Setter of the position.
|
public SlotView(Slot model)
Slot based on the given parameters.
Initializes its view for its station.model - the corresponding Slot objectpublic void draw()
draw in class SimpleView<Slot>public void injectCanvas(javafx.scene.canvas.Canvas canvas)
injectCanvas in class SimpleView<Slot>canvas - the desired canvaspublic void injectPoint(javafx.geometry.Point2D point)
injectPoint in class SimpleView<Slot>point - the desired position