List of usage examples for org.jfree.data.general HeatMapDataset getXValue
public double getXValue(int xIndex);
From source file:org.jfree.data.general.HeatMapUtilities.java
/** * Returns a dataset containing one series that holds a copy of the (x, z) * data from one row (y-index) of the specified dataset. * * @param dataset the dataset (<code>null</code> not permitted). * @param row the row (y) index.//from w ww.j a v a 2 s . c o m * @param seriesName the series name/key (<code>null</code> not permitted). * * @return The dataset. */ public static XYDataset extractRowFromHeatMapDataset(HeatMapDataset dataset, int row, Comparable seriesName) { XYSeries series = new XYSeries(seriesName); int cols = dataset.getXSampleCount(); for (int c = 0; c < cols; c++) { series.add(dataset.getXValue(c), dataset.getZValue(c, row)); } XYSeriesCollection result = new XYSeriesCollection(series); return result; }