Class DefaultEdgeStyleOGL2D

java.lang.Object
repast.simphony.visualizationOGL2D.DefaultEdgeStyleOGL2D
All Implemented Interfaces:
EdgeStyleOGL2D

public class DefaultEdgeStyleOGL2D extends Object implements EdgeStyleOGL2D
Default implementation of OGL 2D edge style.
Author:
Nick Collier
  • Constructor Details

    • DefaultEdgeStyleOGL2D

      public DefaultEdgeStyleOGL2D()
  • Method Details

    • getColor

      public Color getColor(RepastEdge<?> edge)
      Description copied from interface: EdgeStyleOGL2D
      Gets the color of the line used to represent the edge.
      Specified by:
      getColor in interface EdgeStyleOGL2D
      Returns:
      the color of the line used to represent the edge.
    • getLineWidth

      public int getLineWidth(RepastEdge<?> edge)
      Description copied from interface: EdgeStyleOGL2D
      Gets the width of the line used to represent the edge.
      Specified by:
      getLineWidth in interface EdgeStyleOGL2D
      Returns:
      the width of the line used to represent the edge.