Package org.jfree.data.general
Class HeatMapUtils
java.lang.Object
org.jfree.data.general.HeatMapUtils
A utility class for the
HeatMapDataset.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagecreateHeatMapImage(HeatMapDataset dataset, PaintScale paintScale) Creates an image that displays the values from the specified dataset.static XYDatasetextractColumnFromHeatMapDataset(HeatMapDataset dataset, int column, Comparable seriesName) Returns a dataset containing one series that holds a copy of the (y, z) data from one column (x-index) of the specified dataset.static XYDatasetextractRowFromHeatMapDataset(HeatMapDataset dataset, int row, Comparable seriesName) Returns a dataset containing one series that holds a copy of the (x, z) data from one row (y-index) of the specified dataset.
-
Constructor Details
-
HeatMapUtils
public HeatMapUtils()
-
-
Method Details
-
extractRowFromHeatMapDataset
public static XYDataset extractRowFromHeatMapDataset(HeatMapDataset dataset, int row, Comparable seriesName) Returns a dataset containing one series that holds a copy of the (x, z) data from one row (y-index) of the specified dataset.- Parameters:
dataset- the dataset (nullnot permitted).row- the row (y) index.seriesName- the series name/key (nullnot permitted).- Returns:
- The dataset.
-
extractColumnFromHeatMapDataset
public static XYDataset extractColumnFromHeatMapDataset(HeatMapDataset dataset, int column, Comparable seriesName) Returns a dataset containing one series that holds a copy of the (y, z) data from one column (x-index) of the specified dataset.- Parameters:
dataset- the dataset (nullnot permitted).column- the column (x) index.seriesName- the series name (nullnot permitted).- Returns:
- The dataset.
-
createHeatMapImage
Creates an image that displays the values from the specified dataset.- Parameters:
dataset- the dataset (nullnot permitted).paintScale- the paint scale for the z-values (nullnot permitted).- Returns:
- A buffered image.
-