Package hudson.plugins.robot.graph
Class RobotGraph
- java.lang.Object
-
- hudson.util.Graph
-
- hudson.plugins.robot.graph.RobotGraph
-
public class RobotGraph extends Graph
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_CHART_HEIGHT
static int
DEFAULT_CHART_WIDTH
static int
DEFAULT_FONT_SIZE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jfree.chart.JFreeChart
createGraph()
Creates a Robot trend graphorg.jfree.data.category.CategoryDataset
getDataset()
static RobotGraph
getRobotGraph(Run<?,?> owner, org.jfree.data.category.CategoryDataset categoryDataset, String yLabel, String xLabel, double scale, boolean preview, boolean binaryData, double lowerBound, double upperBound, Color... colors)
Construct a new styled trend graph for given dataset-
Methods inherited from class hudson.util.Graph
doMap, doPng, safeDimension
-
-
-
-
Field Detail
-
DEFAULT_CHART_WIDTH
public static final int DEFAULT_CHART_WIDTH
- See Also:
- Constant Field Values
-
DEFAULT_CHART_HEIGHT
public static final int DEFAULT_CHART_HEIGHT
- See Also:
- Constant Field Values
-
DEFAULT_FONT_SIZE
public static final int DEFAULT_FONT_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRobotGraph
public static RobotGraph getRobotGraph(Run<?,?> owner, org.jfree.data.category.CategoryDataset categoryDataset, String yLabel, String xLabel, double scale, boolean preview, boolean binaryData, double lowerBound, double upperBound, Color... colors)
Construct a new styled trend graph for given dataset- Parameters:
owner
- Build which the graph is associated tocategoryDataset
- Category data for graphyLabel
- Y label namexLabel
- X label namescale
- the size 1 is graph of default size. This is multiplied by scale.binaryData
- binary datacolors
- Used colorslowerBound
- Lower bound for the graphupperBound
- Upper bound for the graphpreview
- True if preview is enabled- Returns:
- Graph
-
getDataset
public org.jfree.data.category.CategoryDataset getDataset()
-
createGraph
protected org.jfree.chart.JFreeChart createGraph()
Creates a Robot trend graph- Specified by:
createGraph
in classGraph
- Returns:
- the JFreeChart graph object
-
-