|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.modelling.group.editor.utils.Plot2D
public class Plot2D
Generate 2D, i.e y=f(x) like, plots.
Constructor Summary | |
---|---|
Plot2D(double[] x,
double[] y,
String title,
String labelTitle,
String legend)
Main constructor. |
|
Plot2D(com.artenum.frida.characteristic.SeriesOfDoubleCharacteristic series,
String title,
String labelTitle,
String legend)
|
Method Summary | |
---|---|
void |
appendSeriesToCollection(com.artenum.frida.characteristic.SeriesOfDoubleCharacteristic series)
|
void |
appendSeriesToCollection(String legend,
double[] x,
double[] y)
|
org.jfree.chart.JFreeChart |
createChart(org.jfree.data.xy.XYDataset dataSet,
String visuTitle,
String xLabel,
String yLabel)
Generate the chart. |
org.jfree.chart.JFreeChart |
createChart(org.jfree.data.xy.XYSeriesCollection dataSet,
String visuTitle)
Generate the chart. |
Double |
getAutoXTickSize(int nbSticks)
|
Double |
getAutoYTickSize(int nbSticks)
|
org.jfree.chart.ChartPanel |
getChart()
Return the final panel containing the chart. |
void |
plotChanged(org.jfree.chart.event.PlotChangeEvent event)
|
void |
setXAxislabel(String xAxisLabel)
Set the label of the x-axis. |
void |
setYAxislabel(String yAxisLabel)
Set the label of the y-axis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Plot2D(double[] x, double[] y, String title, String labelTitle, String legend)
x
- x-axis data valuesy
- y-axis data valuestitle
- Title of the plotlabelTitle
- legend
- - legend of the plotted valuespublic Plot2D(com.artenum.frida.characteristic.SeriesOfDoubleCharacteristic series, String title, String labelTitle, String legend)
series
- title
- labelTitle
- legend
- Method Detail |
---|
public org.jfree.chart.ChartPanel getChart()
public void appendSeriesToCollection(com.artenum.frida.characteristic.SeriesOfDoubleCharacteristic series)
seriesCollection
- series
- public void appendSeriesToCollection(String legend, double[] x, double[] y)
seriesCollection
- legend
- x
- y
- public void setXAxislabel(String xAxisLabel)
xAxisLabel
- - label to be set.public void setYAxislabel(String yAxisLabel)
yAxisLabel
- - label to be set.public Double getAutoYTickSize(int nbSticks)
public Double getAutoXTickSize(int nbSticks)
public org.jfree.chart.JFreeChart createChart(org.jfree.data.xy.XYSeriesCollection dataSet, String visuTitle)
dataSet
- visuTitle
-
public org.jfree.chart.JFreeChart createChart(org.jfree.data.xy.XYDataset dataSet, String visuTitle, String xLabel, String yLabel)
dataSet
- visuTitle
- xLabel
- yLabel
-
public void plotChanged(org.jfree.chart.event.PlotChangeEvent event)
plotChanged
in interface org.jfree.chart.event.PlotChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |