、drawHeatMap()
メソッドをオーバーライドし(未検証)、draw()
を起動する前に別の境界の色を指定:
private void drawHeatMap(Graphics2D chartGraphics, double[][] data) {
…
Graphics2D heatMapGraphics = heatMapImage.createGraphics();
for (int x=0; x<noXCells; x++) {
for (int y=0; y<noYCells; y++) {
// Set colour depending on zValues.
heatMapGraphics.setColor(getCellColour(data[y][x], lowValue, highValue));
int cellX = x*cellSize.width;
int cellY = y*cellSize.height;
heatMapGraphics.fillRect(cellX, cellY, cellSize.width, cellSize.height);
// Draw boundary
Rectangle2D block = new Rectangle2D.Double(
cellX, cellY, cellSize.width, cellSize.height));
heatMapGraphics.setPaint(boundaryColor);
heatMapGraphics.draw(block);
}
}
…
}
申し訳ありませんが、このチャートは、そこJheatChartに、JheatChartにより生成されますXYBlockRendererはありません。 – Sucy
同じアプローチを使用することができます。 – trashgod
詳細な説明はありますか?ありがとうございました。 – Sucy