ButtonsBarController

open class ButtonsBarController<P : Position2D<out P>?> : Initializable

This class models a JavaFX controller for ButtonsBarLayout.fxml.

Parameters

<P>

the position type

Constructors

Link copied to clipboard
open fun ButtonsBarController()
Default constructor.
Link copied to clipboard
open fun ButtonsBarController(@Nullable displayMonitor: FXOutputMonitor<out Any, out Any>)
Same as default constructor, but lets specify an it.unibo.alchemist.boundary.interfaces.OutputMonitor to display the effects.
Link copied to clipboard
open fun ButtonsBarController(playPauseButton: Button, timeLabel: Label, stepLabel: Label)
Same as default constructor, but lets specify the play/pause Button, a Label for the steps and a Label for the time.
Link copied to clipboard
open fun ButtonsBarController(@Nullable displayMonitor: FXOutputMonitor<out Any, out Any>, playPauseButton: Button, timeLabel: Label, stepLabel: Label)
Same as default constructor, but lets specify an it.unibo.alchemist.boundary.interfaces.OutputMonitor to display the effects, the play/pause Button, a Label for the steps and a Label for the time.

Functions

Link copied to clipboard
open fun getObservableEffectsList(): ObservableList<EffectGroup<P>>
Getter method for the List of groups of effects in the side drawer.
Link copied to clipboard
open fun initialize(location: URL, resources: ResourceBundle)
Link copied to clipboard
fun setStepMonitor(stepMonitor: Label)
Sets the step monitor label.
Link copied to clipboard
fun setTimeMonitor(timeMonitor: Label)
Sets the time monitor label.

Properties

Link copied to clipboard
val BUTTONS_BAR_LAYOUT: String
Layout path.
Link copied to clipboard
private open var displayMonitor: Optional<FXOutputMonitor<out Any, out Any>>
Link copied to clipboard
private open var startStopButton: Button