From: David G. <mu...@us...> - 2006-07-31 16:22:40
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/data In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv22597/source/org/jfree/data Modified Files: Tag: STABLE_1-0-0 DefaultKeyedValues.java Log Message: 2006-07-31 David Gilbert <dav...@ob...> * source/org/jfree/data/DefaultKeyedValues.java (clear): New method, * source/org/jfree/data/general/DefaultPieDataset.java (clear): Likewise, * source/org/jfree/data/general/junit/DefaultPieDatasetTests.java (lastEvent): New field, (datasetChanged): New method, (testClear): New method, * source/org/jfree/data/junit/DefaultKeyedValuesTests.java (testClear): New method. Index: DefaultKeyedValues.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/data/DefaultKeyedValues.java,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** DefaultKeyedValues.java 25 Oct 2005 21:29:13 -0000 1.8.2.2 --- DefaultKeyedValues.java 31 Jul 2006 16:22:34 -0000 1.8.2.3 *************** *** 3,7 **** * =========================================================== * ! * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/index.html --- 3,7 ---- * =========================================================== * ! * (C) Copyright 2000-2006, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/index.html *************** *** 28,32 **** * DefaultKeyedValues.java * ----------------------- ! * (C) Copyright 2002-2005, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); --- 28,32 ---- * DefaultKeyedValues.java * ----------------------- ! * (C) Copyright 2002-2006, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); *************** *** 50,53 **** --- 50,55 ---- * 24-Feb-2005 : Added methods addValue(Comparable, double) and * setValue(Comparable, double) for convenience (DG); + * ------------- JFREECHART 1.0.0 ----------------------------------------------- + * 31-Jul-2006 : Added a clear() method (DG); * */ *************** *** 257,260 **** --- 259,271 ---- } } + + /** + * Clears all values from the collection. + * + * @since 1.0.2 + */ + public void clear() { + this.data.clear(); + } /** |