Hi David,
I am trying to extend NumberAxis .I want to overwrite refreshTicks method so that I can specify the ticklabel and its position on the Axis.
But I am not getting the parameters of Tick constructor like want should be Anchorx value .
I will be greatful if u can explain this with an example
Extending NumberAxis (urgent)
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The anchorX and anchorY values are Java2D coordinates that specify the base location of the tick label. This is usually close to the point on the axis, but slightly offset so that the label appears outside the data area. Look through the source code in the NumberAxis class for examples (specifically, the refreshHorizontalTicks() and refreshVerticalTicks() methods).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

