JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.data
Class JCDefault3dGridDataSource

java.lang.Object
  |
  +--com.klg.jclass.chart3d.event.Chart3dDataSupport
        |
        +--com.klg.jclass.chart3d.data.Base3dDataSource
              |
              +--com.klg.jclass.chart3d.data.Base3dGridDataSource
                    |
                    +--com.klg.jclass.chart3d.data.JCDefault3dGridDataSource
All Implemented Interfaces:
Chart3dDataManager, Chart3dDataModel, Chart3dGridDataModel, Cloneable, HoleValueChart3dDataModel, LabelledChart3dDataModel, LabelledChart3dGridDataModel, Serializable
Direct Known Subclasses:
JCEditable3dGridDataSource, JCXML3dDataSource, JDBC3dDataSource

public class JCDefault3dGridDataSource
extends Base3dGridDataSource

JCDefault3dGridDataSource extends Base3dGridDataSource to create a more useful default container for JClass Chart 3D data.

See Also:
Serialized Form

Field Summary
 
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
JCDefault3dGridDataSource()
          Convenience no argument constructor sets all properties initially to null.
JCDefault3dGridDataSource(String name, double[] xGrid, double[] yGrid, double[][] zValues)
          Regular constructor sets the data values and the name of this datasource.
 
Method Summary
 int getXGridSize()
          Retrieves the number of X values.
 int getYGridSize()
          Retrieves the number of Y values.
 double[] getZArray(int index)
          Retrieves the specified series as an array of doubles.
 void setZArray(int xIndex, double[] values)
          Sets the values for the specified series index.
 
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

JCDefault3dGridDataSource

public JCDefault3dGridDataSource()
Convenience no argument constructor sets all properties initially to null.


JCDefault3dGridDataSource

public JCDefault3dGridDataSource(String name,
                                 double[] xGrid,
                                 double[] yGrid,
                                 double[][] zValues)
Regular constructor sets the data values and the name of this datasource.

Parameters:
name - String name of the datasource
xGrid - array of doubles which holds the X values
yGrid - array of doubles which holds the Y values
zValues - two-dimensional array of doubles holds the Z values.
Method Detail

getZArray

public double[] getZArray(int index)
Retrieves the specified series as an array of doubles. This method will throw ArrayIndexOutOfBoundsException if the index is not valid.

Parameters:
index - int which indicates which series to return
Returns:
the specified series

setZArray

public void setZArray(int xIndex,
                      double[] values)
Sets the values for the specified series index. This method will throw ArrayIndexOutOfBoundsException if the index is not valid.

Parameters:
xIndex -
values - the new series

getXGridSize

public int getXGridSize()
Retrieves the number of X values.

Returns:
the int number of x values

getYGridSize

public int getYGridSize()
Retrieves the number of Y values.

Returns:
the int number of y values

Copyright © 2004 Quest Software Inc..
All rights reserved.