Compile error in compiling HorizontalNumberAxis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mudit Wahal

Compile error in compiling HorizontalNumberAxis

Post by Mudit Wahal » Tue Apr 16, 2002 5:43 pm

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

Mudit Wahal

Re: Compile error in compiling HorizontalNumberAxis

Post by Mudit Wahal » Tue Apr 16, 2002 5:47 pm

It should be candidate1.getValue().doubleValue()

Locked