Package org.jfree.data.contour
Class NonGridContourDataset
-
- All Implemented Interfaces:
ObjectInputValidation
,Serializable
,Cloneable
,EventListener
,ContourDataset
,Dataset
,SeriesChangeListener
,SeriesDataset
,XYDataset
,XYZDataset
public class NonGridContourDataset extends DefaultContourDataset
Deprecated.This class is no longer supported (as of version 1.0.4). If you are creating contour plots, please try to useXYPlot
andXYBlockRenderer
.A convenience class that extends theDefaultContourDataset
to accommodate non-grid data.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NonGridContourDataset()
Deprecated.Default constructor.NonGridContourDataset(String seriesName, Object[] xData, Object[] yData, Object[] zData)
Deprecated.Constructor for NonGridContourDataset.NonGridContourDataset(String seriesName, Object[] xData, Object[] yData, Object[] zData, int numX, int numY, int power)
Deprecated.Constructor for NonGridContourDataset.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
buildGrid(int numX, int numY, int power)
Deprecated.Builds a regular grid.protected double
distance(double xDataPt, double yDataPt, double xGrdPt, double yGrdPt)
Deprecated.Calculates the distance between two points.-
Methods inherited from class org.jfree.data.contour.DefaultContourDataset
formObjectArray, formObjectArray, getItemCount, getMaxZValue, getMinZValue, getMinZValue, getSeriesCount, getSeriesKey, getX, getXIndices, getXValue, getXValues, getY, getYValues, getZ, getZValueRange, getZValues, indexX, indexX, indexY, indexZ, initialize, isDateAxis, setSeriesKeys
-
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
indexOf, seriesChanged
-
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Methods inherited from interface org.jfree.data.general.SeriesDataset
indexOf
-
Methods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder, getXValue, getYValue
-
Methods inherited from interface org.jfree.data.xy.XYZDataset
getZValue
-
-
-
-
Constructor Detail
-
NonGridContourDataset
public NonGridContourDataset()
Deprecated.Default constructor.
-
NonGridContourDataset
public NonGridContourDataset(String seriesName, Object[] xData, Object[] yData, Object[] zData)
Deprecated.Constructor for NonGridContourDataset. Uses default values for grid dimensions and weighting.- Parameters:
seriesName
- the series name.xData
- the x values.yData
- the y values.zData
- the z values.
-
NonGridContourDataset
public NonGridContourDataset(String seriesName, Object[] xData, Object[] yData, Object[] zData, int numX, int numY, int power)
Deprecated.Constructor for NonGridContourDataset.- Parameters:
seriesName
- the series name.xData
- the x values.yData
- the y values.zData
- the z values.numX
- number grid cells in along the x-axisnumY
- number grid cells in along the y-axispower
- exponent for inverse distance weighting
-
-
Method Detail
-
buildGrid
protected void buildGrid(int numX, int numY, int power)
Deprecated.Builds a regular grid. Maps the non-grid data into the regular grid using an inverse distance between grid and non-grid points. Weighting of distance can be controlled by setting through the power parameter that controls the exponent used on the distance weighting (e.g., distance^power).- Parameters:
numX
- number grid points in along the x-axisnumY
- number grid points in along the y-axispower
- exponent for inverse distance weighting
-
distance
protected double distance(double xDataPt, double yDataPt, double xGrdPt, double yGrdPt)
Deprecated.Calculates the distance between two points.- Parameters:
xDataPt
- the x coordinate.yDataPt
- the y coordinate.xGrdPt
- the x grid coordinate.yGrdPt
- the y grid coordinate.- Returns:
- The distance between two points.
-
-