Menu

#917 StandardDialScale doesn't respect tickLabelPaint

closed-fixed
General (896)
5
2009-02-27
2009-02-19
Mat Lowery
No

While tickLabelPaint can be set, it does not affect the rendering of the chart. A call to g2.setPaint() seems to be missing.

// excerpt from StandardDialScale.draw()

if (this.tickLabelsVisible) {

if (!firstLabel || this.firstTickLabelVisible) {

g2.setFont(this.tickLabelFont);

g2.setPaint(this.tickLabelPaint); // missing setPaint call
TextUtilities.drawAlignedString(
this.tickLabelFormatter.format(v), g2,
(float) pt2.getX(), (float) pt2.getY(),
TextAnchor.CENTER);

}

}

Discussion

  • David Gilbert

    David Gilbert - 2009-02-27
    • labels: --> General
    • assigned_to: nobody --> mungady
    • status: open --> closed-fixed
     
  • David Gilbert

    David Gilbert - 2009-02-27

    Thanks for the report. I've committed a fix to Subversion for inclusion in the 1.0.13 release.

    Best regards,

    Dave Gilbert
    JFreeChart Project Leader

     

Log in to post a comment.