#265 CategoryPointerAnnotation

closed-accepted
None
5
2010-03-30
2010-02-18
Dan
No

The arrow drawn by this class can look a little lop-sided. If the declaration of the variable 'line' (at line 398) is changed to the code below then it looks much nicer. The same methodology is used in XYPointerAnnotation so the line will also work there.

Line2D line = new Line2D.Double(startX, startY, (arrowLeftX+arrowRightX)/2, (arrowLeftY+arrowRightY)/2);

The change basically makes it so that the line representing the stem of the arrow is only drawn up to the base of the arrow head rather than right up to the arrow's point.

Discussion

  • feller

    feller - 2010-03-24

    Note I was going to suggest a similar change. Except that my change would use the arrowBaseX and arrowBaseY vals:

    Line2D line = new Line2D.Double(startX, startY, arrowBaseX, arrowBaseY);

    Either way, this makes an important change. I need wider arrow stems, and the arrow tip becomes bulbous with the stem currently drawn all the way to the arrow tip.

     
  • David Gilbert

    David Gilbert - 2010-03-30

    Thanks. I committed the change to SVN ready for the next release (1.0.14).

     
  • David Gilbert

    David Gilbert - 2010-03-30
    • assigned_to: nobody --> mungady
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks