-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.swingui.effect.api.Effect
,java.io.Serializable
public abstract class AbstractDrawOnce implements Effect
Effects are normally applied for each node, this is a base class for effects that do not need to be redrawn for each node. In other words, this effect will be applied for a single node instead of redrawing for all of them.
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
markerNodeID
-
Method Summary
Modifier and Type Method Description Integer
getMarkerNodeID()
<T, P extends Position2D<P>> void
apply(Graphics2D graphics, Node<T> node, Environment<T, P> environment, Wormhole2D<P> wormhole)
Applies the effect. -
-
Method Detail
-
getMarkerNodeID
@Nullable() Integer getMarkerNodeID()
-
apply
<T, P extends Position2D<P>> void apply(Graphics2D graphics, Node<T> node, Environment<T, P> environment, Wormhole2D<P> wormhole)
Applies the effect.
-
-
-
-