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
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. |
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 datasourcepoints
- array of Point3d
objects to be plotted on the
chart
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