/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2012, 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
 * (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.
 *
 * [Oracle and Java are registered trademarks of Oracle and/or its affiliates.
 * Other names may be trademarks of their respective owners.]
 *
 * ---------------------------
 * CategoryLabelWidthType.java
 * ---------------------------
 * (C) Copyright 2004-2008, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * Changes:
 * --------
 * 24-Mar-2004 : Version 1 (DG);
 *
 */

package org.jfree.chart.axis;

/**
 * Represents the width types for a category label.
 */
public enum CategoryLabelWidthType {

    /** Percentage of category. */
    CATEGORY("CategoryLabelWidthType.CATEGORY"),

    /** Percentage of range. */
    RANGE("CategoryLabelWidthType.RANGE");

    /** The name. */
    private String name;

    /**
     * Private constructor.
     *
     * @param name  the name (<code>null</code> not permitted).
     */
    private CategoryLabelWidthType(String name) {
        if (name == null) {
            throw new IllegalArgumentException("Null 'name' argument.");
        }
        this.name = name;
    }

    /**
     * Returns a string representing the object.
     *
     * @return The string (never </code>null</code>).
     */
    @Override
    public String toString() {
        return this.name;
    }

}

@@ -214,17 +214,17 @@
 2000-201
-2
+4
 , by Obj
@@ -1366,10 +1366,10 @@
 4-20
-08
+14
 , by
@@ -1599,16 +1599,60 @@
 xis;%0D%0A%0D%0A
+import org.jfree.chart.util.ParamChecks;%0D%0A%0D%0A
 /**%0D%0A * 
@@ -2043,25 +2043,20 @@
 me (
-%3C
+%7B@
 code
-%3E
+ 
 null
-%3C/code%3E
+%7D
  not
@@ -2141,112 +2141,51 @@
     
-if (name == null) %7B%0D%0A            throw new IllegalArgumentException(%22Null 'name' argument.%22);%0D%0A        %7D
+ParamChecks.nullNotPermitted(name, %22name%22);
 %0D%0A  
@@ -2322,26 +2322,20 @@
 ver 
-%3C/
+%7B@
 code
-%3E
+ 
 null
-%3C/code%3E
+%7D
 ).%0D%0A

Fix Javadoc warnings.