edu.ull.cgunay.plots
Class MultiDataPlot

java.lang.Object
  |
  +--edu.ull.cgunay.plots.Plot
        |
        +--edu.ull.cgunay.plots.SuperposedDataPlot
              |
              +--edu.ull.cgunay.plots.MultiDataPlot
All Implemented Interfaces:
HasAxisLabels, Serializable

public class MultiDataPlot
extends SuperposedDataPlot

A plot that can contain multiple axes, each containing multiple datasets. See SuperposedDataPlot for an example of a plot with a single axis plot with multiple data.

An object can be created by either providing Grapher-independent AxisTemplates or -dependent Axis's.

Created: Tue May 6 18:17:51 2003

Modified: $Date$

Version:
$Revision$ for this file.
Author:
Cengiz Gunay
See Also:
Grapher.Axis, AxisTemplate, Serialized Form

Nested Class Summary
 
Nested classes inherited from class edu.ull.cgunay.plots.SuperposedDataPlot
SuperposedDataPlot.AxisFactory
 
Field Summary
(package private)  List axes
          List of Grapher.Axis's.
(package private)  AxisTemplate[] axisTemplates
          Describe variable axes here.
 
Fields inherited from class edu.ull.cgunay.plots.SuperposedDataPlot
datas
 
Fields inherited from class edu.ull.cgunay.plots.Plot
fontSize, grapher, label, range, title, xLabel, yLabel
 
Constructor Summary
MultiDataPlot(AxisTemplate[] axisTemplates)
          Creates a new MultiDataPlot instance from AxisTemplates.
MultiDataPlot(AxisTemplate[] axisTemplates, Range range)
          Creates a new MultiDataPlot instance from AxisTemplates.
MultiDataPlot(List axes)
          Creates a new MultiDataPlot instance from a List of Grapher.Axis.
 
Method Summary
 String recipe(Grapher grapher)
          Renders given AxisTemplates to create Grapher.Axis's with the given Grapher.
 
Methods inherited from class edu.ull.cgunay.plots.Plot
add, assign, def_func, div, exp, func, geq, getFontSize, getGrapher, getLabel, getMaxRange, getMaxRange, getRange, getTitle, getXLabel, getYLabel, mul, neg, plot, profile, range, setFontSize, setGrapher, setLabel, setRange, setTitle, setXLabel, setYLabel, sub, toString, variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

axisTemplates

AxisTemplate[] axisTemplates
Describe variable axes here.


axes

List axes
List of Grapher.Axis's.

Constructor Detail

MultiDataPlot

public MultiDataPlot(AxisTemplate[] axisTemplates)
Creates a new MultiDataPlot instance from AxisTemplates. The plot object does not contain any properties, each axis should have its own set of properties.

By default arranges all plots vertically and aligns ranges according to the maximal range.

Parameters:
axisTemplates - an AxisTemplate[] value
See Also:
HasAxisLabels

MultiDataPlot

public MultiDataPlot(AxisTemplate[] axisTemplates,
                     Range range)
Creates a new MultiDataPlot instance from AxisTemplates. Adjusts all vertically aligned axisTemplates to conform to the same range.

Parameters:
axisTemplates - an AxisTemplate[] value
range - a Range value to impose on child axes.

MultiDataPlot

public MultiDataPlot(List axes)
Creates a new MultiDataPlot instance from a List of Grapher.Axis.

Parameters:
axes - a List value
Method Detail

recipe

public String recipe(Grapher grapher)
Renders given AxisTemplates to create Grapher.Axis's with the given Grapher. Adjusts all axes to a given or maximal range and creates a Grapher.MultiAxes object.

Overrides:
recipe in class SuperposedDataPlot
Parameters:
grapher - a Grapher value
Returns:
a String value