-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.interfaces.OutputMonitor,java.io.Serializable
@Deprecated() public interface GraphicalOutputMonitor<T, P extends Position<out P>> implements OutputMonitor<T, P>
OutputMonitorthat handles the graphical part of the simulation.
-
-
Method Summary
Modifier and Type Method Description abstract intgetStep()abstract voidsetStep(int step)abstract booleanisRealTime()abstract voidsetRealTime(boolean rt)If enabled, the monitor tries to synchronize the simulation time with the real time, slowing down the simulator if needed. abstract voidrepaint()Repaints the GUI. abstract voidsetDrawLinks(boolean b)abstract voidsetEffectStack(List<Effect> l)abstract voidsetMarkCloserNode(boolean mark)If set, the node closer to the mouse will be put in evidence. -
-
Method Detail
-
getStep
abstract int getStep()
-
setStep
abstract void setStep(int step)
- Parameters:
step- How many steps should be computed by the engine for the display to update the graphics
-
isRealTime
abstract boolean isRealTime()
-
setRealTime
abstract void setRealTime(boolean rt)
If enabled, the monitor tries to synchronize the simulation time with the real time, slowing down the simulator if needed. If the simulation is slower than the real time, then the display refreshes fast enough to keep the default frame rate.
- Parameters:
rt- true for the real time mode
-
repaint
abstract void repaint()
Repaints the GUI.
-
setDrawLinks
abstract void setDrawLinks(boolean b)
- Parameters:
b- if true, this monitor draws the links between nodes
-
setEffectStack
abstract void setEffectStack(List<Effect> l)
- Parameters:
l- the Effect stack to use
-
setMarkCloserNode
abstract void setMarkCloserNode(boolean mark)
If set, the node closer to the mouse will be put in evidence.
- Parameters:
mark- true if the node closer to the mouse should be marked
-
-
-
-