| org.jfree.data.xy.AbstractXYZDataset org.jfree.data.contour.DefaultContourDataset
All known Subclasses: org.jfree.data.contour.NonGridContourDataset,
Field Summary | |
boolean[] | dateAxis Flags that track whether x, y and z are dates. | protected Comparable | seriesKey The series name (this dataset supports only one series). | protected int[] | xIndex The index for the start of each column in the data. | protected Number[] | xValues Storage for the x values. | protected Number[] | yValues Storage for the y values. | protected Number[] | zValues Storage for the z values. |
Method Summary | |
public static Object[][] | formObjectArray(double[][] data) Creates an object array from an array of doubles.
Parameters: data - the data. | public static Object[] | formObjectArray(double[] data) Creates an object array from an array of doubles.
Parameters: data - the data. | public int | getItemCount(int series) Returns the number of items in the specified series. | public double | getMaxZValue() Returns the maximum z-value. | public double | getMinZValue() Returns the minimum z-value. | public double | getMinZValue(double minX, double minY, double maxX, double maxY) Returns the minimum z-value.
Parameters: minX - the minimum x value. Parameters: minY - the minimum y value. Parameters: maxX - the maximum x value. Parameters: maxY - the maximum y value. | public int | getSeriesCount() Returns the number of series. | public Comparable | getSeriesKey(int series) Returns the name of the specified series.
Method provided to satisfy the XYDataset interface implementation
Parameters: series - must be zero. | public Number | getX(int series, int item) Returns the x value for the specified series and index (zero-based
indices). | public int[] | getXIndices() Returns the index of the xvalues. | public Number | getXValue(int item) Returns an x value.
Parameters: item - the item index (zero-based). | public Number[] | getXValues() Returns the x values. | public Number | getY(int series, int item) Returns the y value for the specified series and index (zero-based
indices). | public Number[] | getYValues() Returns a Number array containing all y values. | public Number | getZ(int series, int item) Returns the z value for the specified series and index (zero-based
indices). | public Range | getZValueRange(Range x, Range y) Returns the maximum z-value within visible region of plot.
Parameters: x - the x range. Parameters: y - the y range. | public Number[] | getZValues() Returns a Number array containing all z values. | public int[] | indexX() Returns an int array contain the index into the x values. | public int | indexX(int k) Given index k, returns the column index containing k.
Parameters: k - index of interest. | public int | indexY(int k) Given index k, return the row index containing k.
Parameters: k - index of interest. | public int | indexZ(int i, int j) Given column and row indices, returns the k index.
Parameters: i - index of along x-axis. Parameters: j - index of along y-axis. | public void | initialize(Object[] xData, Object[] yData, Object[] zData) Initialises the dataset. | public boolean | isDateAxis(int axisNumber) Returns true if axis are dates.
Parameters: axisNumber - The axis where 0-x, 1-y, and 2-z. | public void | setSeriesKeys(Comparable[] seriesKeys) Sets the names of the series in the data source. |
dateAxis | boolean[] dateAxis(Code) | | Flags that track whether x, y and z are dates.
|
seriesKey | protected Comparable seriesKey(Code) | | The series name (this dataset supports only one series).
|
xIndex | protected int[] xIndex(Code) | | The index for the start of each column in the data.
|
xValues | protected Number[] xValues(Code) | | Storage for the x values.
|
yValues | protected Number[] yValues(Code) | | Storage for the y values.
|
zValues | protected Number[] zValues(Code) | | Storage for the z values.
|
DefaultContourDataset | public DefaultContourDataset()(Code) | | Creates a new dataset, initially empty.
|
DefaultContourDataset | public DefaultContourDataset(Comparable seriesKey, Object[] xData, Object[] yData, Object[] zData)(Code) | | Constructs a new dataset with the given data.
Parameters: seriesKey - the series key. Parameters: xData - the x values. Parameters: yData - the y values. Parameters: zData - the z values. |
formObjectArray | public static Object[][] formObjectArray(double[][] data)(Code) | | Creates an object array from an array of doubles.
Parameters: data - the data. An array of Double objects. |
formObjectArray | public static Object[] formObjectArray(double[] data)(Code) | | Creates an object array from an array of doubles.
Parameters: data - the data. An array of Double objects. |
getItemCount | public int getItemCount(int series)(Code) | | Returns the number of items in the specified series. This method
is provided to satisfy the
XYDataset interface implementation.
Parameters: series - must be zero, as this dataset only supports one series. The item count. |
getMaxZValue | public double getMaxZValue()(Code) | | Returns the maximum z-value.
The maximum z-value. |
getMinZValue | public double getMinZValue()(Code) | | Returns the minimum z-value.
The minimum z-value. |
getMinZValue | public double getMinZValue(double minX, double minY, double maxX, double maxY)(Code) | | Returns the minimum z-value.
Parameters: minX - the minimum x value. Parameters: minY - the minimum y value. Parameters: maxX - the maximum x value. Parameters: maxY - the maximum y value. The minimum z-value. |
getSeriesCount | public int getSeriesCount()(Code) | | Returns the number of series.
Required by XYDataset interface (this will always return 1)
1. |
getSeriesKey | public Comparable getSeriesKey(int series)(Code) | | Returns the name of the specified series.
Method provided to satisfy the XYDataset interface implementation
Parameters: series - must be zero. The series name. |
getX | public Number getX(int series, int item)(Code) | | Returns the x value for the specified series and index (zero-based
indices). Required by the
XYDataset .
Parameters: series - must be zero; Parameters: item - the item index (zero-based). The x value. |
getXIndices | public int[] getXIndices()(Code) | | Returns the index of the xvalues.
The x values. |
getXValue | public Number getXValue(int item)(Code) | | Returns an x value.
Parameters: item - the item index (zero-based). The X value. |
getXValues | public Number[] getXValues()(Code) | | Returns the x values.
The x values. |
getY | public Number getY(int series, int item)(Code) | | Returns the y value for the specified series and index (zero-based
indices). Required by the
XYDataset .
Parameters: series - the series index (must be zero for this dataset). Parameters: item - the item index (zero-based). The Y value. |
getYValues | public Number[] getYValues()(Code) | | Returns a Number array containing all y values.
The Y values. |
getZ | public Number getZ(int series, int item)(Code) | | Returns the z value for the specified series and index (zero-based
indices). Required by the
XYDataset Parameters: series - the series index (must be zero for this dataset). Parameters: item - the item index (zero-based). The Z value. |
getZValueRange | public Range getZValueRange(Range x, Range y)(Code) | | Returns the maximum z-value within visible region of plot.
Parameters: x - the x range. Parameters: y - the y range. The z range. |
getZValues | public Number[] getZValues()(Code) | | Returns a Number array containing all z values.
The Z values. |
indexX | public int[] indexX()(Code) | | Returns an int array contain the index into the x values.
The X values. |
indexX | public int indexX(int k)(Code) | | Given index k, returns the column index containing k.
Parameters: k - index of interest. The column index. |
indexY | public int indexY(int k)(Code) | | Given index k, return the row index containing k.
Parameters: k - index of interest. The row index. |
indexZ | public int indexZ(int i, int j)(Code) | | Given column and row indices, returns the k index.
Parameters: i - index of along x-axis. Parameters: j - index of along y-axis. The Z index. |
initialize | public void initialize(Object[] xData, Object[] yData, Object[] zData)(Code) | | Initialises the dataset.
Parameters: xData - the x values. Parameters: yData - the y values. Parameters: zData - the z values. |
isDateAxis | public boolean isDateAxis(int axisNumber)(Code) | | Returns true if axis are dates.
Parameters: axisNumber - The axis where 0-x, 1-y, and 2-z. A boolean. |
setSeriesKeys | public void setSeriesKeys(Comparable[] seriesKeys)(Code) | | Sets the names of the series in the data source.
Parameters: seriesKeys - the keys of the series in the data source. |
Methods inherited from org.jfree.data.xy.AbstractXYZDataset | public double getZValue(int series, int item)(Code)(Java Doc)
|
|
|