JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.data
Class JCDefault3dPointDataSource

java.lang.Object
  |
  +--com.klg.jclass.chart3d.event.Chart3dDataSupport
        |
        +--com.klg.jclass.chart3d.data.Base3dDataSource
              |
              +--com.klg.jclass.chart3d.data.Base3dPointDataSource
                    |
                    +--com.klg.jclass.chart3d.data.JCDefault3dPointDataSource
All Implemented Interfaces:
Chart3dDataManager, Chart3dDataModel, Chart3dPointDataModel, Cloneable, HoleValueChart3dDataModel, LabelledChart3dDataModel, LabelledChart3dPointDataModel, Serializable
Direct Known Subclasses:
JCEditable3dPointDataSource

public class JCDefault3dPointDataSource
extends Base3dPointDataSource

JCDefault3dPointDataSource extends Base3dPointDataSource 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.Base3dPointDataSource
chartDataListeners, dataSourceName, points, seriesLabels
 
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
JCDefault3dPointDataSource()
          Convenience no argument constructor sets all properties initially to null.
JCDefault3dPointDataSource(String name, Point3d[][] points)
          Regular constructor sets the data values and the name of this datasource.
 
Method Summary
 Point3d[] getSeries(int index)
          Retrieves the specified series as an array of Point3d objects.
 void setSeries(int seriesIndex, Point3d[] values)
          Sets the values for the specified series index.
 
Methods inherited from class com.klg.jclass.chart3d.data.Base3dPointDataSource
clone, getDataSourceName, getNumSeries, getPoints, getSeriesLabels, setDataSourceName, setPoints, setSeriesLabels
 
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

JCDefault3dPointDataSource

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


JCDefault3dPointDataSource

public JCDefault3dPointDataSource(String name,
                                  Point3d[][] points)
Regular constructor sets the data values and the name of this datasource.

Parameters:
name - String name of the datasource
points - array of Point3d objects to be plotted on the chart
Method Detail

getSeries

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

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

setSeries

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

Parameters:
seriesIndex -
values - the new series

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