bugs found in jfreechart 0.9.2

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

bugs found in jfreechart 0.9.2

Post by eveline hofbauer » Mon Nov 04, 2002 1:37 pm

Hi,

we use JFreeChart 0.9.2 to generate SVG, JPEG Charts to supply
dynamic graphics for our PDF-Generator. It works quite fine. But
I found some obvious bugs in the JFreeChart Lib, while working
with it.

To ease upgrade to new version for us, please correct these bugs,
or maybe they are already removed in version 0.9.4?!


BUGLIST:
-------------------
1. AXIS.JAVA
-------------------
invalid Parameter Name in the constructor:

protected Axis(String label,
Font labelFont, Paint labelPaint, Insets labelInsets,
boolean tickLabelsVisible,
Font tickLabelFont, Paint tickLabelPaint, Insets tickLabelInsets,
//original!!!! boolean tickMarkVisible, Stroke tickMarkStroke)
boolean tickMarksVisible, Stroke tickMarkStroke)
{
... this.tickMarksVisible = tickMarksVisible; ...
}

-------------------
2. PLOT.JAVA
-------------------
probable copy - paste error in the getter method:
public Stroke getSeriesOutlineStroke(int index) {
//original!!!! return seriesOutlineStroke[index % seriesOutlinePaint.length];
return seriesOutlineStroke[index % seriesOutlineStroke.length];
}

-------------------------
3. VALUEAXIS.JAVA
-------------------------
missing assignment in the constructor

protected ValueAxis(String label,
Font labelFont, Paint labelPaint, Insets labelInsets,
boolean tickLabelsVisible,
Font tickLabelFont, Paint tickLabelPaint, Insets tickLabelInsets,
boolean tickMarksVisible, Stroke tickMarkStroke,
boolean autoRange, boolean autoTickUnitSelection,
boolean gridLinesVisible, Stroke gridStroke, Paint gridPaint,
boolean crosshairVisible, double crosshairValue,
Stroke crosshairStroke, Paint crosshairPaint) {

....
this.crosshairVisible = crosshairVisible; //added; original: no assignment

}

Dave Gilbert

Re: bugs found in jfreechart 0.9.2

Post by Dave Gilbert » Mon Nov 04, 2002 4:44 pm

Hi Eveline,

Thanks for reporting these. The first two are fixed in 0.9.4, the last one will be fixed for 0.9.5.

Regards,

DG

Locked