edu.ucla.stat.SOCR.chart.j3d.gui
Class TestBinned2DData

java.lang.Object
  extended by edu.ucla.stat.SOCR.chart.j3d.gui.TestBinned2DData
All Implemented Interfaces:
org.freehep.j3d.plot.Binned2DData

public class TestBinned2DData
extends java.lang.Object
implements org.freehep.j3d.plot.Binned2DData

A trivial implementation of Binned2DData for test purposes

Version:
$Id: TestBinned2DData.java,v 1.1 2010/05/10 17:51:06 jiecui Exp $
Author:
Joy Kyriakopulos (joyk@fnal.gov)

Constructor Summary
TestBinned2DData()
           
TestBinned2DData(java.lang.String fileName)
           
 
Method Summary
 javax.vecmath.Color3b colorAt(int xIndex, int yIndex)
          Get the Color at the specified bin
 void loadData(java.lang.String fileName)
           
 void setData(javax.swing.JTable dataTable)
           
 int xBins()
          Number of bins on the X axis
 float xMax()
          Axis maximum on the X Axis
 float xMin()
          Axis minimum on the X Axis
 int yBins()
          Number of bins on the Y axis
 float yMax()
          Axis maximum on the Y Axis
 float yMin()
          Axis minimum on the Y Axis
 float zAt(int xIndex, int yIndex)
          Get Z value at the specified bin
 float zMax()
          Maximum data value on the Z Axis
 float zMin()
          Minimum data value on the Z Axis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestBinned2DData

public TestBinned2DData()
                 throws java.io.IOException
Throws:
java.io.IOException

TestBinned2DData

public TestBinned2DData(java.lang.String fileName)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

loadData

public void loadData(java.lang.String fileName)
              throws java.io.IOException
Throws:
java.io.IOException

xBins

public int xBins()
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Number of bins on the X axis

Specified by:
xBins in interface org.freehep.j3d.plot.Binned2DData

yBins

public int yBins()
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Number of bins on the Y axis

Specified by:
yBins in interface org.freehep.j3d.plot.Binned2DData

xMin

public float xMin()
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Axis minimum on the X Axis

Specified by:
xMin in interface org.freehep.j3d.plot.Binned2DData

xMax

public float xMax()
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Axis maximum on the X Axis

Specified by:
xMax in interface org.freehep.j3d.plot.Binned2DData

yMin

public float yMin()
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Axis minimum on the Y Axis

Specified by:
yMin in interface org.freehep.j3d.plot.Binned2DData

yMax

public float yMax()
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Axis maximum on the Y Axis

Specified by:
yMax in interface org.freehep.j3d.plot.Binned2DData

zMin

public float zMin()
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Minimum data value on the Z Axis

Specified by:
zMin in interface org.freehep.j3d.plot.Binned2DData

zMax

public float zMax()
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Maximum data value on the Z Axis

Specified by:
zMax in interface org.freehep.j3d.plot.Binned2DData

zAt

public float zAt(int xIndex,
                 int yIndex)
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Get Z value at the specified bin

Specified by:
zAt in interface org.freehep.j3d.plot.Binned2DData

colorAt

public javax.vecmath.Color3b colorAt(int xIndex,
                                     int yIndex)
Description copied from interface: org.freehep.j3d.plot.Binned2DData
Get the Color at the specified bin

Specified by:
colorAt in interface org.freehep.j3d.plot.Binned2DData

setData

public void setData(javax.swing.JTable dataTable)