Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
org.jfree.data.xy.AbstractXYZDataset
org.jfree.data.contour.DefaultContourDataset
ContourDataset
interface.
Field Summary | |
protected Comparable |
|
protected int[] |
|
protected Number[] |
|
protected Number[] |
|
protected Number[] |
|
Constructor Summary | |
| |
|
Method Summary | |
static Object[] |
|
static Object[][] |
|
int |
|
double |
|
double |
|
double |
|
int |
|
Comparable |
|
Number |
|
int[] |
|
Number |
|
Number[] |
|
Number |
|
Number[] |
|
Number |
|
Range |
|
Number[] |
|
int[] |
|
int |
|
int |
|
int |
|
void |
|
boolean |
|
void |
|
Methods inherited from class org.jfree.data.xy.AbstractXYZDataset | |
getZValue |
Methods inherited from class org.jfree.data.xy.AbstractXYDataset | |
getDomainOrder , getXValue , getYValue |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset | |
getSeriesCount , getSeriesKey , indexOf , seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener , clone , fireDatasetChanged , getGroup , hasListener , notifyListeners , removeChangeListener , setGroup , validateObject |
public DefaultContourDataset(Comparable seriesKey, Object[] xData, Object[] yData, Object[] zData)
Constructs a new dataset with the given data.
- Parameters:
seriesKey
- the series key.xData
- the x values.yData
- the y values.zData
- the z values.
public static Object[] formObjectArray(double[] data)
Creates an object array from an array of doubles.
- Parameters:
data
- the data.
- Returns:
- An array of
Double
objects.
public static Object[][] formObjectArray(double[][] data)
Creates an object array from an array of doubles.
- Parameters:
data
- the data.
- Returns:
- An array of
Double
objects.
public int getItemCount(int series)
Returns the number of items in the specified series. This method is provided to satisfy theXYDataset
interface implementation.
- Specified by:
- getItemCount in interface XYDataset
- Parameters:
series
- must be zero, as this dataset only supports one series.
- Returns:
- The item count.
public double getMaxZValue()
Returns the maximum z-value.
- Specified by:
- getMaxZValue in interface ContourDataset
- Returns:
- The maximum z-value.
public double getMinZValue()
Returns the minimum z-value.
- Specified by:
- getMinZValue in interface ContourDataset
- 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.minY
- the minimum y value.maxX
- the maximum x value.maxY
- the maximum y value.
- Returns:
- The minimum z-value.
public int getSeriesCount()
Returns the number of series. Required by XYDataset interface (this will always return 1)
- Specified by:
- getSeriesCount in interface SeriesDataset
- Overrides:
- getSeriesCount in interface AbstractSeriesDataset
- Returns:
- 1.
public Comparable getSeriesKey(int series)
Returns the name of the specified series. Method provided to satisfy the XYDataset interface implementation
- Specified by:
- getSeriesKey in interface SeriesDataset
- Overrides:
- getSeriesKey in interface AbstractSeriesDataset
- Parameters:
series
- must be zero.
- Returns:
- The series name.
public Number getX(int series, int item)
Returns the x value for the specified series and index (zero-based indices). Required by theXYDataset
.
- Parameters:
series
- must be zero;item
- the item index (zero-based).
- Returns:
- The x value.
public int[] getXIndices()
Returns the index of the xvalues.
- Specified by:
- getXIndices in interface ContourDataset
- Returns:
- The x values.
public Number getXValue(int item)
Returns an x value.
- Parameters:
item
- the item index (zero-based).
- Returns:
- The X value.
public Number[] getXValues()
Returns the x values.
- Specified by:
- getXValues in interface ContourDataset
- Returns:
- The x values.
public Number getY(int series, int item)
Returns the y value for the specified series and index (zero-based indices). Required by theXYDataset
.
- Parameters:
series
- the series index (must be zero for this dataset).item
- the item index (zero-based).
- Returns:
- The Y value.
public Number[] getYValues()
Returns a Number array containing all y values.
- Specified by:
- getYValues in interface ContourDataset
- Returns:
- The Y values.
public Number getZ(int series, int item)
Returns the z value for the specified series and index (zero-based indices). Required by theXYDataset
- Specified by:
- getZ in interface XYZDataset
- Parameters:
series
- the series index (must be zero for this dataset).item
- the item index (zero-based).
- Returns:
- The Z value.
public Range getZValueRange(Range x, Range y)
Returns the maximum z-value within visible region of plot.
- Specified by:
- getZValueRange in interface ContourDataset
- Parameters:
x
- the x range.y
- the y range.
- Returns:
- The z range.
public Number[] getZValues()
Returns a Number array containing all z values.
- Specified by:
- getZValues in interface ContourDataset
- Returns:
- The Z values.
public int[] indexX()
Returns an int array contain the index into the x values.
- Specified by:
- indexX in interface ContourDataset
- Returns:
- The X values.
public int indexX(int k)
Given index k, returns the column index containing k.
- Parameters:
k
- index of interest.
- Returns:
- The column index.
public int indexY(int k)
Given index k, return the row index containing k.
- Parameters:
k
- index of interest.
- Returns:
- The row index.
public int indexZ(int i, int j)
Given column and row indices, returns the k index.
- Parameters:
i
- index of along x-axis.j
- index of along y-axis.
- Returns:
- The Z index.
public void initialize(Object[] xData, Object[] yData, Object[] zData)
Initialises the dataset.
- Parameters:
xData
- the x values.yData
- the y values.zData
- the z values.
public boolean isDateAxis(int axisNumber)
Returns true if axis are dates.
- Specified by:
- isDateAxis in interface ContourDataset
- Parameters:
axisNumber
- The axis where 0-x, 1-y, and 2-z.
- Returns:
- A boolean.
public void setSeriesKeys(Comparable[] seriesKeys)
Sets the names of the series in the data source.
- Parameters:
seriesKeys
- the keys of the series in the data source.