From: <mungady@us...>  20071113 11:40:23

Revision: 524 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=524&view=rev Author: mungady Date: 20071113 03:40:21 0800 (Tue, 13 Nov 2007) Log Message:  Fixed Checkstyle warnings. Modified Paths:  branches/jfreechart1.0.xbranch/source/org/jfree/chart/plot/CrosshairState.java Modified: branches/jfreechart1.0.xbranch/source/org/jfree/chart/plot/CrosshairState.java ===================================================================  branches/jfreechart1.0.xbranch/source/org/jfree/chart/plot/CrosshairState.java 20071113 11:39:23 UTC (rev 523) +++ branches/jfreechart1.0.xbranch/source/org/jfree/chart/plot/CrosshairState.java 20071113 11:40:21 UTC (rev 524) @@ 41,7 +41,7 @@ * 04Dec2003 : Crosshair anchor point now stored outside chart since it is * dependent on the display target (DG); * 25Feb2004 : Replaced CrosshairInfo > CrosshairState (DG);  *  JFREECHART 1.0.x  + *  JFREECHART 1.0.x  * 13Oct2006 : Fixed initialisation of CrosshairState  see bug report * 1565168 (DG); * 06Feb2007 : Added new fields and methods to fix bug 1086307 (DG); @@ 97,7 +97,8 @@ private int rangeAxisIndex; /**  * The smallest distance (so far) between the anchor point and a data point. + * The smallest distance (so far) between the anchor point and a data + * point. */ private double distance; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <mungady@us...>  20080625 07:35:51

