gov.sns.tools.chart
Class Strip3dDataSource

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
All Implemented Interfaces:
com.klg.jclass.chart3d.event.Chart3dDataManager, com.klg.jclass.chart3d.Chart3dDataModel, com.klg.jclass.chart3d.Chart3dGridDataModel, java.lang.Cloneable, com.klg.jclass.chart3d.HoleValueChart3dDataModel, com.klg.jclass.chart3d.LabelledChart3dDataModel, com.klg.jclass.chart3d.LabelledChart3dGridDataModel, java.io.Serializable
Direct Known Subclasses:
Table3DPlotSource

public class Strip3dDataSource
extends com.klg.jclass.chart3d.data.Base3dGridDataSource

Class that is used to model continuous 3d Grid data.

See Also:
Serialized Form

Field Summary
protected  int shiftBack
          the back index of a zData shift
protected  int shiftFront
          the font index of a zData shift
protected  int shiftRate
          rate at which zData is shifted
protected  int startIndex
          the index for new zData
 
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
Strip3dDataSource(java.lang.String name, double[] xGrid, double[] yGrid, double[][] zDataBuffer)
          Constructor for creating a Strip3dDataSource with a predefined xGrid, yGrid, and a zData buffer.
 
Method Summary
 void appendZData(double[] zData, java.lang.String yAxisLabel)
          Appends a new zData set to the model with a Y-axis label.
 int getShiftRate()
          return the shiftRate
 void setShiftRate(int shiftRate)
          Set the rate at which the model is shifted to allow for new data sets.
protected  void shiftLabels(java.lang.String[] labels)
          Shift the labels the distance of the shiftFront.
protected  void shiftZDataSet()
          Shift the model data the distance of the shiftFront.
 
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
 

Field Detail

startIndex

protected int startIndex
the index for new zData


shiftRate

protected int shiftRate
rate at which zData is shifted


shiftFront

protected int shiftFront
the font index of a zData shift


shiftBack

protected int shiftBack
the back index of a zData shift

Constructor Detail

Strip3dDataSource

public Strip3dDataSource(java.lang.String name,
                         double[] xGrid,
                         double[] yGrid,
                         double[][] zDataBuffer)
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
Method Detail

setShiftRate

public void setShiftRate(int shiftRate)
Set the rate at which the model is shifted to allow for new data sets.

Parameters:
shiftRate - number of points the model will shift for new points

getShiftRate

public int getShiftRate()
return the shiftRate


appendZData

public void appendZData(double[] zData,
                        java.lang.String yAxisLabel)
Appends a new zData set to the model with a Y-axis label.

Parameters:
zData -
yAxisLabel - y axis label for the zData

shiftLabels

protected void shiftLabels(java.lang.String[] labels)
Shift the labels the distance of the shiftFront.

Parameters:
labels - the y-axis labels

shiftZDataSet

protected void shiftZDataSet()
Shift the model data the distance of the shiftFront.