Class GraphFactory

java.lang.Object
com.ardor3d.util.stat.graph.GraphFactory

public abstract class GraphFactory extends Object
Factory class useful for setting up various types of graphs.
  • Constructor Details

    • GraphFactory

      public GraphFactory()
  • Method Details

    • makeLineGraph

      public static LineGrapher makeLineGraph(int width, int height, Quad quad, Renderer renderer, ContextCapabilities caps)
      Makes a new line grapher and sets up a quad to display it.
      Parameters:
      width - the width in pixels of the graph
      height - the height in pixels of the graph
      quad - the quad on whose surface we'll display our graph.
      renderer - the renderer
      caps - the context capabilities
      Returns:
      the new LineGrapher
    • makeTimedGraph

      public static TimedAreaGrapher makeTimedGraph(int width, int height, Quad quad, Renderer renderer, ContextCapabilities caps)
      Makes a new area grapher and sets up a quad to display it.
      Parameters:
      width - the width in pixels of the graph
      height - the height in pixels of the graph
      quad - the quad on whose surface we'll display our graph.
      renderer - the renderer
      caps - the context capabilities
      Returns:
      the new TimedAreaGrapher
    • makeTabledLabelGraph

      public static TabledLabelGrapher makeTabledLabelGraph(int width, int height, Quad quad, Renderer renderer, ContextCapabilities caps)
      Makes a new label grapher and sets up a quad to display it.
      Parameters:
      width - the width in pixels of the graph
      height - the height in pixels of the graph
      quad - the quad on whose surface we'll display our graph.
      renderer - the renderer
      caps - the context capabilities
      Returns:
      the new TabledLabelGrapher