Class JQuickPlot

java.lang.Object
  extended byApplicationFrame
      extended byJQuickPlot
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class JQuickPlot
extends ApplicationFrame
implements java.awt.event.ActionListener

A demonstration application showing a time series chart where you can dynamically add (random) data by clicking on a button.

See Also:
Serialized Form

Field Summary
private  boolean _ConfMenuIsOpened
          Indicate if the Configuration Menu is visible
private  java.lang.String[] _datasetFile
           
private  XYSeriesCollection[] _datasets
           
private  javax.swing.JFrame _frameConfiguration
          Configuration Menu Window
private  java.lang.String[] _labelX
           
private  java.lang.String[] _labelY
           
private  int _nbPlots
           
private  int _nbSubplots
          The number of subplots.
private  CombinedDomainXYPlot[] _plotList
           
private  XYPlot[][] _subplotList
           
static int ConstClusteredXYBarRenderer
           
static int ConstCyclicXYItemRenderer
           
static int ConstDefaultXYItemRenderer
           
static int ConstDeviationRenderer
           
static int ConstStandardXYItemRenderer
           
static int ConstVectorRenderer
           
static int ConstXYAreaRenderer
           
static int ConstXYAreaRenderer2
           
static int ConstXYDifferenceRenderer
           
static int ConstXYDotRenderer
           
static int ConstXYErrorRenderer
           
static int ConstXYLine3DRenderer
           
static int ConstXYSplineRenderer
           
static int ConstXYStepAreaRenderer
           
static int ConstXYStepRenderer
           
static int ConstYIntervalRenderer
           
private  ColumnList[] datasetColumnListX
           
private  ColumnList[] datasetColumnListY
           
 
Constructor Summary
JQuickPlot(int nbSubplots, java.lang.String title)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handles a click on the button by adding new (random) data.
private  CombinedDomainXYPlot createPlot(int subPlotType)
           
private  void initConfMenu(int nbPlots)
           
static void main(java.lang.String[] args)
          Starting point for JQuickPlot.
private  void showConfMenu(int nbPlots)
           
static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_nbSubplots

private int _nbSubplots
The number of subplots.


_nbPlots

private int _nbPlots

_datasets

private XYSeriesCollection[] _datasets

datasetColumnListX

private ColumnList[] datasetColumnListX

datasetColumnListY

private ColumnList[] datasetColumnListY

_datasetFile

private java.lang.String[] _datasetFile

_labelX

private java.lang.String[] _labelX

_labelY

private java.lang.String[] _labelY

_plotList

private CombinedDomainXYPlot[] _plotList

_subplotList

private XYPlot[][] _subplotList

ConstStandardXYItemRenderer

public static final int ConstStandardXYItemRenderer
See Also:
Constant Field Values

ConstDefaultXYItemRenderer

public static final int ConstDefaultXYItemRenderer
See Also:
Constant Field Values

ConstXYLine3DRenderer

public static final int ConstXYLine3DRenderer
See Also:
Constant Field Values

ConstXYSplineRenderer

public static final int ConstXYSplineRenderer
See Also:
Constant Field Values

ConstYIntervalRenderer

public static final int ConstYIntervalRenderer
See Also:
Constant Field Values

ConstXYDifferenceRenderer

public static final int ConstXYDifferenceRenderer
See Also:
Constant Field Values

ConstXYDotRenderer

public static final int ConstXYDotRenderer
See Also:
Constant Field Values

ConstXYErrorRenderer

public static final int ConstXYErrorRenderer
See Also:
Constant Field Values

ConstVectorRenderer

public static final int ConstVectorRenderer
See Also:
Constant Field Values

ConstDeviationRenderer

public static final int ConstDeviationRenderer
See Also:
Constant Field Values

ConstCyclicXYItemRenderer

public static final int ConstCyclicXYItemRenderer
See Also:
Constant Field Values

ConstClusteredXYBarRenderer

public static final int ConstClusteredXYBarRenderer
See Also:
Constant Field Values

ConstXYAreaRenderer

public static final int ConstXYAreaRenderer
See Also:
Constant Field Values

ConstXYAreaRenderer2

public static final int ConstXYAreaRenderer2
See Also:
Constant Field Values

ConstXYStepRenderer

public static final int ConstXYStepRenderer
See Also:
Constant Field Values

ConstXYStepAreaRenderer

public static final int ConstXYStepAreaRenderer
See Also:
Constant Field Values

_ConfMenuIsOpened

private boolean _ConfMenuIsOpened
Indicate if the Configuration Menu is visible


_frameConfiguration

private final javax.swing.JFrame _frameConfiguration
Configuration Menu Window

Constructor Detail

JQuickPlot

public JQuickPlot(int nbSubplots,
                  java.lang.String title)
Method Detail

usage

public static void usage()

initConfMenu

private void initConfMenu(int nbPlots)

showConfMenu

private void showConfMenu(int nbPlots)

createPlot

private CombinedDomainXYPlot createPlot(int subPlotType)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Handles a click on the button by adding new (random) data.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - the action event.

main

public static void main(java.lang.String[] args)
Starting point for JQuickPlot.

Parameters:
args -
args[0] - NbGraphs (integer) : Graphs number (One Graph may contains several plots)
args[1] - Title (String)) : Main title