Package org.jfree.data.contour
Class DefaultContourDataset
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
- All Implemented Interfaces:
ObjectInputValidation,Serializable,Cloneable,EventListener,ContourDataset,Dataset,SeriesChangeListener,SeriesDataset,XYDataset,XYZDataset
- Direct Known Subclasses:
NonGridContourDataset
Deprecated.
A convenience class that provides a default implementation of the
ContourDataset interface.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ComparableDeprecated.The series name (this dataset supports only one series).protected int[]Deprecated.The index for the start of each column in the data.protected Number[]Deprecated.Storage for the x values.protected Number[]Deprecated.Storage for the y values.protected Number[]Deprecated.Storage for the z values. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new dataset, initially empty.DefaultContourDataset(Comparable seriesKey, Object[] xData, Object[] yData, Object[] zData) Deprecated.Constructs a new dataset with the given data. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.intgetItemCount(int series) Deprecated.Returns the number of items in the specified series.doubleDeprecated.Returns the maximum z-value.doubleDeprecated.Returns the minimum z-value.doublegetMinZValue(double minX, double minY, double maxX, double maxY) Deprecated.Returns the minimum z-value.intDeprecated.Returns the number of series.getSeriesKey(int series) Deprecated.Returns the name of the specified series.getX(int series, int item) Deprecated.Returns the x value for the specified series and index (zero-based indices).int[]Deprecated.Returns the index of the xvalues.getXValue(int item) Deprecated.Returns an x value.Number[]Deprecated.Returns the x values.getY(int series, int item) Deprecated.Returns the y value for the specified series and index (zero-based indices).Number[]Deprecated.Returns a Number array containing all y values.getZ(int series, int item) Deprecated.Returns the z value for the specified series and index (zero-based indices).getZValueRange(Range x, Range y) Deprecated.Returns the maximum z-value within visible region of plot.Number[]Deprecated.Returns a Number array containing all z values.int[]indexX()Deprecated.Returns an int array contain the index into the x values.intindexX(int k) Deprecated.Given index k, returns the column index containing k.intindexY(int k) Deprecated.Given index k, return the row index containing k.intindexZ(int i, int j) Deprecated.Given column and row indices, returns the k index.voidinitialize(Object[] xData, Object[] yData, Object[] zData) Deprecated.Initialises the dataset.booleanisDateAxis(int axisNumber) Deprecated.Returns true if axis are dates.voidsetSeriesKeys(Comparable[] seriesKeys) Deprecated.Sets the names of the series in the data source.Methods inherited from class org.jfree.data.xy.AbstractXYZDataset
getZValueMethods inherited from class org.jfree.data.xy.AbstractXYDataset
getDomainOrder, getXValue, getYValueMethods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChangedMethods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroupMethods inherited from interface org.jfree.data.general.SeriesDataset
indexOfMethods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder, getXValue, getYValueMethods inherited from interface org.jfree.data.xy.XYZDataset
getZValue
-
Field Details
-
seriesKey
Deprecated.The series name (this dataset supports only one series). -
xValues
Deprecated.Storage for the x values. -
yValues
Deprecated.Storage for the y values. -
zValues
Deprecated.Storage for the z values. -
xIndex
Deprecated.The index for the start of each column in the data.
-
-
Constructor Details
-
DefaultContourDataset
public DefaultContourDataset()Deprecated.Creates a new dataset, initially empty. -
DefaultContourDataset
Deprecated.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.
-
-
Method Details
-
initialize
Deprecated.Initialises the dataset.- Parameters:
xData- the x values.yData- the y values.zData- the z values.
-
formObjectArray
Deprecated.Creates an object array from an array of doubles.- Parameters:
data- the data.- Returns:
- An array of
Doubleobjects.
-
formObjectArray
Deprecated.Creates an object array from an array of doubles.- Parameters:
data- the data.- Returns:
- An array of
Doubleobjects.
-
getItemCount
Deprecated.Returns the number of items in the specified series. This method is provided to satisfy theXYDatasetinterface implementation.- Specified by:
getItemCountin interfaceXYDataset- Parameters:
series- must be zero, as this dataset only supports one series.- Returns:
- The item count.
-
getMaxZValue
Deprecated.Returns the maximum z-value.- Specified by:
getMaxZValuein interfaceContourDataset- Returns:
- The maximum z-value.
-
getMinZValue
Deprecated.Returns the minimum z-value.- Specified by:
getMinZValuein interfaceContourDataset- Returns:
- The minimum z-value.
-
getZValueRange
Deprecated.Returns the maximum z-value within visible region of plot.- Specified by:
getZValueRangein interfaceContourDataset- Parameters:
x- the x range.y- the y range.- Returns:
- The z range.
-
getMinZValue
Deprecated.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.
-
getSeriesCount
Deprecated.Returns the number of series.Required by XYDataset interface (this will always return 1)
- Specified by:
getSeriesCountin interfaceSeriesDataset- Specified by:
getSeriesCountin classAbstractSeriesDataset- Returns:
- 1.
-
getSeriesKey
Deprecated.Returns the name of the specified series. Method provided to satisfy the XYDataset interface implementation- Specified by:
getSeriesKeyin interfaceSeriesDataset- Specified by:
getSeriesKeyin classAbstractSeriesDataset- Parameters:
series- must be zero.- Returns:
- The series name.
-
getXIndices
Deprecated.Returns the index of the xvalues.- Specified by:
getXIndicesin interfaceContourDataset- Returns:
- The x values.
-
getXValues
Deprecated.Returns the x values.- Specified by:
getXValuesin interfaceContourDataset- Returns:
- The x values.
-
getX
Deprecated.Returns the x value for the specified series and index (zero-based indices). Required by theXYDataset. -
getXValue
Deprecated.Returns an x value.- Parameters:
item- the item index (zero-based).- Returns:
- The X value.
-
getYValues
Deprecated.Returns a Number array containing all y values.- Specified by:
getYValuesin interfaceContourDataset- Returns:
- The Y values.
-
getY
Deprecated.Returns the y value for the specified series and index (zero-based indices). Required by theXYDataset. -
getZValues
Deprecated.Returns a Number array containing all z values.- Specified by:
getZValuesin interfaceContourDataset- Returns:
- The Z values.
-
getZ
Deprecated.Returns the z value for the specified series and index (zero-based indices). Required by theXYDataset- Specified by:
getZin interfaceXYZDataset- Parameters:
series- the series index (must be zero for this dataset).item- the item index (zero-based).- Returns:
- The Z value.
-
indexX
Deprecated.Returns an int array contain the index into the x values.- Specified by:
indexXin interfaceContourDataset- Returns:
- The X values.
-
indexX
Deprecated.Given index k, returns the column index containing k.- Parameters:
k- index of interest.- Returns:
- The column index.
-
indexY
Deprecated.Given index k, return the row index containing k.- Parameters:
k- index of interest.- Returns:
- The row index.
-
indexZ
Deprecated.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.
-
isDateAxis
Deprecated.Returns true if axis are dates.- Specified by:
isDateAxisin interfaceContourDataset- Parameters:
axisNumber- The axis where 0-x, 1-y, and 2-z.- Returns:
- A boolean.
-
setSeriesKeys
Deprecated.Sets the names of the series in the data source.- Parameters:
seriesKeys- the keys of the series in the data source.
-
XYPlotandXYBlockRenderer.