Class ChartSeriesMeasure
java.lang.Object
org.graphstream.algorithm.measure.ChartMeasure
org.graphstream.algorithm.measure.ChartSeriesMeasure
- Direct Known Subclasses:
ChartSeries1DMeasure,ChartSeries2DMeasure
public abstract class ChartSeriesMeasure extends ChartMeasure
Base for series measure.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graphstream.algorithm.measure.ChartMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType -
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_WINDOW_SIZE -
Constructor Summary
Constructors Constructor Description ChartSeriesMeasure(String name)Default constructor. -
Method Summary
Modifier and Type Method Description org.jfree.chart.JFreeChartcreateChart(ChartMeasure.PlotParameters params)Create a new chart of this measure according to a set of parameters.ChartMeasure.PlotParametersgetDefaultPlotParameters()Create a default set of parameters to plot this measure.org.jfree.data.xy.XYSeriesgetXYSeries()Create aXYSeriesobject that can be used to create plot.voidplot(ChartMeasure.PlotParameters params)Plot this measure using a set of parameters.voidsetWindowSize(int size)Methods inherited from class org.graphstream.algorithm.measure.ChartMeasure
outputPlot, outputPlot, plot
-
Field Details
-
DEFAULT_WINDOW_SIZE
public static final int DEFAULT_WINDOW_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
ChartSeriesMeasure
Default constructor.- Parameters:
name- name of this measure
-
-
Method Details
-
getXYSeries
public org.jfree.data.xy.XYSeries getXYSeries()Create aXYSeriesobject that can be used to create plot.- Returns:
- a XYSeries
-
setWindowSize
public void setWindowSize(int size) -
plot
Description copied from class:ChartMeasurePlot this measure using a set of parameters.- Specified by:
plotin classChartMeasure- Parameters:
params- parameters that should be used to plot the measure- Throws:
ChartMeasure.PlotException- error during plot
-
getDefaultPlotParameters
Description copied from class:ChartMeasureCreate a default set of parameters to plot this measure.- Specified by:
getDefaultPlotParametersin classChartMeasure- Returns:
- a default PlotParameters adapted to this measure.
-
createChart
public org.jfree.chart.JFreeChart createChart(ChartMeasure.PlotParameters params) throws ChartMeasure.PlotExceptionDescription copied from class:ChartMeasureCreate a new chart of this measure according to a set of parameters.- Specified by:
createChartin classChartMeasure- Parameters:
params- the set of parameters used to create the chart- Returns:
- a new chart
- Throws:
ChartMeasure.PlotException- error during plot
-