org.jfree.data.contour
Class NonGridContourDataset
- Cloneable, ContourDataset, Dataset, EventListener, ObjectInputValidation, Serializable, SeriesChangeListener, SeriesDataset, XYDataset, XYZDataset
NonGridContourDataset()- Default constructor.
|
NonGridContourDataset(String seriesName, Object[] xData, Object[] yData, Object[] zData)- Constructor for NonGridContourDataset.
|
NonGridContourDataset(String seriesName, Object[] xData, Object[] yData, Object[] zData, int numX, int numY, int power)- Constructor for NonGridContourDataset.
|
protected void | buildGrid(int numX, int numY, int power)- Builds a regular grid.
|
protected double | distance(double xDataPt, double yDataPt, double xGrdPt, double yGrdPt)- Calculates the distance between two points.
|
formObjectArray, formObjectArray, getItemCount, getMaxZValue, getMinZValue, getMinZValue, getSeriesCount, getSeriesKey, getX, getXIndices, getXValue, getXValues, getY, getYValues, getZ, getZValueRange, getZValues, indexX, indexX, indexY, indexZ, initialize, isDateAxis, setSeriesKeys |
NonGridContourDataset
public NonGridContourDataset(String seriesName,
Object[] xData,
Object[] yData,
Object[] zData) Constructor for NonGridContourDataset. Uses default values for grid
dimensions and weighting.
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) Constructor for NonGridContourDataset.
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
buildGrid
protected void buildGrid(int numX,
int numY,
int power) 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).
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) Calculates the distance between two points.
xDataPt - the x coordinate.yDataPt - the y coordinate.xGrdPt - the x grid coordinate.yGrdPt - the y grid coordinate.
- The distance between two points.