public static class Indicator.ArrivalIndicator extends Indicator<Indicator.DataAndChime<java.lang.Boolean,java.lang.Object>> implements Drawable
Indicator.ArrivalIndicator, Indicator.DataAndChime<D,C>, Indicator.DoorIndicator, Indicator.EmergencyIndicator, Indicator.FloorIndicator
Constructor and Description |
---|
ArrivalIndicator(boolean up,
java.util.List<java.lang.Object> chimes) |
ArrivalIndicator(boolean up,
java.lang.Object chime) |
Modifier and Type | Method and Description |
---|---|
javafx.scene.image.ImageView |
getRepresentation()
Gets the reference to an object of type ImageView in which this Drawable stores its representation.
|
Indicator.ArrivalIndicator |
setActive(boolean active)
Overrides super method in order to update representation when the light is changed.
|
Drawable |
setImageView(javafx.scene.image.ImageView representation)
Set the ImageView of this object so it can update its own display.
|
Drawable |
updateRepresentation()
Updates the ImageView with the image that represents the current state of this Drawable
|
public ArrivalIndicator(boolean up, java.lang.Object chime)
up
- Whether this indicator indicates the cabin is traveling upchime
- The chime to be played when the indicator goes activepublic ArrivalIndicator(boolean up, java.util.List<java.lang.Object> chimes)
up
- Whether this indicator indicates the cabin is traveling upchimes
- The chime to be played when the indicator goes activepublic Indicator.ArrivalIndicator setActive(boolean active)
setActive
in class Indicator<Indicator.DataAndChime<java.lang.Boolean,java.lang.Object>>
active
- the active to setpublic Drawable setImageView(javafx.scene.image.ImageView representation)
setImageView
in interface Drawable
representation
- The reference to the ImageView in which the representation of this Drawable should be
placedpublic javafx.scene.image.ImageView getRepresentation()
getRepresentation
in interface Drawable
public Drawable updateRepresentation()
updateRepresentation
in interface Drawable