#181 Bugfix for quadrant paint errors

closed-accepted
None
5
2008-01-04
2007-12-12
No

When the setQuadrantPaint(int, Paint) method is used in an XYPlot, some paint errors occur in situations where the quadrant origin is outside of the current view.

An easy fix is to make sure the painted Rectangles don't extend beyond the plot area.

The attached fix (fixed in the 1.0.8a XYPlot source file) does exactly that: I've changed the first 20 lines or so of the drawQuadrants() method.

Discussion

  • Jeroen Brattinga

    XYPlot v1.0.8a with bugfix

     
    Attachments
  • David Gilbert

    David Gilbert - 2008-01-04

    Logged In: YES
    user_id=112975
    Originator: NO

    Thanks! I took a look at the code and implemented a slightly different fix for inclusion in the 1.0.9 release.

     
  • David Gilbert

    David Gilbert - 2008-01-04
    • assigned_to: nobody --> mungady
    • status: open --> closed-accepted
     

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

Sign up for the SourceForge newsletter:





No, thanks