|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart3d.event.Chart3dDataSupport | +--com.klg.jclass.chart3d.data.Base3dDataSource | +--com.klg.jclass.chart3d.data.Base3dGridDataSource
This class is the base for any data source that chooses to store data internally using gridmodel arrays.
Field Summary | |
protected com.klg.jclass.util.JCListenerList |
chartDataListeners
List of interested listeners. |
protected String |
dataSourceName
Name of this datasource. |
protected double[] |
xGrid
Array of doubles for X values (columns). |
protected String[] |
xLabels
The X axis labels. |
protected double[] |
yGrid
Array of doubles for Y values (rows). |
protected String[] |
yLabels
The Y axis labels. |
protected double[][] |
zValues
Two-dimensional array of doubles for Z values (data). |
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 | |
Base3dGridDataSource(String name,
double[] xGrid,
double[] yGrid,
double[][] zValues)
Constructor for creating a new Base3dGridDataSource when the data is already known,
includes a String for the name
. |
Method Summary | |
Object |
clone()
Overrides clone in class Object. |
String |
getDataSourceName()
Returns the datasource name property
. |
int |
getNumX()
Retrieves the number of X grid values (which is the same as the number of z arrays) this datasource holds. |
int |
getNumY()
Retrieves the number of Y grid values. |
double[] |
getXGrid()
Returns the xGrid values If the values don't exist, but the zValues do, a default array of values with an increment of 1.0 will be generated. |
String[] |
getXLabels()
Retrieves the xLabels . |
double[] |
getYGrid()
Returns the yGrid values. |
String[] |
getYLabels()
Retrieves the yLabels |
double[][] |
getZValues()
Returns the ZValues (data). |
void |
setDataSourceName(String name)
Sets the datasource name property
. |
void |
setXGrid(double[] xGrid)
Sets the xGrid values . |
void |
setXLabels(String[] xLabels)
Sets the xLabels . |
void |
setYGrid(double[] yGrid)
Sets the yGrid values . |
void |
setYLabels(String[] yLabels)
Sets the yLabels. |
void |
setZValues(double[][] zValues)
Sets the ZValues (data). |
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 |
protected double[] xGrid
protected double[] yGrid
protected double[][] zValues
protected String dataSourceName
protected com.klg.jclass.util.JCListenerList chartDataListeners
protected String[] xLabels
protected String[] yLabels
Constructor Detail |
public Base3dGridDataSource(String name, double[] xGrid, double[] yGrid, double[][] zValues)
Base3dGridDataSource
when the data is already known,
includes a String
for the name
.
name
- Name String of this datasource (optional, can be null)xGrid
- Array of doubles for X values (columns)yGrid
- Array of doubles for Y values (rows)zValues
- Two-dimensional array of doubles for Z values (data)Method Detail |
public void setDataSourceName(String name)
datasource name
property
.
name
- String name of this datasourcepublic String getDataSourceName()
datasource name
property
.
getDataSourceName
in interface LabelledChart3dDataModel
public void setXGrid(double[] xGrid)
xGrid
- Array of doublespublic double[] getXGrid()
getXGrid
in interface Chart3dGridDataModel
public void setYGrid(double[] yGrid)
yGrid
- Array of doublespublic double[] getYGrid()
getYGrid
in interface Chart3dGridDataModel
public void setZValues(double[][] zValues)
zValues
- Two-dimensional array of doublespublic double[][] getZValues()
getZValues
in interface Chart3dGridDataModel
public int getNumX()
getNumX
in interface LabelledChart3dGridDataModel
public int getNumY()
getNumY
in interface LabelledChart3dGridDataModel
public String[] getXLabels()
getXLabels
in interface LabelledChart3dGridDataModel
public void setXLabels(String[] xLabels)
xLabels
- a String arraypublic String[] getYLabels()
getYLabels
in interface LabelledChart3dGridDataModel
public void setYLabels(String[] yLabels)
yLabels
- a String arraypublic Object clone()
Base3dGridDataSource
fields, except for the JCListenerList
, which
is set to null.
Overrides @see Object#clone().
clone
in class Object
OutOfMemoryError
- - if there is not enough memory.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |