Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

VariableBinSource Class Reference

List of all members.

Detailed Description

Container for a set of plot data sources to handle variable bin histograms.

Author:
S Butterworth
Version:
Date
2006-03-13 22:38:39 +0000 (Mon, 13 Mar 2006)
$Version$

Definition at line 18 of file VariableBinSource.java.


Public Member Functions

 VariableBinSource (DataPlot plot, double scalef) throws JetWebException
Enumeration< PlotDataSourcegetSources ()

Private Attributes

Vector< PlotDataSourceplotDataSources = new Vector<PlotDataSource>()

Constructor & Destructor Documentation

VariableBinSource DataPlot  plot,
double  scalef
throws JetWebException
 

Variable Bin Source constructor creates a new plotDataSource for each point in the input dataplot.

Parameters:
plot - datapoints are retrieved from this plot
scalef - plot data sources are scaled by this factor

Definition at line 28 of file VariableBinSource.java.

References DataPoint.getXMax(), DataPoint.getXMin(), DataPoint.getY(), DataPoint.getYDown(), DataPoint.getYUp(), PlotDataSource.setBins(), PlotDataSource.setMax(), PlotDataSource.setMin(), PlotDataSource.setStyleDefault(), and PlotDataSource.setTheData().

00028                                                                                   {
00029     Enumeration<DataPoint> list = plot.getDataPoints().elements();
00030     while (list.hasMoreElements()){
00031         DataPoint point = (DataPoint)list.nextElement();
00032         PlotDataSource source = new PlotDataSource(plot,scalef);
00033             double[][] theData = new double[4][1];
00034         theData[0][0] = point.getY()*scalef;
00035         theData[1][0] = point.getYUp()*scalef;
00036         theData[2][0] = point.getYDown()*scalef;
00037         source.setTheData(theData);
00038         source.setBins(1);
00039         source.setMin(point.getXMin());
00040         source.setMax(point.getXMax());
00041         source.setStyleDefault();
00042 
00043         plotDataSources.add(source);
00044     }
00045 
00046     }


Member Function Documentation

Enumeration<PlotDataSource> getSources  ) 
 

Retrieves the list of plotDataSources making up the Variable Bin Source

Returns:
Enumeration of PlotDataSource objects

Definition at line 52 of file VariableBinSource.java.

00052                                                     { 
00053     if (!plotDataSources.isEmpty())
00054         return plotDataSources.elements();
00055     return null;
00056     }


Member Data Documentation

Vector<PlotDataSource> plotDataSources = new Vector<PlotDataSource>() [private]
 

Definition at line 20 of file VariableBinSource.java.


The documentation for this class was generated from the following file:

Generated Wed Jan 17 09:14:27 GMT 2007