XYPlot
and
XYBlockRenderer
.public class DefaultContourDataset extends AbstractXYZDataset implements ContourDataset
ContourDataset
interface.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.
|
getZValue
getDomainOrder, getXValue, getYValue
indexOf, seriesChanged
addChangeListener, clone, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getZValue
getDomainOrder, getXValue, getYValue
indexOf
addChangeListener, getGroup, removeChangeListener, setGroup
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 XYDataset
series
- must be zero, as this dataset only supports one series.public double getMaxZValue()
getMaxZValue
in interface ContourDataset
public double getMinZValue()
getMinZValue
in interface ContourDataset
public Range getZValueRange(Range x, Range y)
getZValueRange
in interface ContourDataset
x
- 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 SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public Comparable getSeriesKey(int series)
getSeriesKey
in interface SeriesDataset
getSeriesKey
in class AbstractSeriesDataset
series
- must be zero.public int[] getXIndices()
getXIndices
in interface ContourDataset
public Number[] getXValues()
getXValues
in interface ContourDataset
public Number getX(int series, int item)
XYDataset
.public Number getXValue(int item)
item
- the item index (zero-based).public Number[] getYValues()
getYValues
in interface ContourDataset
public Number getY(int series, int item)
XYDataset
.public Number[] getZValues()
getZValues
in interface ContourDataset
public Number getZ(int series, int item)
XYDataset
getZ
in interface XYZDataset
series
- the series index (must be zero for this dataset).item
- the item index (zero-based).public int[] indexX()
indexX
in interface ContourDataset
public 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 ContourDataset
axisNumber
- 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.Jas4pp 1.5 © Java Analysis Studio for Particle Physics