From: SourceForge.net <no...@so...> - 2009-06-24 15:44:22
|
Patches item #2809117, was opened at 2009-06-19 15:50 Message generated for change (Comment added) made by mungady You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315494&aid=2809117&group_id=15494 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Peter Kolb (paradoxoff) >Assigned to: David Gilbert (mungady) Summary: Event handling for annotations Initial Comment: An event notifcation mechanism for annotations has been added. Previously, if the properties of an instance of any of the annotation classes were changing, the changes were only shown in a GUI if a repaint was triggered by another way (which could be irritating). Changes: new interface org.jfree.chart.annotations.Annotation: declares a mechanism for registering AnnotationChangeListener. new interface org.jfree.chart.event.AnnotationChangeListener new classes org.jfree.chart.annotations.AbstractAnnotation (implements a mechanism for registering AnnotationChangeListeners) and org.jfree.chart.event.AnnotationChangeEvent Changes to the existing interfaces and classes in the package org.jfree.chart.annotations (they now extend the new interface/class where appropriate) Changes to Plot, XYPlot, CategoryPlot and AbstractXYItemRenderer: these classes implement AnnotationChangeListener and register/deregister as listeners of annotations if they are added to/removed from the plot or renderer. The class AbstractAnnotation contains a private static flag "notify" that indicates whether listeners should be notifed about changes to an annotation. This allows to turn off the event notification and prevents multiple repaints if several changes to one ore more annotations are performed. ---------------------------------------------------------------------- >Comment By: David Gilbert (mungady) Date: 2009-06-24 15:44 Message: Thanks very much! I've committed this for inclusion in the 1.0.14 release. Best regards, Dave Gilbert JFreeChart Project Leader ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315494&aid=2809117&group_id=15494 |