I just copied the class into a new file/class and trying to compile it.
Got the following error message. I couldn't extend HorizontalNumberAxis so I had to copy it.
Is there anyway to extend the HorizontalNumberAxis alone and just override the refreshTicks method ?
"myHorizontalDateTimeLabelAxis.java": Error #: 306 : variable value has protected access in class com.jrefinery.chart.TickUnit at line 489, column 68
--------------------------------------------
private void selectAutoTickUnit(Graphics2D g2, Rectangle2D drawArea, Rectangle2D plotArea) {
.....
double bestguess = (tickLabelWidth/unitWidth) * candidate1.value.doubleValue();
.......
}
---------------------------------------------
thanks
mudit
Compile error in compiling HorizontalNumberAxis
Re: Compile error in compiling HorizontalNumberAxis
It should be candidate1.getValue().doubleValue()