Package com.ardor3d.util.stat.graph
Class GraphFactory
java.lang.Object
com.ardor3d.util.stat.graph.GraphFactory
Factory class useful for setting up various types of graphs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LineGraphermakeLineGraph(int width, int height, Quad quad, Renderer renderer, ContextCapabilities caps) Makes a new line grapher and sets up a quad to display it.static TabledLabelGraphermakeTabledLabelGraph(int width, int height, Quad quad, Renderer renderer, ContextCapabilities caps) Makes a new label grapher and sets up a quad to display it.static TimedAreaGraphermakeTimedGraph(int width, int height, Quad quad, Renderer renderer, ContextCapabilities caps) Makes a new area grapher and sets up a quad to display it.
-
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 graphheight- the height in pixels of the graphquad- the quad on whose surface we'll display our graph.renderer- the renderercaps- 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 graphheight- the height in pixels of the graphquad- the quad on whose surface we'll display our graph.renderer- the renderercaps- 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 graphheight- the height in pixels of the graphquad- the quad on whose surface we'll display our graph.renderer- the renderercaps- the context capabilities- Returns:
- the new TabledLabelGrapher
-