Class LineGrapher

java.lang.Object
com.ardor3d.util.stat.graph.AbstractStatGrapher
com.ardor3d.util.stat.graph.LineGrapher
All Implemented Interfaces:
TableLinkable, StatListener

public class LineGrapher extends AbstractStatGrapher implements TableLinkable
  • Field Details

    • Vertical

      public static final StatType Vertical
    • Horizontal

      public static final StatType Horizontal
    • _graphRoot

      protected Node _graphRoot
    • _horizontals

      protected Line _horizontals
    • _verticals

      protected Line _verticals
    • _eventCount

      protected int _eventCount
    • _threshold

      protected int _threshold
    • _startMarker

      protected float _startMarker
  • Constructor Details

  • Method Details

    • statsUpdated

      public void statsUpdated()
      Specified by:
      statsUpdated in interface StatListener
    • getThreshold

      public int getThreshold()
    • setThreshold

      public void setThreshold(int threshold)
    • updateLineKey

      public Line updateLineKey(StatType type, Line lineKey)
      Description copied from interface: TableLinkable
      Update/Create a line to reflect the color, stipple, antialias and width used in the other graph.
      Specified by:
      updateLineKey in interface TableLinkable
      Parameters:
      type - the StatType the Line is associated with.
      lineKey - the Line we want to update values on (if null, a new Line should be created.)
      Returns:
      the updated (or created) Line
    • reset

      public void reset()
      Description copied from class: AbstractStatGrapher
      Called when the graph needs to be reset back to the original display state. (iow, remove all points, lines, etc.)
      Specified by:
      reset in class AbstractStatGrapher