public abstract class ChartMeasure extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ChartMeasure.PlotException
Exception that can be raised when trying to plot measures.
|
static class |
ChartMeasure.PlotOutputType
Defines the support used for rendering : on screen or in a file.
|
static class |
ChartMeasure.PlotParameters
Parameters defining how to plot measures.
|
static class |
ChartMeasure.PlotType
Type of plot.s
|
Modifier and Type | Field and Description |
---|---|
protected String |
name
Name of this measure.
|
Modifier | Constructor and Description |
---|---|
protected |
ChartMeasure(String name)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract org.jfree.chart.JFreeChart |
createChart(ChartMeasure.PlotParameters params)
Create a new chart of this measure according to a set of parameters.
|
abstract ChartMeasure.PlotParameters |
getDefaultPlotParameters()
Create a default set of parameters to plot this measure.
|
static void |
outputPlot(ChartMeasure.PlotParameters params,
ChartMeasure... measures)
Utility function to call
outputPlot(PlotParameters, JFreeChart...) with
ChartMeasure objects. |
static void |
outputPlot(ChartMeasure.PlotParameters params,
org.jfree.chart.JFreeChart... charts)
Output some charts according to a set of parameters.
|
void |
plot()
Create a new plot with default plot parameters.
|
abstract void |
plot(ChartMeasure.PlotParameters params)
Plot this measure using a set of parameters.
|
protected ChartMeasure(String name)
name
- name of the new measurepublic void plot() throws ChartMeasure.PlotException
ChartMeasure.PlotException
getDefaultPlotParameters()
public abstract ChartMeasure.PlotParameters getDefaultPlotParameters()
public abstract void plot(ChartMeasure.PlotParameters params) throws ChartMeasure.PlotException
params
- parameters that should be used to plot the measureChartMeasure.PlotException
public abstract org.jfree.chart.JFreeChart createChart(ChartMeasure.PlotParameters params) throws ChartMeasure.PlotException
params
- the set of parameters used to create the chartChartMeasure.PlotException
public static void outputPlot(ChartMeasure.PlotParameters params, ChartMeasure... measures) throws ChartMeasure.PlotException
outputPlot(PlotParameters, JFreeChart...)
with
ChartMeasure
objects.params
- set of parameters used to output the plotmeasures
- measures to plotChartMeasure.PlotException
outputPlot(PlotParameters, JFreeChart...)
public static void outputPlot(ChartMeasure.PlotParameters params, org.jfree.chart.JFreeChart... charts) throws ChartMeasure.PlotException
ChartMeasure.PlotParameters.outputType
, plot
is displayed on screen or saved in a file.params
- parameters used to plotcharts
- charts to outputChartMeasure.PlotException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses