Class DrawDirectedNode

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.swingui.effect.api.Effect , java.io.Serializable

    
    public final class DrawDirectedNode
     implements Effect
                        

    This effect draws a node as a directed arrow. The direction is given by the node's velocity (that is an array of double). The color is given by the node's hue molecule (that is a numeric number).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Color getColorSummary()
      <T extends Any, P extends Position2D<P>> Unit apply(Graphics2D g, 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
      • Methods inherited from class java.lang.Object

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

      • DrawDirectedNode

        DrawDirectedNode()
    • Method Detail

      • apply

         <T extends Any, P extends Position2D<P>> Unit apply(Graphics2D g, Node<T> node, Environment<T, P> environment, Wormhole2D<P> wormhole)

        Applies the effect.