/** * Create a XY chart object. * * @param f1 the font used for the chart title. * @param f2 the font used for the X and Y axis titles. */ public Chart(Font f1, Font f2) { this.f1 = f1; this.f2 = f2; nf = NumberFormat.getInstance(); }