FXOutputMonitor

interface FXOutputMonitor<T, P : Position2D<out P>?> : OutputMonitor<T, P>

OutputMonitor that handles the graphical part of the simulation in JavaFX.

Parameters

Types

Link copied to clipboard
enum ViewStatus
The enum models the status of the view.

Functions

Link copied to clipboard
abstract fun addEffectGroup(effects: EffectGroup<P>)
Add the EffectGroup in the collection to the Effects to draw.
Link copied to clipboard
abstract fun addEffects(effects: Collection<EffectGroup<P>>)
Add all the EffectGroups in the collection to the Effects to draw.
Link copied to clipboard
abstract fun asJavaFXNode(): Node
Returns the JavaFX Node that is this monitor.
Link copied to clipboard
open fun finished(environment: Environment<T, P>, time: Time, step: Long)
Link copied to clipboard
abstract fun getEffects(): Collection<EffectGroup<P>>
Getter method for the Effects to draw.
Link copied to clipboard
abstract fun getKeyboardListener(): KeyboardActionListener
Returns the keyboard listener associated with this monitor.
Link copied to clipboard
abstract fun getViewStatus(): FXOutputMonitor.ViewStatus
Getter method for the current view status.
Link copied to clipboard
open fun initialized(environment: Environment<T, P>)
Link copied to clipboard
abstract fun repaint()
Repaints this javafx.scene.canvas.Canvas' javafx.scene.canvas.GraphicsContext by drawing all the Effects of each it.unibo.alchemist.model.interfaces.Node of the specified it.unibo.alchemist.model.interfaces.Environment.
Link copied to clipboard
abstract fun setEffects(effects: Collection<EffectGroup<P>>)
Setter method for the effects to draw.
Link copied to clipboard
abstract fun setRealTime(realTime: Boolean)
If enabled, the monitor tries to synchronize the simulation time with the real time, slowing down the simulator if needed.
Link copied to clipboard
abstract fun setViewStatus(viewStatus: FXOutputMonitor.ViewStatus)
Setter method for the current view status.
Link copied to clipboard
open fun stepDone(environment: Environment<T, P>, reaction: Reaction<T>, time: Time, step: Long)

Inheritors

Link copied to clipboard