From: <mu...@us...> - 2008-09-04 19:57:02
|
Revision: 1507 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=1507&view=rev Author: mungady Date: 2008-09-04 19:56:58 +0000 (Thu, 04 Sep 2008) Log Message: ----------- Whitespace. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/Effect3D.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/LegendItemSource.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/LegendRenderingOrder.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/PaintMap.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/PolarChartPanel.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/StrokeMap.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/Effect3D.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/Effect3D.java 2008-09-04 19:55:46 UTC (rev 1506) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/Effect3D.java 2008-09-04 19:56:58 UTC (rev 1507) @@ -2,32 +2,32 @@ * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * - * (C) Copyright 2000-2007, by Object Refinery Limited and Contributors. + * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/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 + * 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 + * 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. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. * - * [Java is a trademark or registered trademark of Sun Microsystems, Inc. + * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] * * ------------- * Effect3D.java * ------------- - * (C) Copyright 2002-2007, by Object Refinery Limited. + * (C) Copyright 2002-2008, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); * Contributor(s): -; @@ -42,7 +42,7 @@ package org.jfree.chart; /** - * An interface that should be implemented by renderers that use a 3D effect. + * An interface that should be implemented by renderers that use a 3D effect. * This allows the axes to mirror the same effect by querying the renderer. */ public interface Effect3D { Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/LegendItemSource.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/LegendItemSource.java 2008-09-04 19:55:46 UTC (rev 1506) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/LegendItemSource.java 2008-09-04 19:56:58 UTC (rev 1507) @@ -2,32 +2,32 @@ * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * - * (C) Copyright 2000-2007, by Object Refinery Limited and Contributors. + * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/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 + * 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 + * 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. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. * - * [Java is a trademark or registered trademark of Sun Microsystems, Inc. + * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] * * --------------------- * LegendItemSource.java * --------------------- - * (C) Copyright 2005, 2007, by Object Refinery Limited and Contributors. + * (C) Copyright 2005-2008, by Object Refinery Limited and Contributors. * * Original Author: David Gilbert (for Object Refinery Limited); * Contributor(s): -; @@ -41,7 +41,7 @@ package org.jfree.chart; /** - * A source of legend items. A {@link org.jfree.chart.title.LegendTitle} will + * A source of legend items. A {@link org.jfree.chart.title.LegendTitle} will * maintain a list of sources (often just one) from which it obtains legend * items. */ Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/LegendRenderingOrder.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/LegendRenderingOrder.java 2008-09-04 19:55:46 UTC (rev 1506) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/LegendRenderingOrder.java 2008-09-04 19:56:58 UTC (rev 1507) @@ -2,32 +2,32 @@ * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * - * (C) Copyright 2000-2007, by Object Refinery Limited and Contributors. + * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/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 + * 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 + * 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. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. * - * [Java is a trademark or registered trademark of Sun Microsystems, Inc. + * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] * * ------------------------- * LegendRenderingOrder.java * ------------------------- - * (C) Copyright 2004-2007, by Object Refinery Limited and Contributors. + * (C) Copyright 2004-2008, by Object Refinery Limited and Contributors. * * Original Author: Angel; * Contributor(s): -; @@ -35,7 +35,7 @@ * Changes * ------- * 26-Mar-2004 : Version 1 (DG); - * + * */ package org.jfree.chart; @@ -50,14 +50,14 @@ /** For serialization. */ private static final long serialVersionUID = -3832486612685808616L; - + /** In order. */ - public static final LegendRenderingOrder STANDARD - = new LegendRenderingOrder("LegendRenderingOrder.STANDARD"); + public static final LegendRenderingOrder STANDARD + = new LegendRenderingOrder("LegendRenderingOrder.STANDARD"); /** In reverse order. */ - public static final LegendRenderingOrder REVERSE - = new LegendRenderingOrder("LegendRenderingOrder.REVERSE"); + public static final LegendRenderingOrder REVERSE + = new LegendRenderingOrder("LegendRenderingOrder.REVERSE"); /** The name. */ private String name; @@ -81,7 +81,7 @@ } /** - * Returns <code>true</code> if this object is equal to the specified + * Returns <code>true</code> if this object is equal to the specified * object, and <code>false</code> otherwise. * * @param obj the other object. @@ -101,7 +101,7 @@ } return true; } - + /** * Ensures that serialization returns the unique instances. * @@ -115,7 +115,7 @@ } else if (this.equals(LegendRenderingOrder.REVERSE)) { return LegendRenderingOrder.REVERSE; - } + } return null; } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/PaintMap.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/PaintMap.java 2008-09-04 19:55:46 UTC (rev 1506) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/PaintMap.java 2008-09-04 19:56:58 UTC (rev 1507) @@ -2,32 +2,32 @@ * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * - * (C) Copyright 2000-2007, by Object Refinery Limited and Contributors. + * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/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 + * 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 + * 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. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. * - * [Java is a trademark or registered trademark of Sun Microsystems, Inc. + * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] * * ------------- * PaintMap.java * ------------- - * (C) Copyright 2006, 2007, by Object Refinery Limited. + * (C) Copyright 2006-2008, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); * Contributor(s): -; @@ -57,12 +57,12 @@ /** * A storage structure that maps <code>Comparable</code> instances with - * <code>Paint</code> instances. + * <code>Paint</code> instances. * <br><br> - * To support cloning and serialization, you should only use keys that are + * To support cloning and serialization, you should only use keys that are * cloneable and serializable. Special handling for the <code>Paint</code> * instances is included in this class. - * + * * @since 1.0.3 */ public class PaintMap implements Cloneable, Serializable { @@ -72,23 +72,23 @@ /** Storage for the keys and values. */ private transient Map store; - + /** * Creates a new (empty) map. */ public PaintMap() { - this.store = new HashMap(); + this.store = new HashMap(); } - + /** - * Returns the paint associated with the specified key, or + * Returns the paint associated with the specified key, or * <code>null</code>. - * + * * @param key the key (<code>null</code> not permitted). - * + * * @return The paint, or <code>null</code>. - * - * @throws IllegalArgumentException if <code>key</code> is + * + * @throws IllegalArgumentException if <code>key</code> is * <code>null</code>. */ public Paint getPaint(Comparable key) { @@ -97,28 +97,28 @@ } return (Paint) this.store.get(key); } - + /** * Returns <code>true</code> if the map contains the specified key, and * <code>false</code> otherwise. - * + * * @param key the key. - * + * * @return <code>true</code> if the map contains the specified key, and * <code>false</code> otherwise. */ public boolean containsKey(Comparable key) { return this.store.containsKey(key); } - + /** - * Adds a mapping between the specified <code>key</code> and + * Adds a mapping between the specified <code>key</code> and * <code>paint</code> values. - * + * * @param key the key (<code>null</code> not permitted). * @param paint the paint. - * - * @throws IllegalArgumentException if <code>key</code> is + * + * @throws IllegalArgumentException if <code>key</code> is * <code>null</code>. */ public void put(Comparable key, Paint paint) { @@ -127,19 +127,19 @@ } this.store.put(key, paint); } - + /** * Resets the map to empty. */ public void clear() { this.store.clear(); } - + /** * Tests this map for equality with an arbitrary object. - * + * * @param obj the object (<code>null</code> permitted). - * + * * @return A boolean. */ public boolean equals(Object obj) { @@ -165,12 +165,12 @@ } return true; } - + /** * Returns a clone of this <code>PaintMap</code>. - * + * * @return A clone of this instance. - * + * * @throws CloneNotSupportedException if any key is not cloneable. */ public Object clone() throws CloneNotSupportedException { @@ -178,7 +178,7 @@ // whereas the paint instances are always immutable so they're OK return super.clone(); } - + /** * Provides serialization support. * @@ -207,7 +207,7 @@ * @throws IOException if there is an I/O error. * @throws ClassNotFoundException if there is a classpath problem. */ - private void readObject(ObjectInputStream stream) + private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); this.store = new HashMap(); @@ -218,5 +218,5 @@ this.store.put(key, paint); } } - + } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/PolarChartPanel.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/PolarChartPanel.java 2008-09-04 19:55:46 UTC (rev 1506) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/PolarChartPanel.java 2008-09-04 19:56:58 UTC (rev 1507) @@ -2,32 +2,32 @@ * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * - * (C) Copyright 2000-2007, by Object Refinery Limited and Contributors. + * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/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 + * 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 + * 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. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. * - * [Java is a trademark or registered trademark of Sun Microsystems, Inc. + * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] * * -------------------- * PolarChartPanel.java * -------------------- - * (C) Copyright 2004, 2007, by Solution Engineering, Inc. and Contributors. + * (C) Copyright 2004-2008, by Solution Engineering, Inc. and Contributors. * * Original Author: Daniel Bridenbecker, Solution Engineering, Inc.; * Contributor(s): David Gilbert (for Object Refinery Limited); @@ -52,12 +52,12 @@ import org.jfree.chart.plot.PolarPlot; /** - * <code>PolarChartPanel</code> is the top level object for using the - * {@link PolarPlot}. Since this class has a <code>JPanel</code> in the - * inheritance hierarchy, one uses this class to integrate the Polar plot into + * <code>PolarChartPanel</code> is the top level object for using the + * {@link PolarPlot}. Since this class has a <code>JPanel</code> in the + * inheritance hierarchy, one uses this class to integrate the Polar plot into * their application. * <p> - * The main modification to <code>ChartPanel</code> is the popup menu. It + * The main modification to <code>ChartPanel</code> is the popup menu. It * removes <code>ChartPanel</code>'s versions of: * <ul> * <li><code>Zoom In</code></li> @@ -70,23 +70,23 @@ // ----------------- // --- Constants --- - // ----------------- - + // ----------------- + /** Zoom in command string. */ private static final String POLAR_ZOOM_IN_ACTION_COMMAND = "Polar Zoom In"; - + /** Zoom out command string. */ - private static final String POLAR_ZOOM_OUT_ACTION_COMMAND + private static final String POLAR_ZOOM_OUT_ACTION_COMMAND = "Polar Zoom Out"; - + /** Auto range command string. */ - private static final String POLAR_AUTO_RANGE_ACTION_COMMAND + private static final String POLAR_AUTO_RANGE_ACTION_COMMAND = "Polar Auto Range"; - + // ------------------------ // --- Member Variables --- // ------------------------ - + // -------------------- // --- Constructors --- // -------------------- @@ -101,7 +101,7 @@ /** * Creates a new panel. - * + * * @param chart the chart. * @param useBuffer buffered? */ @@ -113,7 +113,7 @@ setMaximumDrawWidth(2000); setMaximumDrawHeight(2000); } - + // -------------------------- // --- ChartPanel Methods --- // -------------------------- @@ -126,7 +126,7 @@ checkChart(chart); super.setChart(chart); } - + /** * Creates a popup menu for the panel. * @@ -138,10 +138,10 @@ * @return The popup menu. */ protected JPopupMenu createPopupMenu(boolean properties, - boolean save, - boolean print, + boolean save, + boolean print, boolean zoom) { - + JPopupMenu result = super.createPopupMenu(properties, save, print, zoom); int zoomInIndex = getPopupMenuItem(result, "Zoom In"); int zoomOutIndex = getPopupMenuItem(result, "Zoom Out"); @@ -150,15 +150,15 @@ JMenuItem zoomIn = new JMenuItem("Zoom In"); zoomIn.setActionCommand(POLAR_ZOOM_IN_ACTION_COMMAND); zoomIn.addActionListener(this); - + JMenuItem zoomOut = new JMenuItem("Zoom Out"); zoomOut.setActionCommand(POLAR_ZOOM_OUT_ACTION_COMMAND); zoomOut.addActionListener(this); - + JMenuItem auto = new JMenuItem("Auto Range"); auto.setActionCommand(POLAR_AUTO_RANGE_ACTION_COMMAND); auto.addActionListener(this); - + if (zoomInIndex != -1) { result.remove(zoomInIndex); } @@ -183,7 +183,7 @@ } return result; } - + /** * Handles action events generated by the popup menu. * @@ -191,7 +191,7 @@ */ public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); - + if (command.equals(POLAR_ZOOM_IN_ACTION_COMMAND)) { PolarPlot plot = (PolarPlot) getChart().getPlot(); plot.zoom(0.5); @@ -216,10 +216,10 @@ // ----------------------- // --- Private Methods --- // ----------------------- - + /** * Test that the chart is using an xy plot with time as the domain axis. - * + * * @param chart the chart. */ private void checkChart(JFreeChart chart) { @@ -228,13 +228,13 @@ throw new IllegalArgumentException("plot is not a PolarPlot"); } } - + /** * Returns the index of an item in a popup menu. - * + * * @param menu the menu. * @param text the label. - * + * * @return The item index. */ private int getPopupMenuItem(JPopupMenu menu, String text) { Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/StrokeMap.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/StrokeMap.java 2008-09-04 19:55:46 UTC (rev 1506) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/StrokeMap.java 2008-09-04 19:56:58 UTC (rev 1507) @@ -2,32 +2,32 @@ * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * - * (C) Copyright 2000-2007, by Object Refinery Limited and Contributors. + * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/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 + * 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 + * 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. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. * - * [Java is a trademark or registered trademark of Sun Microsystems, Inc. + * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] * * -------------- * StrokeMap.java * -------------- - * (C) Copyright 2006, 2007, by Object Refinery Limited. + * (C) Copyright 2006-2008, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); * Contributor(s): -; @@ -55,12 +55,12 @@ /** * A storage structure that maps <code>Comparable</code> instances with - * <code>Stroke</code> instances. + * <code>Stroke</code> instances. * <br><br> - * To support cloning and serialization, you should only use keys that are + * To support cloning and serialization, you should only use keys that are * cloneable and serializable. Special handling for the <code>Stroke</code> * instances is included in this class. - * + * * @since 1.0.3 */ public class StrokeMap implements Cloneable, Serializable { @@ -70,23 +70,23 @@ /** Storage for the keys and values. */ private transient Map store; - + /** * Creates a new (empty) map. */ public StrokeMap() { - this.store = new TreeMap(); + this.store = new TreeMap(); } - + /** - * Returns the stroke associated with the specified key, or + * Returns the stroke associated with the specified key, or * <code>null</code>. - * + * * @param key the key (<code>null</code> not permitted). - * + * * @return The stroke, or <code>null</code>. - * - * @throws IllegalArgumentException if <code>key</code> is + * + * @throws IllegalArgumentException if <code>key</code> is * <code>null</code>. */ public Stroke getStroke(Comparable key) { @@ -95,46 +95,46 @@ } return (Stroke) this.store.get(key); } - + /** * Returns <code>true</code> if the map contains the specified key, and * <code>false</code> otherwise. - * + * * @param key the key. - * + * * @return <code>true</code> if the map contains the specified key, and * <code>false</code> otherwise. */ public boolean containsKey(Comparable key) { return this.store.containsKey(key); } - + /** - * Adds a mapping between the specified <code>key</code> and + * Adds a mapping between the specified <code>key</code> and * <code>stroke</code> values. - * + * * @param key the key (<code>null</code> not permitted). * @param stroke the stroke. */ public void put(Comparable key, Stroke stroke) { - if (key == null) { + if (key == null) { throw new IllegalArgumentException("Null 'key' argument."); } this.store.put(key, stroke); } - + /** * Resets the map to empty. */ public void clear() { this.store.clear(); } - + /** * Tests this map for equality with an arbitrary object. - * + * * @param obj the object (<code>null</code> permitted). - * + * * @return A boolean. */ public boolean equals(Object obj) { @@ -160,12 +160,12 @@ } return true; } - + /** * Returns a clone of this <code>StrokeMap</code>. - * + * * @return A clone of this instance. - * + * * @throws CloneNotSupportedException if any key is not cloneable. */ public Object clone() throws CloneNotSupportedException { @@ -173,7 +173,7 @@ // whereas the stroke instances are always immutable so they're OK return super.clone(); } - + /** * Provides serialization support. * @@ -202,7 +202,7 @@ * @throws IOException if there is an I/O error. * @throws ClassNotFoundException if there is a classpath problem. */ - private void readObject(ObjectInputStream stream) + private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); this.store = new TreeMap(); @@ -213,5 +213,5 @@ this.store.put(key, stroke); } } - + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |