Graphical2DOutputMonitor

Deprecated

The entire Swing UI is planned to be replaced my a modern UI.

An output monitor that supports zooming on bidimensional environments.

Parameters

<P>

position type

<T>

concentration type

Inheritors

Functions

Link copied to clipboard
open fun finished(environment: Environment<T, P>, time: Time, step: Long)

Called once the whole simulation has finished, either because it reached its latest point or because the user stopped it, with the environment, the final time, and the last step.

Link copied to clipboard
abstract fun getStep(): Int
Returns the number of simulation steps between two graphics updates.
Link copied to clipboard
open fun initialized(environment: Environment<T, P>)

Called as soon as the initialization phase of environment is completed.

Link copied to clipboard
abstract fun isRealTime(): Boolean
Checks whether this monitor is trying to draw in real time.
Link copied to clipboard
abstract fun repaint()
Repaints the GUI.
Link copied to clipboard
abstract fun setDrawLinks(b: Boolean)
Enables or disables the drawing of the links between nodes.
Link copied to clipboard
abstract fun setEffectStack(l: List<Effect>)
Sets the stack of effects to use.
Link copied to clipboard
abstract fun setMarkCloserNode(mark: Boolean)
If set, the node closer to the mouse will be put in evidence.
Link copied to clipboard
abstract fun setRealTime(rt: 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 setStep(step: Int)
Sets the number of simulation steps between two graphics updates.
Link copied to clipboard
open fun stepDone(environment: Environment<T, P>, reaction: Reaction<T>, time: Time, step: Long)

Called every time a simulation step is done, with the environment, the last executed reaction (if any), the current time, and the current step.

Link copied to clipboard
abstract fun zoomTo(center: P, zoomLevel: Double)
Zooms the view on the given point, with the given zoom level.