JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.data
Class Base3dPointDataSource

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

public class Base3dPointDataSource
extends Base3dDataSource
implements Chart3dPointDataModel, LabelledChart3dPointDataModel, Cloneable, Serializable

This class is the base for any data source that chooses to store data internally using an array of Point3d objects.

See Also:
Serialized Form

Field Summary
protected  com.klg.jclass.util.JCListenerList chartDataListeners
          List of interested listeners.
protected  String dataSourceName
          Name of this datasource.
protected  Point3d[][] points
          Array of Point3d objects to be plotted on the chart.
protected  String[] seriesLabels
          List of Series Labels.
 
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
Base3dPointDataSource(String name, Point3d[][] points)
          Constructor for a Base3dPointDataSource where the data is already known, includes an argument for the datasource name.
 
Method Summary
 Object clone()
          Overrides clone in class Object.
 String getDataSourceName()
          Retrieves the name of this datasource .
 int getNumSeries()
          Retrieves the number of data series this datasource holds.
 Point3d[][] getPoints()
          Retrieves a doubly subscripted array of points (arranged by series).
 String[] getSeriesLabels()
          Retrieves the list of series labels .
 void setDataSourceName(String name)
          Sets the name of this datasource .
 void setPoints(Point3d[][] points)
          Sets the data values for this chart in the form of a two-dimensional array of Point3d objects .
 void setSeriesLabels(String[] seriesLabels)
          Sets the list of series labels .
 
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

points

protected Point3d[][] points
Array of Point3d objects to be plotted on the chart.


dataSourceName

protected String dataSourceName
Name of this datasource.


chartDataListeners

protected com.klg.jclass.util.JCListenerList chartDataListeners
List of interested listeners.


seriesLabels

protected String[] seriesLabels
List of Series Labels.

Constructor Detail

Base3dPointDataSource

public Base3dPointDataSource(String name,
                             Point3d[][] points)
Constructor for a Base3dPointDataSource where the data is already known, includes an argument for the datasource name.

Parameters:
name - Name String of this datasource (optional, can be null).
points - Array of Point3d objects to be plotted on the chart.
Method Detail

setDataSourceName

public void setDataSourceName(String name)
Sets the name of this datasource .

Parameters:
name - Name String of this datasource

getDataSourceName

public String getDataSourceName()
Retrieves the name of this datasource .

Specified by:
getDataSourceName in interface LabelledChart3dDataModel
Returns:
Name String of this datasource

setPoints

public void setPoints(Point3d[][] points)
Sets the data values for this chart in the form of a two-dimensional array of Point3d objects .

Parameters:
points - Two-dimensional array of Point3d objects

getPoints

public Point3d[][] getPoints()
Retrieves a doubly subscripted array of points (arranged by series).

Specified by:
getPoints in interface Chart3dPointDataModel
Returns:
A doubly subscripted array of points (arranged by series).

getNumSeries

public int getNumSeries()
Retrieves the number of data series this datasource holds.

Specified by:
getNumSeries in interface LabelledChart3dPointDataModel
Returns:
int the number of dataseries.

getSeriesLabels

public String[] getSeriesLabels()
Retrieves the list of series labels .

Specified by:
getSeriesLabels in interface LabelledChart3dPointDataModel
Returns:
seriesLabels a String array

setSeriesLabels

public void setSeriesLabels(String[] seriesLabels)
Sets the list of series labels .

Parameters:
seriesLabels - a String array

clone

public Object clone()
Overrides clone in class Object. This clone method retuns a deep copy of all Base3dPointDataSource fields, except for the JCListenerList, which is set to null.

Overrides @see Object#clone().

Overrides:
clone in class Object
Returns:
a clone of this instance.
Throws:
OutOfMemoryError - - if there is not enough memory.

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