XYPlot and
XYBlockRenderer.public class DefaultContourDataset extends AbstractXYZDataset implements ContourDataset
ContourDataset interface.| Modifier and Type | Field and Description |
|---|---|
protected Comparable |
seriesKey
Deprecated.
The series name (this dataset supports only one series).
|
protected int[] |
xIndex
Deprecated.
The index for the start of each column in the data.
|
protected Number[] |
xValues
Deprecated.
Storage for the x values.
|
protected Number[] |
yValues
Deprecated.
Storage for the y values.
|
protected Number[] |
zValues
Deprecated.
Storage for the z values.
|
| Constructor and Description |
|---|
DefaultContourDataset()
Deprecated.
Creates a new dataset, initially empty.
|
DefaultContourDataset(Comparable seriesKey,
Object[] xData,
Object[] yData,
Object[] zData)
Deprecated.
Constructs a new dataset with the given data.
|
| Modifier and Type | Method and Description |
|---|---|
static Object[] |
formObjectArray(double[] data)
Deprecated.
Creates an object array from an array of doubles.
|
static Object[][] |
formObjectArray(double[][] data)
Deprecated.
Creates an object array from an array of doubles.
|
int |
getItemCount(int series)
Deprecated.
Returns the number of items in the specified series.
|
double |
getMaxZValue()
Deprecated.
Returns the maximum z-value.
|
double |
getMinZValue()
Deprecated.
Returns the minimum z-value.
|
double |
getMinZValue(double minX,
double minY,
double maxX,
double maxY)
Deprecated.
Returns the minimum z-value.
|
int |
getSeriesCount()
Deprecated.
Returns the number of series.
|
Comparable |
getSeriesKey(int series)
Deprecated.
Returns the name of the specified series.
|
Number |
getX(int series,
int item)
Deprecated.
Returns the x value for the specified series and index (zero-based
indices).
|
int[] |
getXIndices()
Deprecated.
Returns the index of the xvalues.
|
Number |
getXValue(int item)
Deprecated.
Returns an x value.
|
Number[] |
getXValues()
Deprecated.
Returns the x values.
|
Number |
getY(int series,
int item)
Deprecated.
Returns the y value for the specified series and index (zero-based
indices).
|
Number[] |
getYValues()
Deprecated.
Returns a Number array containing all y values.
|
Number |
getZ(int series,
int item)
Deprecated.
Returns the z value for the specified series and index (zero-based
indices).
|
Range |
getZValueRange(Range x,
Range y)
Deprecated.
Returns the maximum z-value within visible region of plot.
|
Number[] |
getZValues()
Deprecated.
Returns a Number array containing all z values.
|
int[] |
indexX()
Deprecated.
Returns an int array contain the index into the x values.
|
int |
indexX(int k)
Deprecated.
Given index k, returns the column index containing k.
|
int |
indexY(int k)
Deprecated.
Given index k, return the row index containing k.
|
int |
indexZ(int i,
int j)
Deprecated.
Given column and row indices, returns the k index.
|
void |
initialize(Object[] xData,
Object[] yData,
Object[] zData)
Deprecated.
Initialises the dataset.
|
boolean |
isDateAxis(int axisNumber)
Deprecated.
Returns true if axis are dates.
|
void |
setSeriesKeys(Comparable[] seriesKeys)
Deprecated.
Sets the names of the series in the data source.
|
getZValuegetDomainOrder, getXValue, getYValueindexOf, seriesChangedaddChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetZValuegetDomainOrder, getXValue, getYValueindexOfaddChangeListener, getGroup, removeChangeListener, setGroupprotected Comparable seriesKey
protected Number[] xValues
protected Number[] yValues
protected Number[] zValues
protected int[] xIndex
public DefaultContourDataset()
public DefaultContourDataset(Comparable seriesKey, Object[] xData, Object[] yData, Object[] zData)
seriesKey - the series key.xData - the x values.yData - the y values.zData - the z values.public void initialize(Object[] xData, Object[] yData, Object[] zData)
xData - the x values.yData - the y values.zData - the z values.public static Object[][] formObjectArray(double[][] data)
data - the data.Double objects.public static Object[] formObjectArray(double[] data)
data - the data.Double objects.public int getItemCount(int series)
XYDataset interface implementation.getItemCount in interface XYDatasetseries - must be zero, as this dataset only supports one series.public double getMaxZValue()
getMaxZValue in interface ContourDatasetpublic double getMinZValue()
getMinZValue in interface ContourDatasetpublic Range getZValueRange(Range x, Range y)
getZValueRange in interface ContourDatasetx - the x range.y - the y range.public double getMinZValue(double minX,
double minY,
double maxX,
double maxY)
minX - the minimum x value.minY - the minimum y value.maxX - the maximum x value.maxY - the maximum y value.public int getSeriesCount()
Required by XYDataset interface (this will always return 1)
getSeriesCount in interface SeriesDatasetgetSeriesCount in class AbstractSeriesDatasetpublic Comparable getSeriesKey(int series)
getSeriesKey in interface SeriesDatasetgetSeriesKey in class AbstractSeriesDatasetseries - must be zero.public int[] getXIndices()
getXIndices in interface ContourDatasetpublic Number[] getXValues()
getXValues in interface ContourDatasetpublic Number getX(int series, int item)
XYDataset.public Number getXValue(int item)
item - the item index (zero-based).public Number[] getYValues()
getYValues in interface ContourDatasetpublic Number getY(int series, int item)
XYDataset.public Number[] getZValues()
getZValues in interface ContourDatasetpublic Number getZ(int series, int item)
XYDatasetgetZ in interface XYZDatasetseries - the series index (must be zero for this dataset).item - the item index (zero-based).public int[] indexX()
indexX in interface ContourDatasetpublic int indexX(int k)
k - index of interest.public int indexY(int k)
k - index of interest.public int indexZ(int i,
int j)
i - index of along x-axis.j - index of along y-axis.public boolean isDateAxis(int axisNumber)
isDateAxis in interface ContourDatasetaxisNumber - The axis where 0-x, 1-y, and 2-z.public void setSeriesKeys(Comparable[] seriesKeys)
seriesKeys - the keys of the series in the data source.Copyright © 2001-2014 JFree.org. All Rights Reserved.