java.lang.Object | ||
↳ | org.jfree.data.general.AbstractDataset | |
↳ | org.jfree.data.general.DefaultHeatMapDataset |
A default implementation of the HeatMapDataset
interface.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new dataset where all the z-values are initially 0.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an independent copy of this dataset.
| |||||||||||
Tests this dataset for equality with an arbitrary object.
| |||||||||||
Returns the highest x-value represented in this dataset.
| |||||||||||
Returns the highest y-value represented in this dataset.
| |||||||||||
Returns the lowest x-value represented in this dataset.
| |||||||||||
Returns the lowest y-value represented in this dataset.
| |||||||||||
Returns the number of x values across the width of the dataset.
| |||||||||||
A convenience method that returns the x-value for the given index.
| |||||||||||
Returns the number of y values (or samples) for the dataset.
| |||||||||||
A convenience method that returns the y-value for the given index.
| |||||||||||
Returns the z-value at the specified sample position in the dataset.
| |||||||||||
Returns the z-value at the specified sample position in the dataset.
| |||||||||||
Updates a z-value in the dataset and, if requested, sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Updates a z-value in the dataset and sends a
DatasetChangeEvent
to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new dataset where all the z-values are initially 0. This is a fixed size array of z-values.
xSamples | the number of x-values. |
---|---|
ySamples | the number of y-values |
minX | 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. |
Tests this dataset for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the highest x-value represented in this dataset. A requirement of this interface is that this method must never return infinite or Double.NAN values.
Returns the highest y-value represented in this dataset. A requirement of this interface is that this method must never return infinite or Double.NAN values.
Returns the lowest x-value represented in this dataset. A requirement of this interface is that this method must never return infinite or Double.NAN values.
Returns the lowest y-value represented in this dataset. A requirement of this interface is that this method must never return infinite or Double.NAN values.
Returns the number of x values across the width of the dataset. The
values are evenly spaced between getMinimumXValue()
and
getMaximumXValue()
.
A convenience method that returns the x-value for the given index.
xIndex | the xIndex. |
---|
Returns the number of y values (or samples) for the dataset. The
values are evenly spaced between getMinimumYValue()
and
getMaximumYValue()
.
A convenience method that returns the y-value for the given index.
yIndex | the yIndex. |
---|
Returns the z-value at the specified sample position in the dataset.
In this implementation, where the underlying values are stored in an
array of double primitives, you should avoid using this method and
use getZValue(int, int)
instead.
xIndex | the position of the x sample in the dataset. |
---|---|
yIndex | the position of the y sample in the dataset. |
Returns the z-value at the specified sample position in the dataset. For a missing or unknown value, this method should return Double.NAN.
xIndex | the position of the x sample in the dataset. |
---|---|
yIndex | the position of the y sample in the dataset. |
Updates a z-value in the dataset and, if requested, sends a
DatasetChangeEvent
to all registered listeners.
xIndex | the x-index. |
---|---|
yIndex | the y-index. |
z | the new z-value. |
notify | notify listeners? |
Updates a z-value in the dataset and sends a DatasetChangeEvent
to all registered listeners.
xIndex | the x-index. |
---|---|
yIndex | the y-index. |
z | the new z-value. |