Skip to content

Commit

Permalink
Upgrade TrackMate to JFreeChart 1.0.14
Browse files Browse the repository at this point in the history
Since Fiji now re-uses JFreeChart as served by the ImageJ update site, and
since that JFreeChart is slightly newer than what we used to use, let's
upgrade.

Noticed by Alison Twelvetrees in bug report 460.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Aug 3, 2012
1 parent 0f4f117 commit 526d0bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src-plugins/TrackMate_/pom.xml
Expand Up @@ -64,9 +64,9 @@
<version>5.1.1</version>
</dependency>
<dependency>
<groupId>jfree</groupId>
<groupId>org.jfree</groupId>
<artifactId>jcommon</artifactId>
<version>1.0.15</version>
<version>1.0.17</version>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
Expand All @@ -79,9 +79,9 @@
<version>1.1</version>
</dependency>
<dependency>
<groupId>jfree</groupId>
<groupId>org.jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.0.13</version>
<version>1.0.14</version>
</dependency>
<dependency>
<groupId>jgrapht</groupId>
Expand Down
Expand Up @@ -8,11 +8,13 @@

import org.jfree.chart.ChartPanel;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.event.AnnotationChangeEvent;
import org.jfree.chart.plot.PlotRenderingInfo;
import org.jfree.chart.plot.XYPlot;

public class XYTextSimpleAnnotation implements XYAnnotation {
public class XYTextSimpleAnnotation extends AbstractXYAnnotation {

private static final long serialVersionUID = 1L;
private float x, y;
private String text;
private Font font;
Expand Down Expand Up @@ -45,6 +47,7 @@ public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea,
public void setLocation(float x, float y) {
this.x = x;
this.y = y;
notifyListeners(new AnnotationChangeEvent(this, this));
}

public void setText(String text) { this.text = text; }
Expand Down

0 comments on commit 526d0bc

Please sign in to comment.