Package 

Class AbstractDrawOnce

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class it.unibo.alchemist.boundary.swingui.effect.api.Effect

        apply, equals, getColorSummary, hashCode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • apply

         <T, P extends Position2D<P>> void apply(Graphics2D graphics, Node<T> node, Environment<T, P> environment, Wormhole2D<P> wormhole)

        Applies the effect.