mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 17:39:35 +08:00
8039a4ea73
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Updated for new files. * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values. * java/awt/Label.java: New file. * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D. (createIntersection, createUnion, getBounds2D): New methods. * java/awt/Scrollbar.java: New file. * java/awt/Shape.java: Updated to 1.2. * java/awt/geom/AffineTransform.java: New file. * java/awt/geom/Ellipse2D.java: New file. * java/awt/geom/NoninvertibleTransformException.java: New file. * java/awt/geom/PathIterator.java: New file. * java/awt/geom/Rectangle2D.java: New file. * java/awt/geom/RectangularShape.java: New file. * java/awt/geom/Point2D.java (Double, Float): New inner classes. * java/awt/geom/IllegalPathStateException.java: New file. From-SVN: r35195
34 lines
1016 B
Java
34 lines
1016 B
Java
/* Copyright (C) 1999, 2000 Free Software Foundation
|
|
|
|
This file is part of libjava.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
|
|
details. */
|
|
|
|
package java.awt;
|
|
import java.awt.geom.*;
|
|
|
|
/**
|
|
* @author Per Bothner <bothner@cygnus.com>
|
|
* @date February 8, 1999.
|
|
*/
|
|
|
|
/* Written using "Java Class Libraries", 2nd edition.
|
|
* Status: Believed complete and correct to JDK 1.2.
|
|
*/
|
|
|
|
public interface Shape
|
|
{
|
|
public boolean contains (double x, double y);
|
|
public boolean contains (double x, double y, double w, double h);
|
|
public boolean contains (Point2D p);
|
|
public boolean contains (Rectangle2D r);
|
|
public Rectangle getBounds ();
|
|
public Rectangle2D getBounds2D ();
|
|
public PathIterator getPathIterator (AffineTransform at);
|
|
public PathIterator getPathIterator (AffineTransform at, double flatness);
|
|
public boolean intersects (double x, double y, double w, double h);
|
|
public boolean intersects (Rectangle2D r);
|
|
}
|