public class SwitchView extends SlotView
Switch class.| Constructor and Description |
|---|
SwitchView(Switch model,
Direction direction)
Creates a
SwitchView based on the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
click()
Click event handler of this
SwitchView. |
javafx.scene.image.Image |
getImage()
Returns the
Image object which belongs to this SwitchView. |
draw, injectCanvas, injectPointgetCanvas, getImage, getModel, getPointpublic javafx.scene.image.Image getImage()
Image object which belongs to this SwitchView.getImage in class SimpleView<Slot>Imagepublic void click()
SwitchView.
Toggles the corresponding Switch's 3 directional states periodically.click in class SimpleView<Slot>