Class AbstractPlot
java.lang.Object
com.hello2morrow.sonargraph.integration.jenkins.model.AbstractPlot
- Direct Known Subclasses:
TimeSeriesPlot,XYLineAndShapePlot
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidapplyRendering(org.jfree.chart.plot.XYPlot plot) protected voidcheckMinMaxYValue(double value) protected abstract org.jfree.chart.JFreeChartcreateChartInternal(String chartTitle, String categoryName, String yAxisName, org.jfree.data.xy.XYDataset dataset) final org.jfree.chart.JFreeChartcreateXYChart(MetricId metric, String categoryName, int maximumNumberOfDataPoints, boolean hideLegend) Creates a chart for a Sonargraph metricprotected org.jfree.data.xy.XYDatasetcreateXYDataset(MetricId metric, int maximumNumberOfDataPoints) Creates a XYDataset from a CSV file.protected intprotected doubleprotected doublelongprotected voidsetDataSetSize(int itemCount) protected voidsetMaximumValue(double maximumValue) protected voidsetMinimumValue(double minimumValue) protected voidsetRangeAxis(boolean hideDecimals, org.jfree.chart.plot.XYPlot plot) Configure the Y-axis: Adjust the range and specify tick units.protected voidsetTimestampOfLastDisplayedPoint(long timestamp)
-
Field Details
-
DATA_COLOR
-
m_datasetProvider
-
-
Constructor Details
-
AbstractPlot
-
-
Method Details
-
createXYChart
public final org.jfree.chart.JFreeChart createXYChart(MetricId metric, String categoryName, int maximumNumberOfDataPoints, boolean hideLegend) Creates a chart for a Sonargraph metric- Parameters:
categoryName- Name for the X-Axis, representing a category- Returns:
- Chart built with the given parameters.
-
createXYDataset
protected org.jfree.data.xy.XYDataset createXYDataset(MetricId metric, int maximumNumberOfDataPoints) throws IOException Creates a XYDataset from a CSV file.- Throws:
IOException
-
createChartInternal
-
applyRendering
protected abstract void applyRendering(org.jfree.chart.plot.XYPlot plot) -
setDataSetSize
protected void setDataSetSize(int itemCount) -
checkMinMaxYValue
protected void checkMinMaxYValue(double value) -
getMinimumValue
protected double getMinimumValue() -
getMaximumValue
protected double getMaximumValue() -
setMinimumValue
protected void setMinimumValue(double minimumValue) -
setMaximumValue
protected void setMaximumValue(double maximumValue) -
getTimestampOfLastDisplayedPoint
public long getTimestampOfLastDisplayedPoint() -
setTimestampOfLastDisplayedPoint
protected void setTimestampOfLastDisplayedPoint(long timestamp) -
setRangeAxis
protected void setRangeAxis(boolean hideDecimals, org.jfree.chart.plot.XYPlot plot) Configure the Y-axis: Adjust the range and specify tick units. -
getDatasetSize
protected int getDatasetSize()
-