org.keridwen.modelling.group.editor.ui
Class SerieGraphicViewer

java.lang.Object
  extended by org.keridwen.modelling.group.editor.ui.SerieGraphicViewer

public class SerieGraphicViewer
extends Object

This class allows to display a given SeriesOfDoubleCharacteristic as a 2D y=f(x) type plot using the JFreeChart library.

Author:
Julien Forest, Artenum SARL.

Constructor Summary
SerieGraphicViewer()
          Default constructor.
 
Method Summary
 org.jfree.chart.ChartPanel getPlotPanel()
          Get the panel containing the plot.
 void initPlot()
          Initialise the plot.
static void main(String[] args)
          For test purpose only
 void setSerie(com.artenum.frida.characteristic.SeriesOfDoubleCharacteristic serie)
          Set the series to be plotted.
 void showInFrame()
          Show the plot in a frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerieGraphicViewer

public SerieGraphicViewer()
Default constructor.

Method Detail

setSerie

public void setSerie(com.artenum.frida.characteristic.SeriesOfDoubleCharacteristic serie)
Set the series to be plotted.

Parameters:
serie - - SeriesOfDoubleCharacteristic to be plotted.

initPlot

public void initPlot()
Initialise the plot.


getPlotPanel

public org.jfree.chart.ChartPanel getPlotPanel()
Get the panel containing the plot.

Returns:
panel of the plot.

showInFrame

public void showInFrame()
Show the plot in a frame.


main

public static void main(String[] args)
For test purpose only

Parameters:
args -


Copyright © 2012-2013 Artenum. All Rights Reserved.