From: David G. <mu...@us...> - 2008-09-10 09:14:30
|
Update of /cvsroot/jfreechart/jcommon/source/org/jfree/demo In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv9345/source/org/jfree/demo Modified Files: DrawStringDemo.java Log Message: Fixed some Eclipse warnings. Index: DrawStringDemo.java =================================================================== RCS file: /cvsroot/jfreechart/jcommon/source/org/jfree/demo/DrawStringDemo.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** DrawStringDemo.java 2 Nov 2007 17:50:35 -0000 1.5 --- DrawStringDemo.java 10 Sep 2008 09:14:22 -0000 1.6 *************** *** 4,28 **** * * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors. ! * * Project Info: http://www.jfree.org/jcommon/index.html * ! * This library is free software; you can redistribute it and/or modify it ! * under the terms of the GNU Lesser General Public License as published by ! * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * ! * This library is distributed in the hope that it will be useful, but ! * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ! * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ! * USA. * ! * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] ! * * ------------------- * DrawStringDemo.java --- 4,28 ---- * * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors. ! * * Project Info: http://www.jfree.org/jcommon/index.html * ! * This library is free software; you can redistribute it and/or modify it ! * under the terms of the GNU Lesser General Public License as published by ! * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * ! * This library is distributed in the hope that it will be useful, but ! * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ! * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ! * USA. * ! * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] ! * * ------------------- * DrawStringDemo.java *************** *** 65,69 **** * A demo of some of the string drawing methods in the JCommon class library. */ ! public class DrawStringDemo extends ApplicationFrame implements ActionListener, ChangeListener { --- 65,69 ---- * A demo of some of the string drawing methods in the JCommon class library. */ ! public class DrawStringDemo extends ApplicationFrame implements ActionListener, ChangeListener { *************** *** 79,83 **** /** A slider for the second panel - controls the angle of rotation. */ private JSlider slider; ! /** String panel 1. */ private DrawStringPanel drawStringPanel1; --- 79,83 ---- /** A slider for the second panel - controls the angle of rotation. */ private JSlider slider; ! /** String panel 1. */ private DrawStringPanel drawStringPanel1; *************** *** 116,119 **** --- 116,124 ---- } + /** + * Receives change event notification from the slider. + * + * @param event the event. + */ public void stateChanged(ChangeEvent event) { int r = this.slider.getValue(); *************** *** 123,127 **** this.drawStringPanel2.repaint(); } ! /** * Updates the display when combo 1 is updated. --- 128,132 ---- this.drawStringPanel2.repaint(); } ! /** * Updates the display when combo 1 is updated. *************** *** 323,327 **** else { return null; ! } } --- 328,332 ---- else { return null; ! } } |