Package 

Interface DrawLayers

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.swingui.effect.api.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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

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

        apply, 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

      • 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 draw
        environment - - the environment (mainly used to create positions)
        graphics - - the graphics2D
        wormhole - - the wormhole