|
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.Chart3dPointData
Stores information that represents a list of series of points. The user sets
information on this object by setting the point data model attribute of the
parent Chart3dDataView
object. The user can then retrieve
information via this object.
Field Summary | |
protected int |
numSeries
The number of series. |
protected ArrayList |
series
The list of series for this point data object. |
protected boolean |
sorted
Has the sorted list been constructed yet? |
protected ArrayList |
sortPoints
A sorted list of all the points -- sorted by distance to eye. |
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 | |
Chart3dPointData()
Basic constructor. |
|
Chart3dPointData(com.klg.jclass.chart3d.Chart3dDataView dataView,
com.klg.jclass.chart3d.Chart3dPointDataModel data)
Internal constructor specifying parent object and point series list. |
Method Summary | |
protected void |
addSeries(Point3d[] pointList)
Appends a new series with the given pointList to the end of
the series list. |
protected void |
addSeries(Point3d[] pointList,
int index)
Adds a series at the given index from to the list of series. |
protected void |
calcAnnoLimits()
Makes a first rough pass at the annotation limits, extending the axis limits out to include the origin. |
protected void |
calcLimits()
Calculates the data limits and checks for valid Z extents (the user can only change the z limits so that they are outside of the data limits). |
int |
compare(Object o1,
Object o2)
SortPoint sorting routine. |
protected void |
computePointLimits()
Computes the min and max values of all points in the x, y, and z direction and uses these values to set the axis limits. |
int |
getNumSeries()
Gets the current number of series. |
Point3d |
getPoint(int seriesNum,
int pointNum)
Returns the point indexed by pointNum in the series indexed by
seriesNum . |
ArrayList |
getSeries()
Returns the series array list. |
com.klg.jclass.chart3d.Chart3dPointSeries |
getSeries(int seriesNum)
Returns the Chart3dPointSeries object indexed by
seriesNum . |
ArrayList |
getSortPoints()
Gets the array of sorted points. |
protected void |
makePointSeriesList(Point3d[][] seriesList)
Makes a list of Chart3dPointSeries based on a doubly linked
list of Point3d points. |
void |
precomputePoints()
Precomputes the screen points for each of the data points. |
protected void |
processData()
Calculates the data array lengths that can be used and value of dataOK . |
protected void |
refreshPointSeriesList(Point3d[][] seriesList)
Refreshes the list of Chart3dPointSeries with possibly new data. |
protected void |
removeSeries(int index)
Removes a series at the given index from the list of series. |
protected void |
setDataSource(com.klg.jclass.chart3d.Chart3dPointDataModel dataSource)
Sets a new series list of points on this point data object. |
void |
sortPoints()
Creates a ArrayList of SortPoints and then sorts
them based on the distance to the eye. |
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 |
Methods inherited from interface java.util.Comparator |
equals |
Field Detail |
protected ArrayList series
protected int numSeries
protected ArrayList sortPoints
protected boolean sorted
Constructor Detail |
public Chart3dPointData()
public Chart3dPointData(com.klg.jclass.chart3d.Chart3dDataView dataView, com.klg.jclass.chart3d.Chart3dPointDataModel data)
dataView
- The parent data viewdata
- The data source from which to extract dataMethod Detail |
public Point3d getPoint(int seriesNum, int pointNum)
pointNum
in the series indexed by
seriesNum
.
seriesNum
- The series index of the point wantedpointNum
- The point index of the point wanted
public com.klg.jclass.chart3d.Chart3dPointSeries getSeries(int seriesNum)
Chart3dPointSeries
object indexed by
seriesNum
.
seriesNum
- The series index of the Chart3dPointSeries wanted.
Chart3dPointSeries
object indexed by series.public ArrayList getSeries()
ArrayList
that holds the list of
Chart3dPointSeries
.public int getNumSeries()
protected void addSeries(Point3d[] pointList)
pointList
to the end of
the series list.
pointList
- The point list for the series to be addedprotected void addSeries(Point3d[] pointList, int index)
pointList
- The point list for the series to be addedindex
- The index at which the new series is to be insertedprotected void removeSeries(int index)
index
- The index of the series to be removed.protected void makePointSeriesList(Point3d[][] seriesList)
Chart3dPointSeries
based on a doubly linked
list of Point3d
points. Internal use only! Use a point
data source to set data on this object.
seriesList
- The list of points to make a new series list from.protected void refreshPointSeriesList(Point3d[][] seriesList)
Chart3dPointSeries
with possibly new data.
This means that the number of series remains the same (so no new
Chart3dPointSeries
objects need to be created). Internal use
only! Use a point data source to set data on this object.
seriesList
- The list of points from which to refresh the series listprotected void processData()
dataOK
.
protected void setDataSource(com.klg.jclass.chart3d.Chart3dPointDataModel dataSource)
dataSource
- The data source from which to extract datapublic ArrayList getSortPoints()
protected void computePointLimits()
protected void calcLimits()
protected void calcAnnoLimits()
calcAnnoLimits
in class Chart3dData
public void precomputePoints()
precomputePoints
in class Chart3dData
public void sortPoints()
ArrayList
of SortPoints
and then sorts
them based on the distance to the eye. This is used to later draw the
points from back to front.
public int compare(Object o1, Object o2)
SortPoint
sorting routine.
compare
in interface Comparator
o1
- The first SortPoint to compareo2
- The second SortPoint to compare
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |