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 int
DEFAULT_WINDOW_SIZE
-
Constructor Summary
Constructors Constructor Description ChartSeriesMeasure(String name)
Default constructor. -
Method Summary
Modifier and Type Method Description org.jfree.chart.JFreeChart
createChart(ChartMeasure.PlotParameters params)
Create a new chart of this measure according to a set of parameters.ChartMeasure.PlotParameters
getDefaultPlotParameters()
Create a default set of parameters to plot this measure.org.jfree.data.xy.XYSeries
getXYSeries()
Create aXYSeries
object that can be used to create plot.void
plot(ChartMeasure.PlotParameters params)
Plot this measure using a set of parameters.void
setWindowSize(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 aXYSeries
object that can be used to create plot.- Returns:
- a XYSeries
-
setWindowSize
public void setWindowSize(int size) -
plot
Description copied from class:ChartMeasure
Plot this measure using a set of parameters.- Specified by:
plot
in classChartMeasure
- Parameters:
params
- parameters that should be used to plot the measure- Throws:
ChartMeasure.PlotException
- error during plot
-
getDefaultPlotParameters
Description copied from class:ChartMeasure
Create a default set of parameters to plot this measure.- Specified by:
getDefaultPlotParameters
in 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:ChartMeasure
Create a new chart of this measure according to a set of parameters.- Specified by:
createChart
in classChartMeasure
- Parameters:
params
- the set of parameters used to create the chart- Returns:
- a new chart
- Throws:
ChartMeasure.PlotException
- error during plot
-