|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart3djava.ChartObj
com.quinncurtis.chart3djava.ChartDataset
com.quinncurtis.chart3djava.SimpleDataset
com.quinncurtis.chart3djava.TimeSimpleDataset
com.quinncurtis.chart3djava.TimeSimpleDataset3D
public class TimeSimpleDataset3D
Summary description for TimeSimpleDataset3D.
Field Summary |
---|
Fields inherited from class com.quinncurtis.chart3djava.ChartDataset |
---|
initialCondition, markLookaheadLimit |
Constructor Summary | |
---|---|
TimeSimpleDataset3D()
The default SimpleDataset constructor. |
|
TimeSimpleDataset3D(CSV csv,
java.lang.String filename,
int rowskip,
int columnskip)
This constructor creates a new TimeSimpleDataset3D object from a file consisting of comma separated values. |
|
TimeSimpleDataset3D(java.lang.String sname,
double[] x,
double[] y,
double[] z)
This constructor initializes the name, x- and y- values of a simple dataset. |
|
TimeSimpleDataset3D(java.lang.String sname,
double[] x,
java.util.GregorianCalendar[] y,
double[] z)
This constructor initializes the name, x- and y- values of a simple dataset. |
|
TimeSimpleDataset3D(java.lang.String sname,
java.util.GregorianCalendar[] x,
double[] y,
double[] z)
This constructor initializes the name, x- and y- values of a simple dataset. |
|
TimeSimpleDataset3D(java.lang.String sname,
java.util.GregorianCalendar[] x,
double[] y,
double[] z,
double depthvalue)
This constructor initializes the name, x- and y- values of a simple dataset. |
|
TimeSimpleDataset3D(java.lang.String sname,
java.util.GregorianCalendar[] x,
java.util.GregorianCalendar[] y,
double[] z)
This constructor initializes the name, x- and y- values of a simple dataset. |
|
TimeSimpleDataset3D(java.lang.String sname,
int n)
This constructor creates an uninitialized dataset of the specified size. |
Method Summary | |
---|---|
int |
addDataPoint(double x,
double y,
double z)
This method adds a new data point (floating point x-value, GregorianCalendar y-value) at the end of the dataset, increasing its size by one. |
int |
addTimeDataPoint(double x,
java.util.GregorianCalendar y,
double z)
This method adds a new data point (floating point x-value, ChartCalendar y-value) at the end of the dataset, increasing its size by one. |
boolean |
calcNearestPoint(PhysicalCoordinates transform,
ChartPoint3D testpoint,
int nmode,
NearestPointData nearestpoint)
This method compares a test point against all of the xy points in a contour dataset and calculates which point in the dataset is nearest the test point. |
java.lang.Object |
clone()
Returns an object that is a clone of this SimpleDataset3D object. |
TimeSimpleDataset3D |
compressTimeFieldSimpleDataset3D(int ctypex,
int ctypey,
int ctypez,
int timefield,
int startindex,
int endindex,
java.lang.String newname)
This methods creates and returns a new dataset that is the data reduced version of the source dataset. |
TimeSimpleDataset3D |
compressTimeSimpleDataset3D(int ctypex,
int ctypey,
int ctypez,
int interval,
int startindex,
int endindex,
java.lang.String newname)
This methods creates and returns a new dataset that is the data reduced version of the source dataset. |
void |
copy(SimpleDataset3D source)
Copies the source dataset. |
int |
errorCheck(int nerror)
Checks the current dataset object for common errors. |
ChartPoint3D |
GetDataPoint(int index)
This method returns the x- and y-value of a point at the specified index. |
ChartPoint3D |
getDataPoint3D(int index)
This method returns the x-, y- and z-values of a point at the specified index. |
SimpleDataset |
getFastClipDataset(java.lang.String s,
PhysicalCoordinates transform,
int fastclipmode,
java.lang.Integer fastclipoffset)
This method returns a truncated dataset that only includes the datapoints within the current scaling limits, assuming the the data is monotonic in the x or y direction. |
double |
getZDataValue(int index)
This method returns the z-value in a contour dataset. |
void |
initDataset(java.lang.String sname,
double[] x,
double[] y,
double[] z)
A TimeSimpleDataset3D initialization method that initializes the name, x- and y- values of a simple dataset. |
void |
initDataset(java.lang.String sname,
double[] x,
double[] y,
double[] z,
int n)
A TimeSimpleDataset3D initialization method that initializes the name, x- and y- values of a simple dataset. |
void |
initDataset(java.lang.String sname,
double[] x,
java.util.GregorianCalendar[] y,
double[] z)
A TimeSimpleDataset3D initialization method that initializes the name, x- and y- values of a simple dataset. |
void |
initDataset(java.lang.String sname,
java.util.GregorianCalendar[] x,
double[] y,
double[] z)
A TimeSimpleDataset3D initialization method that initializes the name, x- and y- values of a simple dataset. |
void |
initDataset(java.lang.String sname,
java.util.GregorianCalendar[] x,
double[] y,
double[] z,
int n)
A TimeSimpleDataset3D initialization method that initializes the name, x- and y- values of a simple dataset. |
void |
initDataset(java.lang.String sname,
java.util.GregorianCalendar[] x,
java.util.GregorianCalendar[] y,
double[] z)
A TimeSimpleDataset3D initialization method that initializes the name, x- and y- values of a simple dataset. |
void |
initializeData(double[] x,
double[] y,
double[] z)
an SimpleDataset initialization method that initializes the x- and y-data values of a simple dataset. |
void |
initializeData(java.util.GregorianCalendar[] x,
double[] y,
double[] z)
an SimpleDataset initialization method that initializes the x- and y-data values of a simple dataset. |
int |
insertDataPoint(double xvalue,
double yvalue,
double zvalue,
int insertpoint)
Insert a data point at the specified location, increasing the size of the dataset by one. |
int |
insertTimeDataPoint(java.util.GregorianCalendar x,
double y,
double z,
int insertpoint)
Insert a data point at the specified location, increasing the size of the dataset by one. |
boolean |
isDataPointGood(int index)
This method checks if the point at the specified index for a simple dataset is valid. |
void |
readTimeSimpleDataset3D(CSV csv,
java.lang.String filename,
int rowskip,
int columnskip)
This method initializes the TimeSimpleDataset3D object from a file consisting of comma separated values. |
int |
resize(int n)
Resizes the dataset, maintaining the original data. |
int |
sddTimeDataPoint(java.util.GregorianCalendar x,
double y,
double z)
This method adds a new data point (GregorianCalendar x-value, floating point y-value) at the end of the dataset, increasing its size by one. |
void |
setDataPoint(int index,
double x,
double y,
double z)
Sets the x- and y- and z-values for a data point in a contour dataset. |
void |
setTimeDataPoint(int index,
double x,
java.util.GregorianCalendar y,
double z)
Sets a data point (floating point x-value, GregorianCalendar y-value) at the specified index. |
void |
setTimeDataPoint(int index,
java.util.GregorianCalendar x,
double y,
double z)
Sets a data point (GregorianCalendar x-value, floating point y-value) at the specified index. |
void |
setZDataValue(int index,
double z)
Sets the z-value in a contour dataset. |
void |
writeTimeSimpleDataset3D(CSV csv,
java.lang.String filename,
boolean append)
This methods will create a text file and output the TimeSimpleDataset3D to that file in a CSV (Comma Separated Value) format. |
void |
writeTimeSimpleDataset3D3D(CSV csv,
java.lang.String filename)
This methods will create a text file and output the TimeSimpleDataset3D to that file in a CSV (Comma Separated Value) format. |
Methods inherited from class com.quinncurtis.chart3djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeSimpleDataset3D(java.lang.String sname, double[] x, java.util.GregorianCalendar[] y, double[] z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array that specifies the y-values of a dataset.z
- An array the z-values of a dataset.public TimeSimpleDataset3D(java.lang.String sname, java.util.GregorianCalendar[] x, double[] y, double[] z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array that specifies the y-values of a dataset.z
- An array the z-values of a dataset.public TimeSimpleDataset3D(java.lang.String sname, java.util.GregorianCalendar[] x, double[] y, double[] z, double depthvalue)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array that specifies the y-values of a dataset.z
- An array the z-values of a dataset.depthvalue
- Specifies the initialvalue of the implicitDepthValue property.public TimeSimpleDataset3D(java.lang.String sname, double[] x, double[] y, double[] z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array that specifies the y-values of a dataset.z
- An array the z-values of a dataset.public TimeSimpleDataset3D(java.lang.String sname, java.util.GregorianCalendar[] x, java.util.GregorianCalendar[] y, double[] z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array that specifies the y-values of a dataset.z
- An array the z-values of a dataset.public TimeSimpleDataset3D(CSV csv, java.lang.String filename, int rowskip, int columnskip)
csv
- An instance of an CSV object.filename
- The name of the file.rowskip
- Skip this many rows before starting the read operation.columnskip
- For each row of data, skip this many columns before reading the first value
from the row.public TimeSimpleDataset3D(java.lang.String sname, int n)
sname
- Specifies the name of the dataset.n
- Specifies the number of datapoints in the dataset.public TimeSimpleDataset3D()
Method Detail |
---|
public int errorCheck(int nerror)
errorCheck
in class TimeSimpleDataset
nerror
- Current error state.
public void initializeData(java.util.GregorianCalendar[] x, double[] y, double[] z)
x
- An array that specifies the x-values of a dataset.y
- An array the y-values of a dataset.z
- An array the z-values of a dataset.public void initDataset(java.lang.String sname, java.util.GregorianCalendar[] x, double[] y, double[] z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array the y-values of a dataset.z
- An array the z-values of a dataset.public void initDataset(java.lang.String sname, java.util.GregorianCalendar[] x, double[] y, double[] z, int n)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array the y-values of a dataset.z
- An array the z-values of a dataset.n
- Number of datapoints.public void initializeData(double[] x, double[] y, double[] z)
x
- An array that specifies the x-values of a dataset.y
- An array the y-values of a dataset.z
- An array the z-values of a dataset.public void initDataset(java.lang.String sname, double[] x, double[] y, double[] z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array the y-values of a dataset.z
- An array the z-values of a dataset.public void initDataset(java.lang.String sname, double[] x, double[] y, double[] z, int n)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array the y-values of a dataset.z
- An array the z-values of a dataset.n
- Number of datapoints.public void initDataset(java.lang.String sname, double[] x, java.util.GregorianCalendar[] y, double[] z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array the y-values of a dataset.z
- An array the z-values of a dataset.public void initDataset(java.lang.String sname, java.util.GregorianCalendar[] x, java.util.GregorianCalendar[] y, double[] z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of a dataset.y
- An array the y-values of a dataset.z
- An array the z-values of a dataset.public void copy(SimpleDataset3D source)
source
- The source dataset object.public java.lang.Object clone()
clone
in class TimeSimpleDataset
public int resize(int n)
resize
in class SimpleDataset
n
- The new size of the dataset.
public void setTimeDataPoint(int index, java.util.GregorianCalendar x, double y, double z)
index
- Specifies the index for the new data value.x
- Specifies the new x-value for the data point at the specified index.y
- Specifies the new y-value for the data point at the specified index.z
- Specifies the new z-value for the data point at the specified index.public void setTimeDataPoint(int index, double x, java.util.GregorianCalendar y, double z)
x
- Specifies the new x-value for the data point at the specified index.y
- Specifies the new y-value for the data point at the specified index.z
- Specifies the new z-value for the data point at the specified index.index
- Specifies the index for the new data value.public int addDataPoint(double x, double y, double z)
x
- Specifies the new x-value for the data point at the specified index.y
- Specifies the new y-value for the data point at the specified index.z
- Specifies the new z-value for the data point at the specified index.
public int sddTimeDataPoint(java.util.GregorianCalendar x, double y, double z)
x
- Specifies the new x-value for the data point at the specified index.y
- Specifies the new y-value for the data point at the specified index.z
- Specifies the new z-value for the data point at the specified index.
public int addTimeDataPoint(double x, java.util.GregorianCalendar y, double z)
x
- Specifies the new x-value for the data point at the specified index.y
- Specifies the new y-value for the data point at the specified index.z
- Specifies the new z-value for the data point at the specified index.
public int insertDataPoint(double xvalue, double yvalue, double zvalue, int insertpoint)
xvalue
- The x-value of the point to insert.yvalue
- The y-value of the point to insertzvalue
- The z-value of the point to insertinsertpoint
- The insertion point of the data. Zero based array indexing is used, so the
5th data point in the array has an index value of 4.
public int insertTimeDataPoint(java.util.GregorianCalendar x, double y, double z, int insertpoint)
x
- The date x-value of the point to insert.y
- The y-value of the point to insertz
- The z-value of the point to insertinsertpoint
- The insertion point of the data. Zero based array indexing is used, so the
5th data point in the array has an index value of 4.
public void setDataPoint(int index, double x, double y, double z)
index
- Specifies the index for the new data values.x
- Specifies the new x-value for the data point at the specified index.y
- Specifies the new y-value for the data point at the specified index.z
- Specifies the new z-value for the data point at the specified index.public ChartPoint3D getDataPoint3D(int index)
index
- Specifies the index of the data point.
public void setZDataValue(int index, double z)
setZDataValue
in class ChartDataset
z
- Specifies the new z-value for the data point at the specified index.index
- Specifies the index for the data value.public double getZDataValue(int index)
getZDataValue
in class ChartDataset
index
- Specifies the index of the z-value values.
public ChartPoint3D GetDataPoint(int index)
index
- Specifies the index of the data point.
public boolean isDataPointGood(int index)
isDataPointGood
in class SimpleDataset
index
- Specifies the index to check in the xData and yData arrays.
public boolean calcNearestPoint(PhysicalCoordinates transform, ChartPoint3D testpoint, int nmode, NearestPointData nearestpoint)
calcNearestPoint
in class SimpleDataset
transform
- The coordinate system of the test point.testpoint
- The test point for the nearness calculation.nmode
- Specifies the algorithm used in the nearness calculation.nearestpoint
- Returns the parameters of the nearest point.
public void writeTimeSimpleDataset3D3D(CSV csv, java.lang.String filename)
csv
- An instance of an CSV object.filename
- The name of the file.public void writeTimeSimpleDataset3D(CSV csv, java.lang.String filename, boolean append)
csv
- An instance of an CSV object.filename
- The name of the file.append
- True and if the file exists, data is appended to the file.public void readTimeSimpleDataset3D(CSV csv, java.lang.String filename, int rowskip, int columnskip)
csv
- An instance of an CSV object.filename
- The name of the file.rowskip
- Skip this many rows before starting the read operation.columnskip
- For each row of data, skip this many columns before reading the first value
from the row.public TimeSimpleDataset3D compressTimeSimpleDataset3D(int ctypex, int ctypey, int ctypez, int interval, int startindex, int endindex, java.lang.String newname)
ctypex
- The compression type. Use one of the data compression type constants:
DATACOMPRESS_NONE (returns a dataset containing the points in the specified range, no compression),
DATACOMPRESS_SKIP (sample the dataset every interval points), DATACOMPRESS_AVERAGE (use the average
x- and y-value in each interval), DATACOMPRESS_MIN (use the minimum x- and y-value in each interval),
DATACOMPRESS_MAX (use the maximum x- and y-value in each interval), and DATACOMPRESS_MINMAX (use the
minimum and maximum x- and y-value in each interval). The DATACOMPRESS_MINMAX compression type is best
used when the compressed data values number more than 1000, where adjacent data values in the rendered
chart differ by one horizontal pixel or less. The DATACOMPRESS_MINMAX compression type will guarantee
that the chart displays the same minimums and maximums as the original dataset.ctypey
- The compression type for the y-values. Use one of the data compression type
constants.ctypez
- The compression type for the z-values. Use one of the data compression type
constants.interval
- The number of data points in each segment that is reduced to a single datapoint
(two for the DATACOMPRESS_MINMAX compression type) in the compressed dataset.startindex
- The starting point, inclusive, in the source dataset for the data compression.endindex
- The ending index, inclusive, in the source dataset for the data compression.newname
- The string name for the new dataset.
public TimeSimpleDataset3D compressTimeFieldSimpleDataset3D(int ctypex, int ctypey, int ctypez, int timefield, int startindex, int endindex, java.lang.String newname)
ctypex
- The compression type. Use one of the data compression type constants:
DATACOMPRESS_NONE (returns a dataset containing the points in the specified range, no compression),
DATACOMPRESS_SKIP (sample the dataset every interval points), DATACOMPRESS_AVERAGE (use the average
x- and y-value in each interval), DATACOMPRESS_MIN (use the minimum x- and y-value in each interval),
DATACOMPRESS_MAX (use the maximum x- and y-value in each interval), and DATACOMPRESS_MINMAX
(use the minimum and maximum x- and y-value in each interval). The DATACOMPRESS_MINMAX compression
type is best used when the compressed data values number more than 1000, where adjacent data values
in the rendered chart differ by one horizontal pixel or less. The DATACOMPRESS_MINMAX compression
type will guarantee that the chart displays the same minimums and maximums as the original dataset.ctypey
- The compression type for the y-values. Use one of the data compression type
constants.ctypez
- The compression type for the z-values. Use one of the data compression type
constants.timefield
- All values with the same timefield value are compressed to a single value.
Use one of the time field constants in the ChartCalendar class - ChartObj.YEAR, ChartObj.MONTH,
ChartCalendar.WEEK_OF_YEAR, ChartCalendar.WEEK_OF_MONTH, ChartObj.DAY_OF_YEAR, ChartObj.HOUR_OF_DAY,
ChartObj.MINUTE.startindex
- The starting point, inclusive, in the source dataset for the data compression.endindex
- The ending index, inclusive, in the source dataset for the data compression.newname
- The string name for the new dataset.
public SimpleDataset getFastClipDataset(java.lang.String s, PhysicalCoordinates transform, int fastclipmode, java.lang.Integer fastclipoffset)
getFastClipDataset
in class SimpleDataset
s
- A string specifying the new name of the dataset.transform
- The transform that the dataset is clipped against.fastclipmode
- Specifies if the data is clipped against the x-coordinate (FASTCLIP_X,
FASTCLIP_Y). )fastclipoffset
- Returns the start offset of the fast clip data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |