diff options
Diffstat (limited to 'libjava/java/awt/geom')
-rw-r--r-- | libjava/java/awt/geom/Area.java | 4 | ||||
-rw-r--r-- | libjava/java/awt/geom/CubicCurve2D.java | 8 | ||||
-rw-r--r-- | libjava/java/awt/geom/Dimension2D.java | 4 | ||||
-rw-r--r-- | libjava/java/awt/geom/Ellipse2D.java | 6 | ||||
-rw-r--r-- | libjava/java/awt/geom/IllegalPathStateException.java | 2 | ||||
-rw-r--r-- | libjava/java/awt/geom/Line2D.java | 8 | ||||
-rw-r--r-- | libjava/java/awt/geom/NoninvertibleTransformException.java | 2 | ||||
-rw-r--r-- | libjava/java/awt/geom/PathIterator.java | 4 | ||||
-rw-r--r-- | libjava/java/awt/geom/Point2D.java | 4 | ||||
-rw-r--r-- | libjava/java/awt/geom/QuadCurve2D.java | 9 | ||||
-rw-r--r-- | libjava/java/awt/geom/Rectangle2D.java | 14 | ||||
-rw-r--r-- | libjava/java/awt/geom/RectangularShape.java | 4 | ||||
-rw-r--r-- | libjava/java/awt/geom/RoundRectangle2D.java | 2 |
13 files changed, 33 insertions, 38 deletions
diff --git a/libjava/java/awt/geom/Area.java b/libjava/java/awt/geom/Area.java index 9b1b9d3b109..68f905f08f4 100644 --- a/libjava/java/awt/geom/Area.java +++ b/libjava/java/awt/geom/Area.java @@ -2631,11 +2631,9 @@ public class Area implements Shape, Cloneable double P = (y2 - 2 * y1 + y0); double Q = 2 * (y1 - y0); - double R = y0; double A = (x2 - 2 * x1 + x0); double B = 2 * (x1 - x0); - double C = x0; double area = (B * P - A * Q) / 3.0; return (area); @@ -2937,12 +2935,10 @@ public class Area implements Shape, Cloneable double P = y3 - 3 * y2 + 3 * y1 - y0; double Q = 3 * (y2 + y0 - 2 * y1); double R = 3 * (y1 - y0); - double S = y0; double A = x3 - 3 * x2 + 3 * x1 - x0; double B = 3 * (x2 + x0 - 2 * x1); double C = 3 * (x1 - x0); - double D = x0; double area = (B * P - A * Q) / 5.0 + (C * P - A * R) / 2.0 + (C * Q - B * R) / 3.0; diff --git a/libjava/java/awt/geom/CubicCurve2D.java b/libjava/java/awt/geom/CubicCurve2D.java index 20373061d18..1c500b00b5e 100644 --- a/libjava/java/awt/geom/CubicCurve2D.java +++ b/libjava/java/awt/geom/CubicCurve2D.java @@ -642,11 +642,11 @@ public abstract class CubicCurve2D implements Shape, Cloneable * @see #solveCubic(double[], double[]) * @see QuadCurve2D#solveQuadratic(double[],double[]) * - * @author <a href="mailto:bjg@network-theory.com">Brian Gough</a> + * @author Brian Gough (bjg@network-theory.com) * (original C implementation in the <a href= * "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) * - * @author <a href="mailto:brawer@dandelis.ch">Sascha Brawer</a> + * @author Sascha Brawer (brawer@dandelis.ch) * (adaptation to Java) */ public static int solveCubic(double[] eqn) @@ -689,11 +689,11 @@ public abstract class CubicCurve2D implements Shape, Cloneable * result of -1 indicates that the equation is constant (i.e., * always or never zero). * - * @author <a href="mailto:bjg@network-theory.com">Brian Gough</a> + * @author Brain Gouph (bjg@network-theory.com) * (original C implementation in the <a href= * "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) * - * @author <a href="mailto:brawer@dandelis.ch">Sascha Brawer</a> + * @author Sascha Brawer (brawer@dandelis.ch) * (adaptation to Java) */ public static int solveCubic(double[] eqn, double[] res) diff --git a/libjava/java/awt/geom/Dimension2D.java b/libjava/java/awt/geom/Dimension2D.java index dbbdf6b25b3..8654c745ec0 100644 --- a/libjava/java/awt/geom/Dimension2D.java +++ b/libjava/java/awt/geom/Dimension2D.java @@ -42,8 +42,8 @@ package java.awt.geom; * This stores a dimension in 2-dimensional space - a width (along the x-axis) * and height (along the y-axis). The storage is left to subclasses. * - * @author Per Bothner <bothner@cygnus.com> - * @author Eric Blake <ebb9@email.byu.edu> + * @author Per Bothner (bothner@cygnus.com) + * @author Eric Blake (ebb9@email.byu.edu) * @since 1.2 * @status updated to 1.4 */ diff --git a/libjava/java/awt/geom/Ellipse2D.java b/libjava/java/awt/geom/Ellipse2D.java index bd64adf1e3a..85ba1d1e9a5 100644 --- a/libjava/java/awt/geom/Ellipse2D.java +++ b/libjava/java/awt/geom/Ellipse2D.java @@ -46,10 +46,10 @@ package java.awt.geom; * The ellipse is defined by it's bounding box (shown in red), * and is defined by the implicit curve:<BR> * <blockquote>(<i>x</i>/<i>a</i>)<sup>2</sup> + - * (<i>y</i>/<i>b</i>)<sup>2</sup> = 1<BR><BR> + * (<i>y</i>/<i>b</i>)<sup>2</sup> = 1<BR><BR></blockquote> * - * @author Tom Tromey <tromey@cygnus.com> - * @author Eric Blake <ebb9@email.byu.edu> + * @author Tom Tromey (tromey@cygnus.com) + * @author Eric Blake (ebb9@email.byu.edu) * * @since 1.2 */ diff --git a/libjava/java/awt/geom/IllegalPathStateException.java b/libjava/java/awt/geom/IllegalPathStateException.java index f0e388aac55..3aa432df14c 100644 --- a/libjava/java/awt/geom/IllegalPathStateException.java +++ b/libjava/java/awt/geom/IllegalPathStateException.java @@ -41,7 +41,7 @@ package java.awt.geom; * Thrown when an operation on a path is in an illegal state, such as appending * a segment to a <code>GeneralPath</code> without an initial moveto. * - * @author Tom Tromey <tromey@cygnus.com> + * @author Tom Tromey (tromey@cygnus.com) * @see GeneralPath * @status updated to 1.4 */ diff --git a/libjava/java/awt/geom/Line2D.java b/libjava/java/awt/geom/Line2D.java index 05eedcde4b2..3b64f455727 100644 --- a/libjava/java/awt/geom/Line2D.java +++ b/libjava/java/awt/geom/Line2D.java @@ -46,8 +46,8 @@ import java.util.NoSuchElementException; * Remember, on-screen graphics have increasing x from left-to-right, and * increasing y from top-to-bottom. The storage is left to subclasses. * - * @author Tom Tromey <tromey@cygnus.com> - * @author Eric Blake <ebb9@email.byu.edu> + * @author Tom Tromey (tromey@cygnus.com) + * @author Eric Blake (ebb9@email.byu.edu) * @author David Gilbert * @since 1.2 * @status updated to 1.4 @@ -867,7 +867,7 @@ public abstract class Line2D implements Shape, Cloneable /** * This class defines a point in <code>double</code> precision. * - * @author Eric Blake <ebb9@email.byu.edu> + * @author Eric Blake (ebb9@email.byu.edu) * @since 1.2 * @status updated to 1.4 */ @@ -1017,7 +1017,7 @@ public abstract class Line2D implements Shape, Cloneable /** * This class defines a point in <code>float</code> precision. * - * @author Eric Blake <ebb9@email.byu.edu> + * @author Eric Blake (ebb9@email.byu.edu) * @since 1.2 * @status updated to 1.4 */ diff --git a/libjava/java/awt/geom/NoninvertibleTransformException.java b/libjava/java/awt/geom/NoninvertibleTransformException.java index 40b2c180298..0fa36674d4e 100644 --- a/libjava/java/awt/geom/NoninvertibleTransformException.java +++ b/libjava/java/awt/geom/NoninvertibleTransformException.java @@ -42,7 +42,7 @@ package java.awt.geom; * <code>AffineTransform</code>, but the transform is in a non-invertible * state. * - * @author Tom Tromey <tromey@cygnus.com> + * @author Tom Tromey (tromey@cygnus.com) * @see AffineTransform * @status updated to 1.4 */ diff --git a/libjava/java/awt/geom/PathIterator.java b/libjava/java/awt/geom/PathIterator.java index 8076b5c8353..6d38911b732 100644 --- a/libjava/java/awt/geom/PathIterator.java +++ b/libjava/java/awt/geom/PathIterator.java @@ -44,8 +44,8 @@ package java.awt.geom; * MOVETO directive, and can close a circular path back to the previos * MOVETO via the CLOSE directive. * - * @author Tom Tromey <tromey@cygnus.com> - * @author Eric Blake <ebb9@email.byu.edu> + * @author Tom Tromey (tromey@cygnus.com) + * @author Eric Blake (ebb9@email.byu.edu) * @see java.awt.Shape * @see java.awt.Stroke * @see FlatteningPathIterator diff --git a/libjava/java/awt/geom/Point2D.java b/libjava/java/awt/geom/Point2D.java index d27505fa41d..e334ac7806b 100644 --- a/libjava/java/awt/geom/Point2D.java +++ b/libjava/java/awt/geom/Point2D.java @@ -229,7 +229,7 @@ public abstract class Point2D implements Cloneable /** * This class defines a point in <code>double</code> precision. * - * @author Eric Blake <ebb9@email.byu.edu> + * @author Eric Blake (ebb9@email.byu.edu) * @since 1.2 * @status updated to 1.4 */ @@ -307,7 +307,7 @@ public abstract class Point2D implements Cloneable /** * This class defines a point in <code>float</code> precision. * - * @author Eric Blake <ebb9@email.byu.edu> + * @author Eric Blake (ebb9@email.byu.edu) * @since 1.2 * @status updated to 1.4 */ diff --git a/libjava/java/awt/geom/QuadCurve2D.java b/libjava/java/awt/geom/QuadCurve2D.java index 0376d5a01af..db7c2abf2ec 100644 --- a/libjava/java/awt/geom/QuadCurve2D.java +++ b/libjava/java/awt/geom/QuadCurve2D.java @@ -41,7 +41,6 @@ import java.awt.Rectangle; import java.awt.Shape; import java.util.NoSuchElementException; - /** * A two-dimensional curve that is parameterized with a quadratic * function. @@ -563,11 +562,11 @@ public abstract class QuadCurve2D implements Shape, Cloneable * result of -1 indicates that the equation is constant (i.e., * always or never zero). * - * @author <a href="mailto:bjg@network-theory.com">Brian Gough</a> + * @author Brain Gouph (bjg@network-theory.com) * (original C implementation in the <a href= * "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) * - * @author <a href="mailto:brawer@dandelis.ch">Sascha Brawer</a> + * @author Sascha Brawer (brawer@dandelis.ch) * (adaptation to Java) */ public static int solveQuadratic(double[] eqn) @@ -608,11 +607,11 @@ public abstract class QuadCurve2D implements Shape, Cloneable * result of -1 indicates that the equation is constant (i.e., * always or never zero). * - * @author <a href="mailto:bjg@network-theory.com">Brian Gough</a> + * @author Brian Gouph (bjg@network-theory.com) * (original C implementation in the <a href= * "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) * - * @author <a href="mailto:brawer@dandelis.ch">Sascha Brawer</a> + * @author Sascha Brawer (brawer@dandelis.ch) * (adaptation to Java) */ public static int solveQuadratic(double[] eqn, double[] res) diff --git a/libjava/java/awt/geom/Rectangle2D.java b/libjava/java/awt/geom/Rectangle2D.java index bd1a37c6e09..d8217fecdb5 100644 --- a/libjava/java/awt/geom/Rectangle2D.java +++ b/libjava/java/awt/geom/Rectangle2D.java @@ -1,5 +1,5 @@ /* Rectangle2D.java -- generic rectangles in 2-D space - Copyright (C) 2000, 2001, 2002 Free Software Foundation + Copyright (C) 2000, 2001, 2002, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -57,30 +57,30 @@ import java.util.NoSuchElementException; public abstract class Rectangle2D extends RectangularShape { /** - * The point lies left of the rectangle (p.x < r.x). + * The point lies left of the rectangle (p.x < r.x). * - * @see #outcode() + * @see #outcode(double, double) */ public static final int OUT_LEFT = 1; /** - * The point lies above the rectangle (p.y < r.y). + * The point lies above the rectangle (p.y < r.y). * - * @see #outcode() + * @see #outcode(double, double) */ public static final int OUT_TOP = 2; /** * The point lies right of the rectangle (p.x > r.maxX). * - * @see #outcode() + * @see #outcode(double, double) */ public static final int OUT_RIGHT = 4; /** * The point lies below of the rectangle (p.y > r.maxY). * - * @see #outcode() + * @see #outcode(double, double) */ public static final int OUT_BOTTOM = 8; diff --git a/libjava/java/awt/geom/RectangularShape.java b/libjava/java/awt/geom/RectangularShape.java index 78e393eafcb..8679d2e32d5 100644 --- a/libjava/java/awt/geom/RectangularShape.java +++ b/libjava/java/awt/geom/RectangularShape.java @@ -46,8 +46,8 @@ import java.awt.Shape; * subclasses which represent geometric objects inside a rectangular frame. * This does not specify any geometry except for the bounding box. * - * @author Tom Tromey <tromey@cygnus.com> - * @author Eric Blake <ebb9@email.byu.edu> + * @author Tom Tromey (tromey@cygnus.com) + * @author Eric Blake (ebb9@email.byu.edu) * @since 1.2 * @see Arc2D * @see Ellipse2D diff --git a/libjava/java/awt/geom/RoundRectangle2D.java b/libjava/java/awt/geom/RoundRectangle2D.java index 3f004ed6bbc..b9af7efc7ee 100644 --- a/libjava/java/awt/geom/RoundRectangle2D.java +++ b/libjava/java/awt/geom/RoundRectangle2D.java @@ -41,7 +41,7 @@ import java.util.NoSuchElementException; /** This class implements a rectangle with rounded corners. - * @author Tom Tromey <tromey@cygnus.com> + * @author Tom Tromey (tromey@cygnus.com) * @date December 3, 2000 */ public abstract class RoundRectangle2D extends RectangularShape |