Revision: 1318
http://jfreechart.svn.sourceforge.net/jfreechart/?rev=1318&view=rev
Author: mungady
Date: 2008-07-22 08:12:36 +0000 (Tue, 22 Jul 2008)
Log Message:
-----------
Whitespace.
Modified Paths:
--------------
trunk/source/org/jfree/data/general/Series.java
trunk/source/org/jfree/data/general/SeriesChangeEvent.java
trunk/source/org/jfree/data/general/SeriesChangeListener.java
trunk/source/org/jfree/data/general/SeriesDataset.java
trunk/source/org/jfree/data/general/SeriesException.java
trunk/source/org/jfree/data/general/SubSeriesDataset.java
trunk/source/org/jfree/data/general/ValueDataset.java
trunk/source/org/jfree/data/general/WaferMapDataset.java
Modified: trunk/source/org/jfree/data/general/Series.java
===================================================================
--- trunk/source/org/jfree/data/general/Series.java 2008-07-22 08:06:41 UTC (rev 1317)
+++ trunk/source/org/jfree/data/general/Series.java 2008-07-22 08:12:36 UTC (rev 1318)
@@ -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.]
*
* -----------
* Series.java
* -----------
- * (C) Copyright 2001-2007, by Object Refinery Limited.
+ * (C) Copyright 2001-2008, by Object Refinery Limited.
*
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): -;
@@ -36,21 +36,21 @@
* -------
* 15-Nov-2001 : Version 1 (DG);
* 29-Nov-2001 : Added cloning and property change support (DG);
- * 30-Jan-2002 : Added a description attribute and changed the constructors to
+ * 30-Jan-2002 : Added a description attribute and changed the constructors to
* protected (DG);
* 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
* 13-Mar-2003 : Implemented Serializable (DG);
* 01-May-2003 : Added equals() method (DG);
- * 26-Jun-2003 : Changed listener list to use EventListenerList - see bug
+ * 26-Jun-2003 : Changed listener list to use EventListenerList - see bug
* 757027 (DG);
- * 15-Oct-2003 : Added a flag to control whether or not change events are sent
+ * 15-Oct-2003 : Added a flag to control whether or not change events are sent
* to registered listeners (DG);
* 19-May-2005 : Made abstract (DG);
* ------------- JFREECHART 1.0.x ---------------------------------------------
* 04-May-2006 : Updated API docs (DG);
* 21-Jun-2007 : Removed JCommon dependencies (DG);
* 26-Sep-2007 : Added isEmpty() and getItemCount() methods (DG);
- *
+ *
*/
package org.jfree.data.general;
@@ -70,14 +70,14 @@
* The series has two properties ("Key" and "Description") for which you can
* register a <code>PropertyChangeListener</code>.
* <P>
- * You can also register a {@link SeriesChangeListener} to receive notification
+ * You can also register a {@link SeriesChangeListener} to receive notification
* of changes to the series data.
*/
public abstract class Series implements Cloneable, Serializable {
/** For serialization. */
private static final long serialVersionUID = -6906561437538683581L;
-
+
/** The key for the series. */
private Comparable key;
@@ -94,7 +94,7 @@
private boolean notify;
/**
- * Creates a new series with the specified key.
+ * Creates a new series with the specified key.
*
* @param key the series key (<code>null</code> not permitted).
*/
@@ -116,14 +116,14 @@
this.description = description;
this.listeners = new EventListenerList();
this.propertyChangeSupport = new PropertyChangeSupport(this);
- this.notify = true;
+ this.notify = true;
}
/**
* Returns the key for the series.
*
* @return The series key (never <code>null</code>).
- *
+ *
* @see #setKey(Comparable)
*/
public Comparable getKey() {
@@ -131,11 +131,11 @@
}
/**
- * Sets the key for the series and sends a <code>PropertyChangeEvent</code>
+ * Sets the key for the series and sends a <code>PropertyChangeEvent</code>
* (with the property name "Key") to all registered listeners.
*
* @param key the key (<code>null</code> not permitted).
- *
+ *
* @see #getKey()
*/
public void setKey(Comparable key) {
@@ -151,7 +151,7 @@
* Returns a description of the series.
*
* @return The series description (possibly <code>null</code>).
- *
+ *
* @see #setDescription(String)
*/
public String getDescription() {
@@ -159,38 +159,38 @@
}
/**
- * Sets the description of the series and sends a
+ * Sets the description of the series and sends a
* <code>PropertyChangeEvent</code> to all registered listeners.
*
* @param description the description (<code>null</code> permitted).
- *
+ *
* @see #getDescription()
*/
public void setDescription(String description) {
String old = this.description;
this.description = description;
- this.propertyChangeSupport.firePropertyChange("Description", old,
+ this.propertyChangeSupport.firePropertyChange("Description", old,
description);
}
/**
- * Returns the flag that controls whether or not change events are sent to
+ * Returns the flag that controls whether or not change events are sent to
* registered listeners.
- *
+ *
* @return A boolean.
- *
+ *
* @see #setNotify(boolean)
*/
public boolean getNotify() {
return this.notify;
}
-
+
/**
- * Sets the flag that controls whether or not change events are sent to
+ * Sets the flag that controls whether or not change events are sent to
* registered listeners.
- *
+ *
* @param notify the new value of the flag.
- *
+ *
* @see #getNotify()
*/
public void setNotify(boolean notify) {
@@ -199,41 +199,41 @@
fireSeriesChanged();
}
}
-
+
/**
* Returns <code>true</code> if the series contains no data items, and
* <code>false</code> otherwise.
- *
+ *
* @return A boolean.
- *
+ *
* @since 1.0.7
*/
public boolean isEmpty() {
return (getItemCount() == 0);
}
-
+
/**
* Returns the number of data items in the series.
- *
+ *
* @return The number of data items in the series.
*/
public abstract int getItemCount();
-
+
/**
* Returns a clone of the series.
* <P>
* Notes:
* <ul>
- * <li>No need to clone the name or description, since String object is
+ * <li>No need to clone the name or description, since String object is
* immutable.</li>
- * <li>We set the listener list to empty, since the listeners did not
+ * <li>We set the listener list to empty, since the listeners did not
* register with the clone.</li>
* <li>Same applies to the PropertyChangeSupport instance.</li>
* </ul>
*
* @return A clone of the series.
- *
- * @throws CloneNotSupportedException not thrown by this class, but
+ *
+ * @throws CloneNotSupportedException not thrown by this class, but
* subclasses may differ.
*/
public Object clone() throws CloneNotSupportedException {
@@ -271,22 +271,22 @@
/**
* Returns a hash code.
- *
+ *
* @return A hash code.
*/
public int hashCode() {
int result;
result = this.key.hashCode();
- result = 29 * result + (this.description != null
+ result = 29 * result + (this.description != null
? this.description.hashCode() : 0);
return result;
}
/**
- * Registers an object with this series, to receive notification whenever
+ * Registers an object with this series, to receive notification whenever
* the series changes.
* <P>
- * Objects being registered must implement the {@link SeriesChangeListener}
+ * Objects being registered must implement the {@link SeriesChangeListener}
* interface.
*
* @param listener the listener to register.
@@ -296,7 +296,7 @@
}
/**
- * Deregisters an object, so that it not longer receives notification
+ * Deregisters an object, so that it not longer receives notification
* whenever the series changes.
*
* @param listener the listener to deregister.
@@ -318,7 +318,7 @@
/**
* Sends a change event to all registered listeners.
*
- * @param event contains information about the event that triggered the
+ * @param event contains information about the event that triggered the
* notification.
*/
protected void notifyListeners(SeriesChangeEvent event) {
@@ -358,9 +358,9 @@
* @param oldValue the old value.
* @param newValue the new value.
*/
- protected void firePropertyChange(String property, Object oldValue,
+ protected void firePropertyChange(String property, Object oldValue,
Object newValue) {
- this.propertyChangeSupport.firePropertyChange(property, oldValue,
+ this.propertyChangeSupport.firePropertyChange(property, oldValue,
newValue);
}
Modified: trunk/source/org/jfree/data/general/SeriesChangeEvent.java
===================================================================
--- trunk/source/org/jfree/data/general/SeriesChangeEvent.java 2008-07-22 08:06:41 UTC (rev 1317)
+++ trunk/source/org/jfree/data/general/SeriesChangeEvent.java 2008-07-22 08:12:36 UTC (rev 1318)
@@ -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.]
*
* ----------------------
* SeriesChangeEvent.java
* ----------------------
- * (C) Copyright 2001-2007, by Object Refinery Limited.
+ * (C) Copyright 2001-2008, by Object Refinery Limited.
*
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): -;
@@ -51,7 +51,7 @@
/** For serialization. */
private static final long serialVersionUID = 1593866085210089052L;
-
+
/**
* Constructs a new event.
*
Modified: trunk/source/org/jfree/data/general/SeriesChangeListener.java
===================================================================
--- trunk/source/org/jfree/data/general/SeriesChangeListener.java 2008-07-22 08:06:41 UTC (rev 1317)
+++ trunk/source/org/jfree/data/general/SeriesChangeListener.java 2008-07-22 08:12:36 UTC (rev 1318)
@@ -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.]
*
* -------------------------
* SeriesChangeListener.java
* -------------------------
- * (C) Copyright 2001-2007, by Object Refinery Limited.
+ * (C) Copyright 2001-2008, by Object Refinery Limited.
*
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): -;
@@ -35,7 +35,7 @@
* Changes
* -------
* 15-Nov-2001 : Version 1 (DG);
- * 26-Jun-2003 : Now extends EventListener so we can use the EventListenerList
+ * 26-Jun-2003 : Now extends EventListener so we can use the EventListenerList
* mechanism (DG);
*
*/
Modified: trunk/source/org/jfree/data/general/SeriesDataset.java
===================================================================
--- trunk/source/org/jfree/data/general/SeriesDataset.java 2008-07-22 08:06:41 UTC (rev 1317)
+++ trunk/source/org/jfree/data/general/SeriesDataset.java 2008-07-22 08:12:36 UTC (rev 1318)
@@ -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.]
*
* ------------------
* SeriesDataset.java
* ------------------
- * (C) Copyright 2000-2007, by Object Refinery Limited.
+ * (C) Copyright 2000-2008, by Object Refinery Limited.
*
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): -;
@@ -38,7 +38,7 @@
* 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
* 19-May-2005 : Changed getSeriesName() --> getSeriesKey() and added indexOf()
* method (DG);
- *
+ *
*/
package org.jfree.data.general;
@@ -70,7 +70,7 @@
/**
* Returns the key for a series.
*
- * @param series the series index (in the range <code>0</code> to
+ * @param series the series index (in the range <code>0</code> to
* <code>getSeriesCount() - 1</code>).
*
* @return The key for the series.
@@ -78,13 +78,13 @@
public Comparable getSeriesKey(int series);
/**
- * Returns the index of the series with the specified key, or -1 if there
+ * Returns the index of the series with the specified key, or -1 if there
* is no such series in the dataset.
- *
+ *
* @param seriesKey the series key (<code>null</code> permitted).
- *
+ *
* @return The index, or -1.
*/
public int indexOf(Comparable seriesKey);
-
+
}
Modified: trunk/source/org/jfree/data/general/SeriesException.java
===================================================================
--- trunk/source/org/jfree/data/general/SeriesException.java 2008-07-22 08:06:41 UTC (rev 1317)
+++ trunk/source/org/jfree/data/general/SeriesException.java 2008-07-22 08:12:36 UTC (rev 1318)
@@ -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.]
*
* --------------------
* SeriesException.java
* --------------------
- * (C) Copyright 2001-2007, by Object Refinery Limited.
+ * (C) Copyright 2001-2008, by Object Refinery Limited.
*
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): -;
@@ -51,7 +51,7 @@
/** For serialization. */
private static final long serialVersionUID = -3667048387550852940L;
-
+
/**
* Constructs a new series exception.
*
Modified: trunk/source/org/jfree/data/general/SubSeriesDataset.java
===================================================================
--- trunk/source/org/jfree/data/general/SubSeriesDataset.java 2008-07-22 08:06:41 UTC (rev 1317)
+++ trunk/source/org/jfree/data/general/SubSeriesDataset.java 2008-07-22 08:12:36 UTC (rev 1318)
@@ -6,22 +6,22 @@
*
* 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.]
*
* ---------------------
@@ -36,13 +36,13 @@
* Changes
* -------
* 06-Dec-2001 : Version 1 (BK);
- * 05-Feb-2002 : Added SignalsDataset (and small change to HighLowDataset
+ * 05-Feb-2002 : Added SignalsDataset (and small change to HighLowDataset
* interface) as requested by Sylvain Vieujot (DG);
- * 28-Feb-2002 : Fixed bug: missing map[series] in IntervalXYDataset and
+ * 28-Feb-2002 : Fixed bug: missing map[series] in IntervalXYDataset and
* SignalsDataset methods (BK);
* 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
* 06-May-2004 : Now extends AbstractIntervalXYDataset (DG);
- * 15-Jul-2004 : Switched getX() with getXValue() and getY() with
+ * 15-Jul-2004 : Switched getX() with getXValue() and getY() with
* getYValue() (DG);
* 29-Nov-2005 : Removed SignalsDataset (DG);
* ------------- JFREECHART 1.0.x ---------------------------------------------
@@ -59,12 +59,10 @@
/**
* This class will create a dataset with one or more series from another
- * {@link SeriesDataset}.
+ * {@link SeriesDataset}.
*/
public class SubSeriesDataset extends AbstractIntervalXYDataset
- implements OHLCDataset,
- IntervalXYDataset,
- CombinationDataset {
+ implements OHLCDataset, IntervalXYDataset, CombinationDataset {
/** The parent dataset. */
private SeriesDataset parent = null;
@@ -73,7 +71,7 @@
private int[] map; // maps our series into our parent's
/**
- * Creates a SubSeriesDataset using one or more series from
+ * Creates a SubSeriesDataset using one or more series from
* <code>parent</code>. The series to use are passed as an array of int.
*
* @param parent underlying dataset
@@ -102,7 +100,7 @@
/**
* Returns the high-value for the specified series and item.
* <p>
- * Note: throws <code>ClassCastException</code> if the series if not from a
+ * Note: throws <code>ClassCastException</code> if the series if not from a
* {@link OHLCDataset}.
*
* @param series the index of the series of interest (zero-based).
@@ -115,27 +113,27 @@
}
/**
- * Returns the high-value (as a double primitive) for an item within a
+ * Returns the high-value (as a double primitive) for an item within a
* series.
- *
+ *
* @param series the series (zero-based index).
* @param item the item (zero-based index).
- *
+ *
* @return The high-value.
*/
public double getHighValue(int series, int item) {
double result = Double.NaN;
Number high = getHigh(series, item);
if (high != null) {
- result = high.doubleValue();
+ result = high.doubleValue();
}
- return result;
+ return result;
}
/**
* Returns the low-value for the specified series and item.
* <p>
- * Note: throws <code>ClassCastException</code> if the series if not from a
+ * Note: throws <code>ClassCastException</code> if the series if not from a
* {@link OHLCDataset}.
*
* @param series the index of the series of interest (zero-based).
@@ -148,27 +146,27 @@
}
/**
- * Returns the low-value (as a double primitive) for an item within a
+ * Returns the low-value (as a double primitive) for an item within a
* series.
- *
+ *
* @param series the series (zero-based index).
* @param item the item (zero-based index).
- *
+ *
* @return The low-value.
*/
public double getLowValue(int series, int item) {
double result = Double.NaN;
Number low = getLow(series, item);
if (low != null) {
- result = low.doubleValue();
+ result = low.doubleValue();
}
- return result;
+ return result;
}
/**
* Returns the open-value for the specified series and item.
* <p>
- * Note: throws <code>ClassCastException</code> if the series if not from a
+ * Note: throws <code>ClassCastException</code> if the series if not from a
* {@link OHLCDataset}.
*
* @param series the index of the series of interest (zero-based).
@@ -181,27 +179,27 @@
}
/**
- * Returns the open-value (as a double primitive) for an item within a
+ * Returns the open-value (as a double primitive) for an item within a
* series.
- *
+ *
* @param series the series (zero-based index).
* @param item the item (zero-based index).
- *
+ *
* @return The open-value.
*/
public double getOpenValue(int series, int item) {
double result = Double.NaN;
Number open = getOpen(series, item);
if (open != null) {
- result = open.doubleValue();
+ result = open.doubleValue();
}
- return result;
+ return result;
}
/**
* Returns the close-value for the specified series and item.
* <p>
- * Note: throws <code>ClassCastException</code> if the series if not from a
+ * Note: throws <code>ClassCastException</code> if the series if not from a
* {@link OHLCDataset}.
*
* @param series the index of the series of interest (zero-based).
@@ -214,27 +212,27 @@
}
/**
- * Returns the close-value (as a double primitive) for an item within a
+ * Returns the close-value (as a double primitive) for an item within a
* series.
- *
+ *
* @param series the series (zero-based index).
* @param item the item (zero-based index).
- *
+ *
* @return The close-value.
*/
public double getCloseValue(int series, int item) {
double result = Double.NaN;
Number close = getClose(series, item);
if (close != null) {
- result = close.doubleValue();
+ result = close.doubleValue();
}
- return result;
+ return result;
}
/**
* Returns the volume.
* <p>
- * Note: throws <code>ClassCastException</code> if the series if not from a
+ * Note: throws <code>ClassCastException</code> if the series if not from a
* {@link OHLCDataset}.
*
* @param series the series (zero based index).
@@ -247,21 +245,21 @@
}
/**
- * Returns the volume-value (as a double primitive) for an item within a
+ * Returns the volume-value (as a double primitive) for an item within a
* series.
- *
+ *
* @param series the series (zero-based index).
* @param item the item (zero-based index).
- *
+ *
* @return The volume-value.
*/
public double getVolumeValue(int series, int item) {
double result = Double.NaN;
Number volume = getVolume(series, item);
if (volume != null) {
- result = volume.doubleValue();
+ result = volume.doubleValue();
}
- return result;
+ return result;
}
///////////////////////////////////////////////////////////////////////////
@@ -271,7 +269,7 @@
/**
* Returns the X-value for the specified series and item.
* <p>
- * Note: throws <code>ClassCastException</code> if the series if not from a
+ * Note: throws <code>ClassCastException</code> if the series if not from a
* {@link XYDataset}.
*
* @param series the index of the series of interest (zero-based);
@@ -286,7 +284,7 @@
/**
* Returns the Y-value for the specified series and item.
* <p>
- * Note: throws <code>ClassCastException</code> if the series if not from a
+ * Note: throws <code>ClassCastException</code> if the series if not from a
* {@link XYDataset}.
*
* @param series the index of the series of interest (zero-based).
@@ -301,7 +299,7 @@
/**
* Returns the number of items in a series.
* <p>
- * Note: throws <code>ClassCastException</code> if the series if not from a
+ * Note: throws <code>ClassCastException</code> if the series if not from a
* {@link XYDataset}.
*
* @param series the index of the series of interest (zero-based).
Modified: trunk/source/org/jfree/data/general/ValueDataset.java
===================================================================
--- trunk/source/org/jfree/data/general/ValueDataset.java 2008-07-22 08:06:41 UTC (rev 1317)
+++ trunk/source/org/jfree/data/general/ValueDataset.java 2008-07-22 08:12:36 UTC (rev 1318)
@@ -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.]
*
* -----------------
* ValueDataset.java
* -----------------
- * (C) Copyright 2003-2007, by Object Refinery Limited.
+ * (C) Copyright 2003-2008, by Object Refinery Limited.
*
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): -;
Modified: trunk/source/org/jfree/data/general/WaferMapDataset.java
===================================================================
--- trunk/source/org/jfree/data/general/WaferMapDataset.java 2008-07-22 08:06:41 UTC (rev 1317)
+++ trunk/source/org/jfree/data/general/WaferMapDataset.java 2008-07-22 08:12:36 UTC (rev 1318)
@@ -2,43 +2,43 @@
* 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.]
*
* --------------------
* WaferMapDataset.java
* --------------------
- * (C)opyright 2003-2007, by Robert Redburn and Contributors.
+ * (C)opyright 2003-2008, by Robert Redburn and Contributors.
*
* Original Author: Robert Redburn;
* Contributor(s): David Gilbert (for Object Refinery Limited);
*
* Changes
* -------
- * 25-Nov-2003 : Version 1 contributed by Robert Redburn (with some
+ * 25-Nov-2003 : Version 1 contributed by Robert Redburn (with some
* modifications to match style conventions) (DG);
* ------------- JFREECHART 1.0.x ---------------------------------------------
* 02-Feb-2007 : Removed author tags from all over JFreeChart sources (DG);
- *
+ *
*/
package org.jfree.data.general;
@@ -54,57 +54,57 @@
*/
public class WaferMapDataset extends AbstractDataset {
- /**
- * Storage structure for the data values (row key is chipx, column is
+ /**
+ * Storage structure for the data values (row key is chipx, column is
* chipy)
*/
private DefaultKeyedValues2D data;
-
+
/** wafer x dimension */
private int maxChipX;
-
+
/** wafer y dimension */
private int maxChipY;
-
+
/** space to draw between chips */
private double chipSpace;
-
+
/** maximum value in this dataset */
private Double maxValue;
-
+
/** minimum value in this dataset */
private Double minValue;
-
+
/** default chip spacing */
private static final double DEFAULT_CHIP_SPACE = 1d;
-
+
/**
* Creates a new dataset using the default chipspace.
- *
+ *
* @param maxChipX the wafer x-dimension.
* @param maxChipY the wafer y-dimension.
*/
public WaferMapDataset(int maxChipX, int maxChipY) {
this(maxChipX, maxChipY, null);
}
-
+
/**
* Creates a new dataset.
- *
- * @param maxChipX the wafer x-dimension.
+ *
+ * @param maxChipX the wafer x-dimension.
* @param maxChipY the wafer y-dimension.
* @param chipSpace the space between chips.
*/
public WaferMapDataset(int maxChipX, int maxChipY, Number chipSpace) {
-
+
this.maxValue = new Double(Double.NEGATIVE_INFINITY);
this.minValue = new Double(Double.POSITIVE_INFINITY);
this.data = new DefaultKeyedValues2D();
-
+
this.maxChipX = maxChipX;
this.maxChipY = maxChipY;
if (chipSpace == null) {
- this.chipSpace = DEFAULT_CHIP_SPACE;
+ this.chipSpace = DEFAULT_CHIP_SPACE;
}
else {
this.chipSpace = chipSpace.doubleValue();
@@ -114,7 +114,7 @@
/**
* Sets a value in the dataset.
- *
+ *
* @param value the value.
* @param chipx the x-index for the chip.
* @param chipy the y-index for the chip.
@@ -122,10 +122,10 @@
public void addValue(Number value, Comparable chipx, Comparable chipy) {
setValue(value, chipx, chipy);
}
-
+
/**
* Adds a value to the dataset.
- *
+ *
* @param v the value.
* @param x the x-index.
* @param y the y-index.
@@ -133,10 +133,10 @@
public void addValue(int v, int x, int y) {
setValue(new Double(v), new Integer(x), new Integer(y));
}
-
+
/**
* Sets a value in the dataset and updates min and max value entries.
- *
+ *
* @param value the value.
* @param chipx the x-index.
* @param chipy the y-index.
@@ -153,7 +153,7 @@
/**
* Returns the number of unique values.
- *
+ *
* @return The number of unique values.
*/
public int getUniqueValueCount() {
@@ -162,7 +162,7 @@
/**
* Returns the set of unique values.
- *
+ *
* @return The set of unique values.
*/
public Set getUniqueValues() {
@@ -181,10 +181,10 @@
/**
* Returns the data value for a chip.
- *
+ *
* @param chipx the x-index.
* @param chipy the y-index.
- *
+ *
* @return The data value.
*/
public Number getChipValue(int chipx, int chipy) {
@@ -193,10 +193,10 @@
/**
* Returns the value for a given chip x and y or null.
- *
+ *
* @param chipx the x-index.
* @param chipy the y-index.
- *
+ *
* @return The data value.
*/
public Number getChipValue(Comparable chipx, Comparable chipy) {
@@ -213,9 +213,9 @@
/**
* Tests to see if the passed value is larger than the stored maxvalue.
- *
+ *
* @param check the number to check.
- *
+ *
* @return A boolean.
*/
public boolean isMaxValue(Number check) {
@@ -227,9 +227,9 @@
/**
* Tests to see if the passed value is smaller than the stored minvalue.
- *
+ *
* @param check the number to check.
- *
+ *
* @return A boolean.
*/
public boolean isMinValue(Number check) {
@@ -238,28 +238,28 @@
}
return false;
}
-
- /**
+
+ /**
* Returns the maximum value stored in the dataset.
- *
+ *
* @return The maximum value.
*/
public Number getMaxValue() {
- return this.maxValue;
+ return this.maxValue;
}
-
- /**
+
+ /**
* Returns the minimum value stored in the dataset.
- *
+ *
* @return The minimum value.
*/
public Number getMinValue() {
- return this.minValue;
+ return this.minValue;
}
/**
* Returns the wafer x-dimension.
- *
+ *
* @return The number of chips in the x-dimension.
*/
public int getMaxChipX() {
@@ -268,7 +268,7 @@
/**
* Sets wafer x dimension.
- *
+ *
* @param maxChipX the number of chips in the x-dimension.
*/
public void setMaxChipX(int maxChipX) {
@@ -277,7 +277,7 @@
/**
* Returns the number of chips in the y-dimension.
- *
+ *
* @return The number of chips.
*/
public int getMaxChipY() {
@@ -286,7 +286,7 @@
/**
* Sets the number of chips in the y-dimension.
- *
+ *
* @param maxChipY the number of chips.
*/
public void setMaxChipY(int maxChipY) {
@@ -295,7 +295,7 @@
/**
* Returns the space to draw between chips.
- *
+ *
* @return The space.
*/
public double getChipSpace() {
@@ -304,11 +304,11 @@
/**
* Sets the space to draw between chips.
- *
+ *
* @param space the space.
*/
public void setChipSpace(double space) {
this.chipSpace = space;
}
-
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|