Interface Effect

    • 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
      void apply(Graphics2D graphic, Node<out Object> node, int x, int y) Applies the effect.
      <T, P extends Position2D<P>> void apply(Graphics2D g, Node<T> n, Environment<T, P> environment, Wormhole2D<P> wormhole) Applies the effect.
      abstract Color getColorSummary()
      abstract int hashCode()
      abstract boolean equals(Object obj)
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • apply

        @Deprecated() void apply(Graphics2D graphic, Node<out Object> node, int x, int y)

        Applies the effect.

        Parameters:
        graphic - Graphics2D to use
        node - the node to draw
        x - x screen position
        y - y screen position
      • apply

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

        Applies the effect.

        Parameters:
        g - graphics
        n - node
        environment - environment
        wormhole - the wormhole used to map environment's coords to screen coords
      • getColorSummary

         abstract Color getColorSummary()
        Returns:

        a color which resembles the color of this effect