gov.sns.tools.chart
Class Table3DPlotSource

java.lang.Object
  |
  +--com.klg.jclass.chart3d.event.Chart3dDataSupport
        |
        +--com.klg.jclass.chart3d.data.Base3dDataSource
              |
              +--com.klg.jclass.chart3d.data.Base3dGridDataSource
                    |
                    +--gov.sns.tools.chart.Strip3dDataSource
                          |
                          +--gov.sns.tools.chart.Table3DPlotSource
All Implemented Interfaces:
com.klg.jclass.chart3d.event.Chart3dDataManager, com.klg.jclass.chart3d.Chart3dDataModel, com.klg.jclass.chart3d.Chart3dGridDataModel, java.lang.Cloneable, java.util.EventListener, com.klg.jclass.chart3d.HoleValueChart3dDataModel, com.klg.jclass.chart3d.LabelledChart3dDataModel, com.klg.jclass.chart3d.LabelledChart3dGridDataModel, java.io.Serializable, javax.swing.event.TableModelListener

public class Table3DPlotSource
extends Strip3dDataSource
implements javax.swing.event.TableModelListener

Class used to map updating data from a table column into a 3d grid. This is used with the WaterfallPlots.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.sns.tools.chart.Strip3dDataSource
shiftBack, shiftFront, shiftRate, startIndex
 
Fields inherited from class com.klg.jclass.chart3d.data.Base3dGridDataSource
chartDataListeners, dataSourceName, xGrid, xLabels, yGrid, yLabels, zValues
 
Fields inherited from class com.klg.jclass.chart3d.data.Base3dDataSource
holeValue
 
Fields inherited from class com.klg.jclass.chart3d.event.Chart3dDataSupport
source
 
Fields inherited from interface com.klg.jclass.chart3d.HoleValueChart3dDataModel
DEFAULT_HOLE_VALUE
 
Constructor Summary
Table3DPlotSource(java.lang.String name, double[] xGrid, double[] yGrid, double[][] zDataBuffer, javax.swing.table.TableModel tm, int col)
          Constructor for creating a Strip3dDataSource with a predefined xGrid, yGrid, and a zData buffer.
 
Method Summary
 void tableChanged(javax.swing.event.TableModelEvent e)
          Called when new data has arrived from the Table.
 
Methods inherited from class gov.sns.tools.chart.Strip3dDataSource
appendZData, getShiftRate, setShiftRate, shiftLabels, shiftZDataSet
 
Methods inherited from class com.klg.jclass.chart3d.data.Base3dGridDataSource
clone, getDataSourceName, getNumX, getNumY, getXGrid, getXLabels, getYGrid, getYLabels, getZValues, setDataSourceName, setXGrid, setXLabels, setYGrid, setYLabels, setZValues
 
Methods inherited from class com.klg.jclass.chart3d.data.Base3dDataSource
getHoleValue, setHoleValue
 
Methods inherited from class com.klg.jclass.chart3d.event.Chart3dDataSupport
addChart3dDataListener, fireChart3dDataEvent, fireChart3dDataEvent, removeChart3dDataListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table3DPlotSource

public Table3DPlotSource(java.lang.String name,
                         double[] xGrid,
                         double[] yGrid,
                         double[][] zDataBuffer,
                         javax.swing.table.TableModel tm,
                         int col)
Constructor for creating a Strip3dDataSource with a predefined xGrid, yGrid, and a zData buffer.

Parameters:
name - - name of the model
xGrid - - x axis values
yGrid - - y axis values
col - - the table column to listen to
Method Detail

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Called when new data has arrived from the Table. Right now the plot is updated whenever the table changes, even if this column did not.

Specified by:
tableChanged in interface javax.swing.event.TableModelListener