I needed minor tick marks on my horizontal DateAxis, illustrated at http://picasaweb.google.com/amickish/JFreeChart/photo#5153499160795464114
Specifically, I wanted major tick marks every year, and minor tick marks every month.
So I overrode refreshTicks() in my DateAxis to add minor a minor DateTick for every month.
To support minor tick marks, I changed these 3 files in package org.jfree.chart.axis:
DateTick.java: a constructor that takes a TickType
ValueAxis.java: enhanced drawTickMarksAndLabels()
to draw minor tick marks
Axis.java: public methods and private members that
activate minor tick marks
These changes should have no effect on pre-existing user code. The old methods like isTickMarksVisible() still control major tick marks.
The new minor tick mark methods have names like isTickMarksMinorVisible() corresponding to the old (major) names.
Log in to post a comment.