|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.data.general.AbstractDataset de.laures.cewolf.jfree.DefaultHeatMapDataset
public class DefaultHeatMapDataset
A default implementation of the HeatMapDataset
interface.
Constructor Summary | |
---|---|
DefaultHeatMapDataset(int xSamples,
int ySamples,
double minX,
double maxX,
double minY,
double maxY)
Creates a new dataset where all the z-values are initially 0. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns an independent copy of this dataset. |
static double[][] |
clone(double[][] source)
Returns a clone of the specified array. |
static boolean |
equal(double[][] a,
double[][] b)
Tests two arrays for equality. |
double |
getMaximumXValue()
Returns the highest x-value represented in this dataset. |
double |
getMaximumYValue()
Returns the highest y-value represented in this dataset. |
double |
getMinimumXValue()
Returns the lowest x-value represented in this dataset. |
double |
getMinimumYValue()
Returns the lowest y-value represented in this dataset. |
int |
getXSampleCount()
Returns the number of x values across the width of the dataset. |
double |
getXValue(int xIndex)
A convenience method that returns the x-value for the given index. |
int |
getYSampleCount()
Returns the number of y values (or samples) for the dataset. |
double |
getYValue(int yIndex)
A convenience method that returns the y-value for the given index. |
java.lang.Number |
getZ(int xIndex,
int yIndex)
Returns the z-value at the specified sample position in the dataset. |
double |
getZValue(int xIndex,
int yIndex)
Returns the z-value at the specified sample position in the dataset. |
void |
setZValue(int xIndex,
int yIndex,
double z)
Updates a z-value in the dataset and sends a DatasetChangeEvent to all registered listeners. |
void |
setZValue(int xIndex,
int yIndex,
double z,
boolean notify)
Updates a z-value in the dataset and, if requested, sends a DatasetChangeEvent to all registered listeners. |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultHeatMapDataset(int xSamples, int ySamples, double minX, double maxX, double minY, double maxY)
xSamples
- the number of x-values.ySamples
- the number of y-valuesminX
- the minimum x-value in the dataset.maxX
- the maximum x-value in the dataset.minY
- the minimum y-value in the dataset.maxY
- the maximum y-value in the dataset.Method Detail |
---|
public int getXSampleCount()
getMinimumXValue()
and getMaximumXValue()
.
getXSampleCount
in interface HeatMapDataset
public int getYSampleCount()
getMinimumYValue()
and getMaximumYValue()
.
getYSampleCount
in interface HeatMapDataset
public double getMinimumXValue()
getMinimumXValue
in interface HeatMapDataset
public double getMaximumXValue()
getMaximumXValue
in interface HeatMapDataset
public double getMinimumYValue()
getMinimumYValue
in interface HeatMapDataset
public double getMaximumYValue()
getMaximumYValue
in interface HeatMapDataset
public double getXValue(int xIndex)
getXValue
in interface HeatMapDataset
xIndex
- the xIndex.
public double getYValue(int yIndex)
getYValue
in interface HeatMapDataset
yIndex
- the yIndex.
public double getZValue(int xIndex, int yIndex)
getZValue
in interface HeatMapDataset
xIndex
- the position of the x sample in the dataset.yIndex
- the position of the y sample in the dataset.
public java.lang.Number getZ(int xIndex, int yIndex)
getZValue(int, int)
instead.
getZ
in interface HeatMapDataset
xIndex
- the position of the x sample in the dataset.yIndex
- the position of the y sample in the dataset.
public void setZValue(int xIndex, int yIndex, double z)
xIndex
- the x-index.yIndex
- the y-index.z
- the new z-value.public void setZValue(int xIndex, int yIndex, double z, boolean notify)
xIndex
- the x-index.yIndex
- the y-index.z
- the new z-value.notify
- notify listeners?public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class org.jfree.data.general.AbstractDataset
java.lang.CloneNotSupportedException
public static boolean equal(double[][] a, double[][] b)
a
- the first array (null
permitted).b
- the second array (null
permitted).
public static double[][] clone(double[][] source)
source
- the source array (null
not permitted).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |