File: jfreechart-compatibility.patch

package info (click to toggle)
uncommons-watchmaker 0.7.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,336 kB
  • sloc: java: 14,170; xml: 2,136; makefile: 11
file content (30 lines) | stat: -rw-r--r-- 1,357 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Use newer jfreechart API
Author: Julien Plissonneau Duquène <sre4ever@free.fr>
Bug-Debian: https://bugs.debian.org/1099295
Forwarded: no
Last-Update: 2025-03-30

--- a/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/IslandsView.java
+++ b/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/IslandsView.java
@@ -73,7 +73,7 @@
         plot.getRangeAxis().setAutoRange(false);
         plot.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
 
-        meanRenderer.setBaseLinesVisible(false);
+        meanRenderer.setDefaultLinesVisible(false);
         ChartPanel chartPanel = new ChartPanel(chart,
                                                ChartPanel.DEFAULT_WIDTH,
                                                ChartPanel.DEFAULT_HEIGHT,
--- a/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/JVMView.java
+++ b/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/JVMView.java
@@ -37,8 +37,8 @@
 import org.jfree.data.time.Second;
 import org.jfree.data.time.TimeSeries;
 import org.jfree.data.time.TimeSeriesCollection;
-import org.jfree.ui.RectangleAnchor;
-import org.jfree.ui.TextAnchor;
+import org.jfree.chart.ui.RectangleAnchor;
+import org.jfree.chart.ui.TextAnchor;
 
 /**
  * Evolution monitor panel that displays information about the current