-
- All Implemented Interfaces:
public interface InteractionManager<T extends Object, P extends Position2D<P>>An interaction manager that controls the input/output on the environment done through the GUI.
-
-
Method Summary
Modifier and Type Method Description abstract Unitrepaint()Clears and then paints every currently active feedback. abstract UnitsetWormhole(Wormhole2D<P> wormhole)Sets the wormhole. abstract UnitsetZoomManager(ZoomManager zoomManager)Sets the zoom manager. abstract UnitonMonitorRepaint()To be called whenever the monitor paints its effects. abstract Environment<T, P>getEnvironment()The current environment. abstract UnitsetEnvironment(Environment<T, P> environment)The current environment. abstract Map<Node<T>, P>getNodes()The nodes in the environment. abstract UnitsetNodes(Map<Node<T>, P> nodes)The nodes in the environment. abstract KeyboardActionListenergetKeyboardListener()The keyboard listener. abstract GroupgetCanvases()The canvases used for input/output. -
-
Method Detail
-
setWormhole
abstract Unit setWormhole(Wormhole2D<P> wormhole)
Sets the wormhole.
-
setZoomManager
abstract Unit setZoomManager(ZoomManager zoomManager)
Sets the zoom manager.
-
onMonitorRepaint
abstract Unit onMonitorRepaint()
To be called whenever the monitor paints its effects.
-
getEnvironment
abstract Environment<T, P> getEnvironment()
The current environment.
-
setEnvironment
abstract Unit setEnvironment(Environment<T, P> environment)
The current environment.
-
getNodes
abstract Map<Node<T>, P> getNodes()
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.
-
setNodes
abstract Unit setNodes(Map<Node<T>, P> nodes)
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.
-
getKeyboardListener
abstract KeyboardActionListener getKeyboardListener()
The keyboard listener.
-
getCanvases
abstract Group getCanvases()
The canvases used for input/output.
-
-
-
-