Package hudson.plugins.robot.graph
Class RobotGraph
java.lang.Object
hudson.util.Graph
hudson.plugins.robot.graph.RobotGraph
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jfree.chart.JFreeChartCreates a Robot trend graphorg.jfree.data.category.CategoryDatasetstatic RobotGraphgetRobotGraph(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
-
Field Details
-
DEFAULT_CHART_WIDTH
public static final int DEFAULT_CHART_WIDTH- See Also:
-
DEFAULT_CHART_HEIGHT
public static final int DEFAULT_CHART_HEIGHT- See Also:
-
DEFAULT_FONT_SIZE
public static final int DEFAULT_FONT_SIZE- See Also:
-
-
Method Details
-
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:
createGraphin classGraph- Returns:
- the JFreeChart graph object
-