From: <mu...@us...> - 2008-09-26 08:02:17
|
Revision: 1646 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=1646&view=rev Author: mungady Date: 2008-09-26 08:02:11 +0000 (Fri, 26 Sep 2008) Log Message: ----------- 2008-09-26 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/VectorRenderer.java (drawItem): Add chart entity. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/ChangeLog branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/VectorRenderer.java Modified: branches/jfreechart-1.0.x-branch/ChangeLog =================================================================== --- branches/jfreechart-1.0.x-branch/ChangeLog 2008-09-26 07:25:48 UTC (rev 1645) +++ branches/jfreechart-1.0.x-branch/ChangeLog 2008-09-26 08:02:11 UTC (rev 1646) @@ -1,3 +1,8 @@ +2008-09-26 David Gilbert <dav...@ob...> + + * source/org/jfree/chart/renderer/xy/VectorRenderer.java + (drawItem): Add chart entity. + 2008-09-25 David Gilbert <dav...@ob...> Patch 1934255 (incorporating 1870189): Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/VectorRenderer.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/VectorRenderer.java 2008-09-26 07:25:48 UTC (rev 1645) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/VectorRenderer.java 2008-09-26 08:02:11 UTC (rev 1646) @@ -40,6 +40,7 @@ * 18-Feb-2008 : Fixed bug 1880114, arrows for horizontal plot * orientation (DG); * 22-Apr-2008 : Implemented PublicCloneable (DG); + * 26-Sep-2008 : Added chart entity support (tooltips etc) (DG); * */ @@ -52,6 +53,7 @@ import java.io.Serializable; import org.jfree.chart.axis.ValueAxis; +import org.jfree.chart.entity.EntityCollection; import org.jfree.chart.plot.CrosshairState; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.PlotRenderingInfo; @@ -281,6 +283,15 @@ p.closePath(); g2.draw(p); + // setup for collecting optional entity info... + EntityCollection entities = null; + if (info != null) { + entities = info.getOwner().getEntityCollection(); + if (entities != null) { + addEntity(entities, line.getBounds(), dataset, series, item, + 0.0, 0.0); + } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |