From def9ffcd66db5a63602c8de2a2abae788a9f4d9e Mon Sep 17 00:00:00 2001 From: Yuri Blankenstein Date: Wed, 22 Mar 2023 09:15:25 +0100 Subject: [PATCH 1/3] #351 bugfix in copying sub-plot rendering info --- src/main/java/org/jfree/chart/OfflineRenderingChartPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jfree/chart/OfflineRenderingChartPanel.java b/src/main/java/org/jfree/chart/OfflineRenderingChartPanel.java index 8a027b077..45bef5807 100644 --- a/src/main/java/org/jfree/chart/OfflineRenderingChartPanel.java +++ b/src/main/java/org/jfree/chart/OfflineRenderingChartPanel.java @@ -402,7 +402,7 @@ private static void copyPlotRenderingInfo(PlotRenderingInfo source, PlotRenderingInfo target) { target.setDataArea(source.getDataArea()); target.setPlotArea(source.getPlotArea()); - for (int i = 0; i < target.getSubplotCount(); i++) { + for (int i = 0; i < source.getSubplotCount(); i++) { PlotRenderingInfo subSource = source.getSubplotInfo(i); PlotRenderingInfo subTarget = new PlotRenderingInfo( target.getOwner()); From 751050e1123a6dd58d0dbe792d8496d712c227b9 Mon Sep 17 00:00:00 2001 From: Yuri Blankenstein Date: Wed, 22 Mar 2023 11:08:01 +0100 Subject: [PATCH 2/3] Updating readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cef781a25..47ee75dd4 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ History ------- ##### Version 1.5.5 (not yet released) - fix cross hair painting ([#340](https://github.com/jfree/jfreechart/issues/340)) +- fix zooming on CombinedDomainXYPlot with OfflineRenderingChartPanel ([#351](https://github.com/jfree/jfreechart/issues/351)) ##### Version 1.5.4 (8 January 2023) - add new methods to access maps for datasets, renderers and axes in plots ([#201](https://github.com/jfree/jfreechart/issues/201)); From ab439a46bce7e2484ddf893af1dfe4388e855b84 Mon Sep 17 00:00:00 2001 From: Yuri Blankenstein Date: Mon, 8 May 2023 09:27:01 +0200 Subject: [PATCH 3/3] #340 Alternative solution for chart refresh using handleClick(...) --- src/main/java/org/jfree/chart/ChartPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jfree/chart/ChartPanel.java b/src/main/java/org/jfree/chart/ChartPanel.java index 70c41ffbc..d81f6d538 100644 --- a/src/main/java/org/jfree/chart/ChartPanel.java +++ b/src/main/java/org/jfree/chart/ChartPanel.java @@ -1926,7 +1926,7 @@ public void mouseClicked(MouseEvent event) { if (this.chart == null) { return; } - this.chart.setNotify(true); + this.chart.handleClick(x, y, this.info); // new entity code... Object[] listeners = this.chartMouseListeners.getListeners(