Menu

#929 the arrow is displayed wrong

1.0.x
closed-fixed
General (896)
5
2009-04-27
2009-04-26
No

package org.jfree.chart.annotations;

Class : public class XYPointerAnnotation extends XYTextAnnotation

The line below
Line2D line = new Line2D.Double(startX, startY, endX, endY);
should be changed to
Line2D line = new Line2D.Double(startX, startY, endX, arrowBaseY);

because if the user uses arrowStroke = new BasicStroke(2.0f); or thicker the arrow is displayed wrong.

Thanks !
Jocaf

Discussion

  • David Gilbert

    David Gilbert - 2009-04-27

    Thanks for the report. I committed the fix to Subversion for inclusion in the next release (1.0.14).

     
  • David Gilbert

    David Gilbert - 2009-04-27
    • assigned_to: nobody --> mungady
    • status: open --> closed-fixed
     

Log in to post a comment.