public static class Indicator.EmergencyIndicator extends Indicator<Indicator.DataAndChime<java.lang.Object,java.lang.Object>> implements Drawable
Indicator.ArrivalIndicator, Indicator.DataAndChime<D,C>, Indicator.DoorIndicator, Indicator.EmergencyIndicator, Indicator.FloorIndicator
Constructor and Description |
---|
EmergencyIndicator(java.lang.Object display,
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.EmergencyIndicator |
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 EmergencyIndicator(java.lang.Object display, java.lang.Object chime)
display
- The image or text this emergency indicator displayschime
- The chime to be played when the indicator goes activepublic Indicator.EmergencyIndicator setActive(boolean active)
setActive
in class Indicator<Indicator.DataAndChime<java.lang.Object,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