Definition at line 18 of file VariableBinSource.java.
Public Member Functions | |
VariableBinSource (DataPlot plot, double scalef) throws JetWebException | |
Enumeration< PlotDataSource > | getSources () |
Private Attributes | |
Vector< PlotDataSource > | plotDataSources = new Vector<PlotDataSource>() |
|
Variable Bin Source constructor creates a new plotDataSource for each point in the input dataplot.
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 }
|
|
Retrieves the list of plotDataSources making up the Variable Bin Source
Definition at line 52 of file VariableBinSource.java. 00052 { 00053 if (!plotDataSources.isEmpty()) 00054 return plotDataSources.elements(); 00055 return null; 00056 }
|
|
Definition at line 20 of file VariableBinSource.java. |
Generated Wed Jan 17 09:14:27 GMT 2007