|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.model.AbstractChartDataModel
com.approximatrix.charting.model.threedimensional.AbstractDotPlotDataModel
com.approximatrix.charting.model.threedimensional.ColorDotPlotDataModel
com.approximatrix.charting.model.threedimensional.ColorScaleDotPlotDataModel
public class ColorScaleDotPlotDataModel
Extension of ColorDotPlotModel that allows the assignment of true numeric Z data to be input along with a ColorScale object to determine how the Z data will be plotted. The actual Z data is maintained in the model. All Z data is stored as double values.
| Field Summary | |
|---|---|
protected double |
maxZ
The largest Z value |
protected double |
minZ
The smallest Z value |
protected double[] |
z
The array of z data |
| Fields inherited from class com.approximatrix.charting.model.threedimensional.ColorDotPlotDataModel |
|---|
c, x, y |
| Fields inherited from class com.approximatrix.charting.model.threedimensional.AbstractDotPlotDataModel |
|---|
constraints, dataImage, maxX, maxY, minX, minY |
| Fields inherited from class com.approximatrix.charting.model.AbstractChartDataModel |
|---|
autoscale, listener, maxcolumn, maxvalue, mincolumn, minvalue |
| Constructor Summary | |
|---|---|
ColorScaleDotPlotDataModel(double[] x,
double[] y,
double[] z,
ColorScale scale)
Constructor that accepts data as three double arrays and a valid ColorScale object |
|
ColorScaleDotPlotDataModel(double[] x,
double[] y,
int[] z,
ColorScale scale)
Constructor that accepts data as two double arrays for x and y coordinates and an array of integers for z data along with valid ColorScale object. |
|
ColorScaleDotPlotDataModel(int[] x,
int[] y,
double[] z,
ColorScale scale)
Constructor that accepts data as two integer arrays for x and y coordinates and an array of doubles for z data along with valid ColorScale object. |
|
ColorScaleDotPlotDataModel(int[] x,
int[] y,
int[] z,
ColorScale scale)
Constructor that accepts data as three integer arrays and a valid ColorScale object. |
|
| Method Summary | |
|---|---|
protected void |
scanRanges()
Override of the scanRanges() method to allow for scanning the Z axis data as well. |
private double[] |
toDouble(int[] z)
Small method to convert integer arrays to double arrays. |
| Methods inherited from class com.approximatrix.charting.model.threedimensional.ColorDotPlotDataModel |
|---|
buildImage, getColumnValueAt, getColumnValueAt, getDataSetLength, getDataSetNumber, getFirstColumnValue, getLastColumnValue, getOrderedValues, getValueAt, setResolution, setValueAt, setValueAt |
| Methods inherited from class com.approximatrix.charting.model.threedimensional.AbstractDotPlotDataModel |
|---|
getChartDataModelConstraints, getImage, getModelMaximumX, getModelMaximumY, getModelMinimumX, getModelMinimumY, getViewableImage, getXIndex, getXIndices, getYIndex, getYIndices, initializeImage, isColumnNumeric, scanRanges, setChartDataModelConstraints |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double[] z
protected double maxZ
protected double minZ
| Constructor Detail |
|---|
public ColorScaleDotPlotDataModel(double[] x,
double[] y,
double[] z,
ColorScale scale)
x - the x-axis datay - the y-axis dataz - the z-axis datascale - a ColorScale object to use when drawing the chart
public ColorScaleDotPlotDataModel(int[] x,
int[] y,
int[] z,
ColorScale scale)
x - the x-axis datay - the y-axis dataz - the z-axis datascale - a ColorScale object to use when drawing the chart
public ColorScaleDotPlotDataModel(int[] x,
int[] y,
double[] z,
ColorScale scale)
x - the x-axis datay - the y-axis dataz - the z-axis datascale - a ColorScale object to use when drawing the chart
public ColorScaleDotPlotDataModel(double[] x,
double[] y,
int[] z,
ColorScale scale)
x - the x-axis datay - the y-axis dataz - the z-axis datascale - a ColorScale object to use when drawing the chart| Method Detail |
|---|
private double[] toDouble(int[] z)
z - the integer data to convert
protected void scanRanges()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||