2000-07-23 02:24:14 +02:00
|
|
|
/* Copyright (C) 1999, 2000 Free Software Foundation
|
1999-05-05 13:05:57 +02:00
|
|
|
|
|
|
|
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;
|
2000-07-23 02:24:14 +02:00
|
|
|
import java.awt.geom.*;
|
1999-05-05 13:05:57 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Per Bothner <bothner@cygnus.com>
|
2000-07-23 02:24:14 +02:00
|
|
|
* @date February 8, 1999.
|
1999-05-05 13:05:57 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Written using "Java Class Libraries", 2nd edition.
|
2000-07-23 02:24:14 +02:00
|
|
|
* Status: Believed complete and correct to JDK 1.2.
|
1999-05-05 13:05:57 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
public interface Shape
|
|
|
|
{
|
2000-07-23 02:24:14 +02:00
|
|
|
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);
|
1999-05-05 13:05:57 +02:00
|
|
|
public Rectangle getBounds ();
|
2000-07-23 02:24:14 +02:00
|
|
|
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);
|
1999-05-05 13:05:57 +02:00
|
|
|
}
|