|
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
Base object for JCChart3d
's internal data. It stores data
passed into it from a data source which implements one the Chart3d data
models.
Field Summary | |
protected com.klg.jclass.chart3d.Chart3dDataHandler |
dataHandler
A data handler used to handle data events and extract data from data sources |
protected double |
dataMax
The current data's minimum Z value. |
protected double |
dataMin
The current data's maximum Z value. |
protected boolean |
dataOK
Is the data passed in thru the data source in a state in which it can be drawn? |
protected com.klg.jclass.chart3d.Chart3dDataModel |
dataSource
The data source for this internal data object |
protected com.klg.jclass.chart3d.Chart3dDataView |
dataView
The parent dataView that draws with this data object |
protected double |
holeValue
The "special" data value which determines where holes are drawn |
protected String |
name
The (optional) name of this data source |
protected com.klg.jclass.chart3d.ScreenPoint[][] |
screenPoints
A list of screen points which represent the transformed data values and stores their pixel locations on the screen as well as some other flags. |
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 |
Method Summary | |
protected abstract void |
calcAnnoLimits()
Calulate the annotation limits for this data object. |
protected void |
checkValidZExtents()
Notes that user specified Z max/min values cannot be inside the data Z max/min (otherwise we need to do surface clipping). |
int |
getClosestPoint(double v,
double[] arr,
int n)
Finds the closest match to a value in an array of doubles. |
com.klg.jclass.chart3d.Chart3dDataHandler |
getDataHandler()
Returns the data handler for this data object. |
double |
getDataMax()
Retrieves the data max value (computed in sub-class). |
double |
getDataMin()
Retrieves the data min value (computed in sub-class). |
com.klg.jclass.chart3d.Chart3dDataModel |
getDataSource()
Returns the current data source for this data object. |
com.klg.jclass.chart3d.Chart3dDataView |
getDataView()
Gets the value of the dataView property. |
double |
getHoleValue()
Retrieves the hole value for the data. |
double |
getMinStep(double[] arr,
int n)
Finds the minimum delta (or step) in an array of doubles. |
String |
getName()
Gets the value of the name property. |
int |
getPointIndex(double t,
double[] arr,
int n)
Usees a binary search to look for the value 't' in the array 'arr'. |
com.klg.jclass.chart3d.ScreenPoint[][] |
getScreenPoints()
Returns the list of precomputed screen points for this data set. |
boolean |
isDataOK()
Is the data valid? In other words, can it be used to draw a surface, bar, or scatter plot. |
abstract void |
precomputePoints()
Precompute the screen points (to avoid repeatedly transforming points) |
void |
setChanged(boolean n,
int cf)
Overrides setChanged so that the flags are updated, passed on to the parent
dataView , and then reset. |
protected void |
setDataMax(double dataMax)
Sets the data max value (usually set by sub-class). |
protected void |
setDataMin(double dataMin)
Sets the data min value (usually set by sub-class). |
protected void |
setDataOK(boolean dataOK)
Sets whether the data is valid or not (internal use only). |
void |
setDataView(com.klg.jclass.chart3d.Chart3dDataView dataView)
Sets the parent dataView . |
protected void |
setHoleValue(double holeValue)
Sets the hole value for the data (internal use only). |
void |
setName(String name)
Sets the value of the name property. |
String |
toString()
Returns string representation of this data object. |
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 com.klg.jclass.chart3d.Chart3dDataView dataView
protected double holeValue
protected String name
protected boolean dataOK
protected com.klg.jclass.chart3d.Chart3dDataModel dataSource
protected com.klg.jclass.chart3d.Chart3dDataHandler dataHandler
protected double dataMin
protected double dataMax
protected com.klg.jclass.chart3d.ScreenPoint[][] screenPoints
Method Detail |
public com.klg.jclass.chart3d.Chart3dDataView getDataView()
dataView
property.
The dataView
property points to the containing
Chart3dDataView
for this data object
Chart3dDataView
public void setDataView(com.klg.jclass.chart3d.Chart3dDataView dataView)
dataView
.
dataView
- The new parent data viewChart3dDataView
public String getName()
public void setName(String name)
name
- The new name of the data objectpublic boolean isDataOK()
protected void setDataOK(boolean dataOK)
dataOK
- The new value of dataOK.public double getHoleValue()
protected void setHoleValue(double holeValue)
holeValue
- The new hole valuepublic double getDataMin()
protected void setDataMin(double dataMin)
dataMin
- The new dataMin value.public double getDataMax()
protected void setDataMax(double dataMax)
dataMax
- The new dataMax valuepublic com.klg.jclass.chart3d.Chart3dDataModel getDataSource()
public com.klg.jclass.chart3d.Chart3dDataHandler getDataHandler()
public com.klg.jclass.chart3d.ScreenPoint[][] getScreenPoints()
public String toString()
toString
in class Object
public int getClosestPoint(double v, double[] arr, int n)
v
- The input value (for closest match)arr
- The array to searchn
- The size of the array (could be less than arr.length).public int getPointIndex(double t, double[] arr, int n)
t
- The value to findarr
- The array to searchn
- The size of the array (could be less than arr.length).public double getMinStep(double[] arr, int n)
arr
- The array to searchn
- The size of the array (could be less than arr.length).protected void checkValidZExtents()
public void setChanged(boolean n, int cf)
setChanged
so that the flags are updated, passed on to the parent
dataView
, and then reset.
setChanged
in interface Changeable
setChanged
in class TrackChange
n
- Has anything changed?cf
- The change mask which tells the type of changepublic abstract void precomputePoints()
protected abstract void calcAnnoLimits()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |