InteractionManager

interface InteractionManager<T, P : Position2D<P>>

An interaction manager that controls the input/output on the environment done through the GUI.

Functions

Link copied to clipboard
abstract fun onMonitorRepaint()

To be called whenever the monitor paints its effects.

Link copied to clipboard
abstract fun repaint()

Clears and then paints every currently active feedback.

Link copied to clipboard
abstract fun setWormhole(wormhole: Wormhole2D<P>)

Sets the wormhole.

Link copied to clipboard
abstract fun setZoomManager(zoomManager: ZoomManager)

Sets the zoom manager.

Properties

Link copied to clipboard
abstract val canvases: Group

The canvases used for input/output.

Link copied to clipboard
abstract var environment: Environment<T, P>

The current environment.

Link copied to clipboard
abstract val keyboardListener: KeyboardActionListener

The keyboard listener.

Link copied to clipboard
abstract var nodes: Map<Node<T>, P>

The nodes in the environment. Should be updated as frequently as possible to ensure a representation of the feedback that is consistent with the actual environment.

Inheritors

Link copied to clipboard