Revision: 1242 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=1242&view=rev Author: mungady Date: 20080625 00:35:48 0700 (Wed, 25 Jun 2008) Log Message:  Whitespace. Modified Paths:  branches/jfreechart1.0.xbranch/source/org/jfree/chart/plot/CrosshairState.java Modified: branches/jfreechart1.0.xbranch/source/org/jfree/chart/plot/CrosshairState.java ===================================================================  branches/jfreechart1.0.xbranch/source/org/jfree/chart/plot/CrosshairState.java 20080625 07:26:57 UTC (rev 1241) +++ branches/jfreechart1.0.xbranch/source/org/jfree/chart/plot/CrosshairState.java 20080625 07:35:48 UTC (rev 1242) @@ 2,32 +2,32 @@ * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== *  * (C) Copyright 20002007, by Object Refinery Limited and Contributors. + * (C) Copyright 20002008, 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 021101301,  * USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 021101301, + * 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.] * *  * CrosshairState.java *   * (C) Copyright 20022007, by Object Refinery Limited. + * (C) Copyright 20022008, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); * Contributor(s): ; @@ 42,7 +42,7 @@ * dependent on the display target (DG); * 25Feb2004 : Replaced CrosshairInfo > CrosshairState (DG); *  JFREECHART 1.0.x   * 13Oct2006 : Fixed initialisation of CrosshairState  see bug report + * 13Oct2006 : Fixed initialisation of CrosshairState  see bug report * 1565168 (DG); * 06Feb2007 : Added new fields and methods to fix bug 1086307 (DG); * @@ 53,14 +53,14 @@ import java.awt.geom.Point2D; /**  * Maintains state information about crosshairs on a plot between successive  * calls to the renderer's draw method. This class is used internally by + * Maintains state information about crosshairs on a plot between successive + * calls to the renderer's draw method. This class is used internally by * JFreeChart  it is not intended for external use. */ public class CrosshairState {  /**  * A flag that controls whether the distance is calculated in data space + /** + * A flag that controls whether the distance is calculated in data space * or Java2D space. */ private boolean calculateDistanceInDataSpace = false; @@ 70,10 +70,10 @@ /** The yvalue (in data space) for the anchor point. */ private double anchorY;  + /** The anchor point in Java2D space  if null, don't update crosshair. */ private Point2D anchor;  + /** The xvalue for the current crosshair point. */ private double crosshairX; @@ 83,22 +83,22 @@ /** * The index of the domain axis that the crosshair xvalue is measured * against.  * + * * @since 1.0.4 */ private int domainAxisIndex;  + /** * The index of the range axis that the crosshair yvalue is measured * against.  * + * * @since 1.0.4 */ private int rangeAxisIndex;   /**  * The smallest distance (so far) between the anchor point and a data  * point. + + /** + * The smallest distance (so far) between the anchor point and a data + * point. */ private double distance; @@ 112,9 +112,9 @@ /** * Creates a new <code>CrosshairState</code> instance.  *  * @param calculateDistanceInDataSpace a flag that controls whether the  * distance is calculated in data + * + * @param calculateDistanceInDataSpace a flag that controls whether the + * distance is calculated in data * space or Java2D space. */ public CrosshairState(boolean calculateDistanceInDataSpace) { @@ 124,24 +124,24 @@ /** * Returns the distance between the anchor point and the current crosshair * point.  * + * * @return The distance.  * + * * @see #setCrosshairDistance(double) * @since 1.0.3 */ public double getCrosshairDistance() { return this.distance; }  + /**  * Sets the distance between the anchor point and the current crosshair  * point. As each data point is processed, its distance to the anchor  * point is compared with this value and, if it is closer, the data point + * Sets the distance between the anchor point and the current crosshair + * point. As each data point is processed, its distance to the anchor + * point is compared with this value and, if it is closer, the data point * becomes the new crosshair point. * * @param distance the distance.  * + * * @see #getCrosshairDistance() */ public void setCrosshairDistance(double distance) { @@ 153,7 +153,7 @@ * becomes the new crosshair point. * <P> * To understand this method, you need to know the context in which it will  * be called. An instance of this class is passed to an + * be called. An instance of this class is passed to an * {@link org.jfree.chart.renderer.xy.XYItemRenderer} as * each data point is plotted. As the point is plotted, it is passed to * this method to see if it should be the new crosshair point. @@ 163,22 +163,22 @@ * @param transX x translated into Java2D space. * @param transY y translated into Java2D space. * @param orientation the plot orientation.  *  * @deprecated Use {@link #updateCrosshairPoint(double, double, int, int, + * + * @deprecated Use {@link #updateCrosshairPoint(double, double, int, int, * double, double, PlotOrientation)}. See bug report 1086307. */  public void updateCrosshairPoint(double x, double y,  double transX, double transY, + public void updateCrosshairPoint(double x, double y, + double transX, double transY, PlotOrientation orientation) { updateCrosshairPoint(x, y, 0, 0, transX, transY, orientation); }  + /** * Evaluates a data point and if it is the closest to the anchor point it * becomes the new crosshair point. * <P> * To understand this method, you need to know the context in which it will  * be called. An instance of this class is passed to an + * be called. An instance of this class is passed to an * {@link org.jfree.chart.renderer.xy.XYItemRenderer} as * each data point is plotted. As the point is plotted, it is passed to * this method to see if it should be the new crosshair point. @@ 190,11 +190,11 @@ * @param transX x translated into Java2D space. * @param transY y translated into Java2D space. * @param orientation the plot orientation.  * + * * @since 1.0.4 */ public void updateCrosshairPoint(double x, double y, int domainAxisIndex,  int rangeAxisIndex, double transX, double transY, + int rangeAxisIndex, double transX, double transY, PlotOrientation orientation) { if (this.anchor != null) { @@ 211,8 +211,8 @@ yy = xx; xx = temp; }  d = (transX  xx) * (transX  xx)  + (transY  yy) * (transY  yy); + d = (transX  xx) * (transX  xx) + + (transY  yy) * (transY  yy); } if (d < this.distance) { @@ 232,26 +232,26 @@ * <P> * Used in cases where only the xaxis is numerical. *  * @param candidateX x position of the candidate for the new crosshair + * @param candidateX x position of the candidate for the new crosshair * point.  *  * @deprecated Use {@link #updateCrosshairX(double, int)}. See bug report + * + * @deprecated Use {@link #updateCrosshairX(double, int)}. See bug report * 1086307. */ public void updateCrosshairX(double candidateX) { updateCrosshairX(candidateX, 0); }  + /** * Evaluates an xvalue and if it is the closest to the anchor xvalue it * becomes the new crosshair value. * <P> * Used in cases where only the xaxis is numerical. *  * @param candidateX x position of the candidate for the new crosshair + * @param candidateX x position of the candidate for the new crosshair * point. * @param domainAxisIndex the index of the domain axis for this xvalue.  * + * * @since 1.0.4 */ public void updateCrosshairX(double candidateX, int domainAxisIndex) { @@ 271,10 +271,10 @@ * <P> * Used in cases where only the yaxis is numerical. *  * @param candidateY y position of the candidate for the new crosshair + * @param candidateY y position of the candidate for the new crosshair * point.  *  * @deprecated Use {@link #updateCrosshairY(double, int)}. See bug report + * + * @deprecated Use {@link #updateCrosshairY(double, int)}. See bug report * 1086307. */ public void updateCrosshairY(double candidateY) { @@ 287,10 +287,10 @@ * <P> * Used in cases where only the yaxis is numerical. *  * @param candidateY y position of the candidate for the new crosshair + * @param candidateY y position of the candidate for the new crosshair * point. * @param rangeAxisIndex the index of the range axis for this yvalue.  * + * * @since 1.0.4 */ public void updateCrosshairY(double candidateY, int rangeAxisIndex) { @@ 305,101 +305,101 @@ /** * Returns the anchor point.  * + * * @return The anchor point.  * + * * @see #setAnchor(Point2D) * @since 1.0.3 */ public Point2D getAnchor() {  return this.anchor; + return this.anchor; }   /** + + /** * Sets the anchor point. This is usually the mouse click point in a chart  * panel, and the crosshair point will often be the data item that is + * panel, and the crosshair point will often be the data item that is * closest to the anchor point. * <br><br>  * Note that the x and y coordinates (in data space) are not updated by + * Note that the x and y coordinates (in data space) are not updated by * this method  the caller is responsible for ensuring that this happens * in sync.  * + * * @param anchor the anchor point (<code>null</code> permitted).  * + * * @see #getAnchor() */ public void setAnchor(Point2D anchor) { this.anchor = anchor; }  + /** * Returns the xcoordinate (in data space) for the anchor point.  * + * * @return The xcoordinate of the anchor point.  * + * * @since 1.0.3 */ public double getAnchorX() {  return this.anchorX; + return this.anchorX; }  + /** * Sets the xcoordinate (in data space) for the anchor point. Note that * this does NOT update the anchor itself  the caller is responsible for * ensuring this is done in sync.  * + * * @param x the xcoordinate.  * + * * @since 1.0.3 */ public void setAnchorX(double x) { this.anchorX = x; }  + /** * Returns the ycoordinate (in data space) for the anchor point.  * + * * @return The ycoordinate of teh anchor point.  * + * * @since 1.0.3 */ public double getAnchorY() {  return this.anchorY; + return this.anchorY; }  + /** * Sets the ycoordinate (in data space) for the anchor point. Note that * this does NOT update the anchor itself  the caller is responsible for * ensuring this is done in sync.  * + * * @param y the ycoordinate.  * + * * @since 1.0.3 */ public void setAnchorY(double y) { this.anchorY = y; }  + /** * Get the xvalue for the crosshair point. * * @return The x position of the crosshair point.  * + * * @see #setCrosshairX(double) */ public double getCrosshairX() { return this.crosshairX; }  + /** * Sets the x coordinate for the crosshair. This is the coordinate in data * space measured against the domain axis.  * + * * @param x the coordinate.  * + * * @see #getCrosshairX() * @see #setCrosshairY(double)  * @see #updateCrosshairPoint(double, double, double, double, + * @see #updateCrosshairPoint(double, double, double, double, * PlotOrientation) */ public void setCrosshairX(double x) { @@ 411,7 +411,7 @@ * space measured against the range axis. * * @return The y position of the crosshair point.  * + * * @see #setCrosshairY(double) */ public double getCrosshairY() { @@ 420,23 +420,23 @@ /** * Sets the y coordinate for the crosshair.  * + * * @param y the y coordinate.  * + * * @see #getCrosshairY() * @see #setCrosshairX(double)  * @see #updateCrosshairPoint(double, double, double, double, + * @see #updateCrosshairPoint(double, double, double, double, * PlotOrientation) */ public void setCrosshairY(double y) { this.crosshairY = y; }  + /** * Returns the domain axis index for the crosshair xvalue.  * + * * @return The domain axis index.  * + * * @since 1.0.4 */ public int getDomainAxisIndex() { @@ 445,9 +445,9 @@ /** * Returns the range axis index for the crosshair yvalue.  * + * * @return The range axis index.  * + * * @since 1.0.4 */ public int getRangeAxisIndex() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 