org.himinbi.dataset
Class DataSetManager

java.lang.Object
  |
  +--org.himinbi.dataset.DataSetManager

public class DataSetManager
extends java.lang.Object

This is a class responsible for managing datasets used in a program.

Author:
Will Holcomb

Field Summary
static boolean debug
           
 
Constructor Summary
DataSetManager()
           
 
Method Summary
static java.awt.geom.GeneralPath createPath(OneDimensionalDataSet xAxis, OneDimensionalDataSet yAxis)
           
static java.awt.geom.GeneralPath createPath(OneDimensionalDataSet xAxis, OneDimensionalDataSet yAxis, java.awt.Dimension graphSize)
           
 OneDimensionalDataSet getDataSet(java.lang.String dataset)
          filename#column_name
static BranchDataSet parseFile(java.io.File file)
           
static LeafDataSet transform(OneDimensionalDataSet data, double factor)
          Transforms each point in the dataset by a constant factor.
static java.awt.Shape transformPath(java.awt.geom.GeneralPath path, java.awt.geom.Rectangle2D pathDataSpace, java.awt.geom.Rectangle2D viewDataSpace, java.awt.geom.Rectangle2D viewCanvasSpace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug
Constructor Detail

DataSetManager

public DataSetManager()
Method Detail

getDataSet

public OneDimensionalDataSet getDataSet(java.lang.String dataset)
filename#column_name

parseFile

public static BranchDataSet parseFile(java.io.File file)
                               throws java.io.IOException

transform

public static LeafDataSet transform(OneDimensionalDataSet data,
                                    double factor)
Transforms each point in the dataset by a constant factor. Exe. to convert a dataset in degrees to radians dataset.transform(Math.PI / 180);

transformPath

public static java.awt.Shape transformPath(java.awt.geom.GeneralPath path,
                                           java.awt.geom.Rectangle2D pathDataSpace,
                                           java.awt.geom.Rectangle2D viewDataSpace,
                                           java.awt.geom.Rectangle2D viewCanvasSpace)

createPath

public static java.awt.geom.GeneralPath createPath(OneDimensionalDataSet xAxis,
                                                   OneDimensionalDataSet yAxis)

createPath

public static java.awt.geom.GeneralPath createPath(OneDimensionalDataSet xAxis,
                                                   OneDimensionalDataSet yAxis,
                                                   java.awt.Dimension graphSize)