-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.gui.effects.Effect
,java.io.Serializable
public interface DrawLayers implements Effect
Basic interface for every effect that draws something related to it.unibo.alchemist.model.interfaces.Layers. This class is a workaround: the Effect abstraction is meant to add effects to nodes, not to draw layers. At present, is the finest workaround available. This workaround has the following disadvantages: - when there aren't nodes visible in the gui the effects are not used at all, so this effect won't work.
-
-
Method Summary
Modifier and Type Method Description abstract <T, P extends Position2D<P>> void
drawLayers(Collection<Layer<T, P>> toDraw, Environment<T, P> environment, Graphics2D graphics, Wormhole2D<P> wormhole)
Effectively draw the layers. -
-
Method Detail
-
drawLayers
abstract <T, P extends Position2D<P>> void drawLayers(Collection<Layer<T, P>> toDraw, Environment<T, P> environment, Graphics2D graphics, Wormhole2D<P> wormhole)
Effectively draw the layers.
- Parameters:
toDraw
- - the layers to drawenvironment
- - the environment (mainly used to create positions)graphics
- - the graphics2Dwormhole
- - the wormhole
-
-
-
-