org.jfree.data.contour
public class DefaultContourDataset extends AbstractXYZDataset implements ContourDataset
Deprecated: This class is no longer supported (as of version 1.0.4). If you are creating contour plots, please try to use XYPlot and XYBlockRenderer.
A convenience class that provides a default implementation of the ContourDataset interface.Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
DefaultContourDataset()
Creates a new dataset, initially empty. | |
DefaultContourDataset(Comparable seriesKey, Object[] xData, Object[] yData, Object[] zData)
Constructs a new dataset with the given data.
|
Method Summary | |
---|---|
static Object[][] | formObjectArray(double[][] data)
Creates an object array from an array of doubles.
|
static Object[] | formObjectArray(double[] data)
Creates an object array from an array of doubles.
|
int | getItemCount(int series)
Returns the number of items in the specified series. |
double | getMaxZValue()
Returns the maximum z-value.
|
double | getMinZValue()
Returns the minimum z-value.
|
double | getMinZValue(double minX, double minY, double maxX, double maxY)
Returns the minimum z-value.
|
int | getSeriesCount()
Returns the number of series.
|
Comparable | getSeriesKey(int series)
Returns the name of the specified series.
|
Number | getX(int series, int item)
Returns the x value for the specified series and index (zero-based
indices). |
int[] | getXIndices()
Returns the index of the xvalues.
|
Number | getXValue(int item)
Returns an x value.
|
Number[] | getXValues()
Returns the x values.
|
Number | getY(int series, int item)
Returns the y value for the specified series and index (zero-based
indices). |
Number[] | getYValues()
Returns a Number array containing all y values.
|
Number | getZ(int series, int item)
Returns the z value for the specified series and index (zero-based
indices). |
Range | getZValueRange(Range x, Range y)
Returns the maximum z-value within visible region of plot.
|
Number[] | getZValues()
Returns a Number array containing all z values.
|
int[] | indexX()
Returns an int array contain the index into the x values.
|
int | indexX(int k)
Given index k, returns the column index containing k.
|
int | indexY(int k)
Given index k, return the row index containing k.
|
int | indexZ(int i, int j)
Given column and row indices, returns the k index.
|
void | initialize(Object[] xData, Object[] yData, Object[] zData)
Initialises the dataset.
|
boolean | isDateAxis(int axisNumber)
Returns true if axis are dates.
|
void | setSeriesKeys(Comparable[] seriesKeys)
Sets the names of the series in the data source.
|
Parameters: seriesKey the series key. xData the x values. yData the y values. zData the z values.
Parameters: data the data.
Returns: An array of Double
objects.
Parameters: data the data.
Returns: An array of Double
objects.
Parameters: series must be zero, as this dataset only supports one series.
Returns: The item count.
Returns: The maximum z-value.
Returns: The minimum z-value.
Parameters: minX the minimum x value. minY the minimum y value. maxX the maximum x value. maxY the maximum y value.
Returns: The minimum z-value.
Required by XYDataset interface (this will always return 1)
Returns: 1.
Parameters: series must be zero.
Returns: The series name.
Parameters: series must be zero; item the item index (zero-based).
Returns: The x value.
Returns: The x values.
Parameters: item the item index (zero-based).
Returns: The X value.
Returns: The x values.
Parameters: series the series index (must be zero for this dataset). item the item index (zero-based).
Returns: The Y value.
Returns: The Y values.
Parameters: series the series index (must be zero for this dataset). item the item index (zero-based).
Returns: The Z value.
Parameters: x the x range. y the y range.
Returns: The z range.
Returns: The Z values.
Returns: The X values.
Parameters: k index of interest.
Returns: The column index.
Parameters: k index of interest.
Returns: The row index.
Parameters: i index of along x-axis. j index of along y-axis.
Returns: The Z index.
Parameters: xData the x values. yData the y values. zData the z values.
Parameters: axisNumber The axis where 0-x, 1-y, and 2-z.
Returns: A boolean.
Parameters: seriesKeys the keys of the series in the data source.