Menu

#333 SymbolicAxis gridband paint should not be hardcoded white

closed
General (246)
5
2007-07-25
2007-07-19
No

In org.jfree.chart.axis.SymbolAxis.drawGridBandsHorizontal() and drawGridBandsVertical, the following code is to be found:

if (currentGridBandIsDark) {
g2.setPaint(this.gridBandPaint);
}
else {
g2.setPaint(Color.white);
}

the 'Color.white' shouldn't be hardcoded. I think the best is to make this g2 transparent, so the Plot.backgroundPaint will be visible.

Discussion

  • Marc van Glabbeek

    • summary: SymbolicAxis gridband colors not all settable --> SymbolicAxis gridband paint should not be hardcoded white
     
  • David Gilbert

    David Gilbert - 2007-07-25

    Logged In: YES
    user_id=112975
    Originator: NO

    Hi Marc,

    Thanks for the request - it sounds sensible to me. I've committed a change to Subversion for inclusion in the 1.0.7 release that will make the default transparent, but also allow the value to be changed via new get/setGridBandAlternatePaint() methods.

    Regards,

    Dave Gilbert
    JFreeChart Project Leader

     
  • David Gilbert

    David Gilbert - 2007-07-25
    • assigned_to: nobody --> mungady
    • status: open --> closed
     

Log in to post a comment.