|
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.TrackChange | +--com.klg.jclass.chart3d.Chart3dData | +--com.klg.jclass.chart3d.Chart3dGridData
Stores information that represents a grid of points. The user sets
information on this object by setting the grid data model attribute of the
parent Chart3dDataView
object. The user can then retrieve
information via this object.
Field Summary | |
protected com.klg.jclass.chart3d.JCChart3dStyle |
chartStyle
The chartStyle used if the chart type is a scatter plot. |
protected com.klg.jclass.chart3d.GridLimits |
gridLimits
|
protected double |
minXStep
|
protected double |
minYStep
|
protected int |
numX
The number of X grid values used. |
protected int |
numY
The number of Y grid values used |
protected double[] |
xGrid
The array of X grid values. |
protected String[] |
xLabels
The X data labels for this gridData object. |
protected ArrayList |
xLabelsArrayList
The X data labels for this gridData object in an array
list. |
protected double[] |
yGrid
The array of Y grid values. |
protected String[] |
yLabels
The Y data labels for this gridData object. |
protected ArrayList |
yLabelsArrayList
The Y data labels for this gridData object in an array
list. |
protected double[][] |
zValues
The grid of Z values. |
Fields inherited from class com.klg.jclass.chart3d.Chart3dData |
dataHandler, dataMax, dataMin, dataOK, dataSource, dataView, holeValue, name, screenPoints |
Fields inherited from class com.klg.jclass.chart3d.TrackChange |
changed, changedFlag |
Fields inherited from interface com.klg.jclass.chart3d.Changeable |
ALL, CONTOURS, NOTIFY_CA_RECALC, NOTIFY_CA_REDRAW, NOTIFY_LEGEND_RECALC, NOTIFY_LEGEND_REDRAW |
Fields inherited from interface com.klg.jclass.util.Changeable |
BASIC_CHANGE_MASK, LAYOUT, NO_CHANGE, NOTIFY_PARENT_LAYOUT, RECALC, REDRAW |
Constructor Summary | |
Chart3dGridData()
Basic constructor. |
|
Chart3dGridData(com.klg.jclass.chart3d.Chart3dDataView dataView,
com.klg.jclass.chart3d.Chart3dGridDataModel data)
Internal constructor specifying parent data view and arrays holding data. |
Method Summary | |
protected void |
calcAnnoLimits()
Makes a first rough pass at the annotation limits, extending the axis limits out to include the origin and making sure that bars fit within the axis. |
protected void |
calcLimits(com.klg.jclass.chart3d.Chart3dGridData zoneData)
Calculates and sets the axis limits, grid limits, and the contour limits. |
protected void |
computeZLimits(com.klg.jclass.chart3d.Chart3dGridData data,
double oldMin,
double oldMax)
Computes the Z min and max data values and store these in dataMin and dataMax . |
com.klg.jclass.chart3d.JCChart3dStyle |
getChartStyle()
Gets the chart style for this grid data object. |
int |
getGridIndex(double t,
boolean isXArray,
boolean transform)
Returns the largest x or y grid index that the value 't' is greater than. |
com.klg.jclass.chart3d.GridLimits |
getGridLimits()
Returns the current GridLimits object. |
double |
getMinXStep()
Retrieves the minimum difference between x grid values. |
double |
getMinYStep()
Retrieves the minimum difference between y grid values. |
int |
getNumX()
This is the number of X points that is actually used (this may not match xGrid.length ) |
int |
getNumY()
This is the number of Y points that is actually used (this may not match yGrid.length ) |
double |
getX(int i)
Returns the X value at the specified index. |
int |
getXClosest(double x)
Returns the index that contains the x value closest to the specified value. |
double[] |
getXGrid()
Returns the X grid array. |
String[] |
getXLabels()
Returns the X data labels for this Chart3dGridData object |
ArrayList |
getXLabelsArrayList()
Get the X data labels for this Chart3dGridData object
in an array list. |
double |
getY(int i)
Returns the Y value at the specified index. |
int |
getYClosest(double y)
Returns the index that contains the y value closest to the specified value. |
double[] |
getYGrid()
Returns the Y grid array. |
String[] |
getYLabels()
Returns the Y data labels. |
ArrayList |
getYLabelsArrayList()
Get the Y data labels for this Chart3dGridData object
in an array list. |
double |
getZValue(int x,
int y)
Returns the data value (or z value) that corresponds to grid point (x, y). |
double[][] |
getZValues()
Returns the entire zValues array. |
protected boolean |
matchData(com.klg.jclass.chart3d.Chart3dGridData data)
Checks to see if the grid from the passed in data matches the grid from this data. |
void |
precomputePoints()
Precomputes the screen points for each of the grid values |
protected void |
processData()
Calculates the data array lengths that can be used and value of dataOK . |
protected void |
setAllXYZValues(double[] xGrid,
double[] yGrid,
double[][] zValues)
Sets the X grid, Y grid, and Z values arrays. |
void |
setChartStyle(com.klg.jclass.chart3d.JCChart3dStyle chartStyle)
Sets the chart style for this grid data object. |
protected void |
setDataSource(com.klg.jclass.chart3d.Chart3dGridDataModel dataSource)
Sets the data values from a data source and processes the data. |
protected void |
setXGrid(double[] xGrid)
Sets the X grid array. |
void |
setXLabels(String[] xLabels)
Sets the X data labels for this Chart3dGridData object. |
void |
setXLabelsArrayList(ArrayList xLabelsArrayList)
Set the X data labels for this Chart3dGridData object
as an array list. |
protected void |
setYGrid(double[] yGrid)
Sets the Y grid array. |
void |
setYLabels(String[] yLabels)
Sets the Y data labels for this Chart3dGridData object. |
void |
setYLabelsArrayList(ArrayList yLabelsArrayList)
Set the Y data labels for this Chart3dGridData object
as an array list. |
protected void |
setZValues(double[][] zValues)
Sets the Z values array. |
Methods inherited from class com.klg.jclass.chart3d.Chart3dData |
checkValidZExtents, getClosestPoint, getDataHandler, getDataMax, getDataMin, getDataSource, getDataView, getHoleValue, getMinStep, getName, getPointIndex, getScreenPoints, isDataOK, setChanged, setDataMax, setDataMin, setDataOK, setDataView, setHoleValue, setName, toString |
Methods inherited from class com.klg.jclass.chart3d.TrackChange |
getChanged, getChanged, isBatched, isChanged, isChanged, setChanged, updateFlags |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected double[] xGrid
protected double[] yGrid
protected double[][] zValues
protected int numX
protected int numY
protected com.klg.jclass.chart3d.JCChart3dStyle chartStyle
chartStyle
used if the chart type is a scatter plot.
protected String[] xLabels
gridData
object.
protected String[] yLabels
gridData
object.
protected ArrayList xLabelsArrayList
gridData
object in an array
list. If this list is non-null, the xLabels property is ignored.
protected ArrayList yLabelsArrayList
gridData
object in an array
list. If this list is non-null, the yLabels property is ignored.
protected com.klg.jclass.chart3d.GridLimits gridLimits
protected double minXStep
protected double minYStep
Constructor Detail |
public Chart3dGridData()
public Chart3dGridData(com.klg.jclass.chart3d.Chart3dDataView dataView, com.klg.jclass.chart3d.Chart3dGridDataModel data)
dataView
- The parent data viewdata
- The data model from which to extra dataMethod Detail |
public int getNumX()
xGrid.length
)
public int getNumY()
yGrid.length
)
public double getX(int i)
i
- The index of the X grid value to be retrieved
public double getY(int i)
i
- The index of the Y grid value to be retrieved
public double[] getXGrid()
protected void setXGrid(double[] xGrid)
xGrid
- The new xGrid arraypublic double[] getYGrid()
protected void setYGrid(double[] yGrid)
yGrid
- The new yGrid arraypublic double getZValue(int x, int y)
x
- The x index of the data valuey
- The y index of the data value
public double[][] getZValues()
protected void setZValues(double[][] zValues)
zValues
- The new zValues arraypublic String[] getXLabels()
Chart3dGridData
object
public void setXLabels(String[] xLabels)
Chart3dGridData
object.
xLabels
- The new X data labelspublic ArrayList getXLabelsArrayList()
Chart3dGridData
object
in an array list. If this property is non-null, the xLabels property is
ignored.
public void setXLabelsArrayList(ArrayList xLabelsArrayList)
Chart3dGridData
object
as an array list. If this property is non-null, the xLabels property is
ignored.
In this array list you can specify xLabels as a list of Strings,
JCValueLabels, or other objects (or a mixture of these types). For each
data label, if the object is a JCValueLabel, a copy of it is used internally
(the value is ignored). If it is a String, it is used as is. If it is any
other object, the value of is "toString()" method is used as the label.
xLabelsArrayList
- The new X data labels ArrayListsetXLabelsArrayList(java.util.ArrayList)
public String[] getYLabels()
Chart3dGridData
public void setYLabels(String[] yLabels)
Chart3dGridData
object.
yLabels
- The new Y data labelspublic ArrayList getYLabelsArrayList()
Chart3dGridData
object
in an array list. If this property is non-null, the yLabels property is
ignored.
setYLabelsArrayList(java.util.ArrayList)
public void setYLabelsArrayList(ArrayList yLabelsArrayList)
Chart3dGridData
object
as an array list. If this property is non-null, the yLabels property is
ignored.
In this array list you can specify yLabels as a list of Strings,
JCValueLabels, or other objects (or a mixture of these types). For each
data label, if the object is a JCValueLabel, a copy of it is used internally
(the value is ignored). If it is a String, it is used as is. If it is any
other object, the value of is "toString()" method is used as the label.
yLabelsArrayList
- The new Y data labels ArrayListpublic void setChartStyle(com.klg.jclass.chart3d.JCChart3dStyle chartStyle)
JCChart3d.SCATTER
and no contours or zones are being drawn.
chartStyle
- The new JCChartStyle for this objectpublic com.klg.jclass.chart3d.JCChart3dStyle getChartStyle()
JCChart3d.SCATTER
and no contours or zones are being drawn.
protected void setAllXYZValues(double[] xGrid, double[] yGrid, double[][] zValues)
xGrid
- The new xGrid arrayyGrid
- The new yGrid arrayzValues
- The new z values arrayprotected void setDataSource(com.klg.jclass.chart3d.Chart3dGridDataModel dataSource)
setChanged
does not get called
because the only place this should get called from is the parent
dataView
(which will handle setChanged
).
dataSource
- The new data source from which to extract datapublic com.klg.jclass.chart3d.GridLimits getGridLimits()
GridLimits
object. This object stores the
x and y start and stop indices that the chart actually uses
based on the current x and y axis min and max (if these are
within their default values, only part of the grid will be drawn).
GridLimits
objectpublic double getMinXStep()
public double getMinYStep()
public int getXClosest(double x)
x
- The value for which the closest index should be found
public int getYClosest(double y)
y
- The value for which the closest index should be found
protected void processData()
dataOK
.
protected boolean matchData(com.klg.jclass.chart3d.Chart3dGridData data)
data
- The data object whose data needs to match the data of this object
protected void computeZLimits(com.klg.jclass.chart3d.Chart3dGridData data, double oldMin, double oldMax)
dataMin
and dataMax
.
data
- If not null, use as a zone data objectoldMin
- The old data min (if this one can't be computed for some reason)oldMax
- The old data max (if this one can't be computed for some reason)protected void calcLimits(com.klg.jclass.chart3d.Chart3dGridData zoneData)
zoneData
- A zone data object that may have valid datapublic void precomputePoints()
precomputePoints
in class Chart3dData
protected void calcAnnoLimits()
calcAnnoLimits
in class Chart3dData
public int getGridIndex(double t, boolean isXArray, boolean transform)
t
- The value for which the index needs to be foundisXArray
- Is this an x array or y arraytransform
- Should the point be transformed before searching
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |