Mercurial > hg > heapstats
changeset 199:59c1bdfd0f8c
Bug 3264: [REGRESSION] Build failed after Bug 3247
Reviewed-by: ykubota
https://github.com/HeapStats/heapstats/pull/64
author | Yasumasa Suenaga <yasuenag@gmail.com> |
---|---|
date | Tue, 13 Dec 2016 12:12:42 +0900 |
parents | fafd14ad7be0 |
children | 723c2a14a194 |
files | ChangeLog analyzer/fx/src/main/java/jp/co/ntt/oss/heapstats/plugin/builtin/snapshot/tabs/SummaryController.java |
diffstat | 2 files changed, 14 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Dec 12 22:44:59 2016 +0900 +++ b/ChangeLog Tue Dec 13 12:12:42 2016 +0900 @@ -1,3 +1,7 @@ +2016-12-13 Yasumasa Suenaga <yasuenag@gmail.com> + + * Bug 3264: [REGRESSION] Build failed after Bug 3247 + 2016-12-12 Yasumasa Suenaga <yasuenag@gmail.com> * Bug 3247: Refactoring chart legends and tooltip
--- a/analyzer/fx/src/main/java/jp/co/ntt/oss/heapstats/plugin/builtin/snapshot/tabs/SummaryController.java Mon Dec 12 22:44:59 2016 +0900 +++ b/analyzer/fx/src/main/java/jp/co/ntt/oss/heapstats/plugin/builtin/snapshot/tabs/SummaryController.java Tue Dec 13 12:12:42 2016 +0900 @@ -215,9 +215,16 @@ youngLabel = new Label(); oldLabel = new Label(); freeLabel = new Label(); - Rectangle youngRect = new Rectangle(HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE, HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE, Color.web(heapChartColors[0])); - Rectangle oldRect = new Rectangle(HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE, HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE, Color.web(heapChartColors[1])); - Rectangle freeRect = new Rectangle(HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE, HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE, Color.web(heapChartColors[2])); + Rectangle youngRect = new Rectangle(HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE, HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE); + Rectangle oldRect = new Rectangle(HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE, HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE); + Rectangle freeRect = new Rectangle(HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE, HeapStatsUtils.TOOLTIP_LEGEND_RECT_SIZE); + + Platform.runLater(() -> { + youngRect.setStyle("-fx-fill: " + ((Path)heapChart.lookup(".series0")).getFill().toString().replace("0x", "#")); + oldRect.setStyle("-fx-fill: " + ((Path)heapChart.lookup(".series1")).getFill().toString().replace("0x", "#")); + freeRect.setStyle("-fx-fill: " + ((Path)heapChart.lookup(".series2")).getFill().toString().replace("0x", "#")); + }); + heapTooltipGrid.add(youngRect, 0, 0); heapTooltipGrid.add(new Label("Young"), 1, 0); heapTooltipGrid.add(youngLabel, 2, 0);