Extending NumberAxis (urgent)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nitin
Posts: 16
Joined: Wed Dec 03, 2003 10:21 am
Location: Pune

Extending NumberAxis (urgent)

Post by nitin » Wed Dec 31, 2003 10:16 am

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Jan 01, 2004 10:28 pm

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

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked