public abstract class AbstractShape extends Objectimplements Shape
Shape methods except for
getPathIterator(AffineTransform). Because all the other methods consult
getPathIterator() it is essential that when subclasses implement that method it be very light. See
MutablePath as a possible example.
| Constructor and Description |
|---|
AbstractShape()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x, double y)
|
boolean |
contains(double x, double y, AffineTransform
|
boolean |
contains(double x, double y, double w, double h)
|
boolean |
contains(double x, double y, double w, double h, AffineTransform
|
boolean |
contains(Point2D
|
boolean |
contains(Point2D
|
boolean |
contains(Rectangle2D
|
boolean |
contains(Rectangle2D
|
protected int |
countCrossings(double x, double y, AffineTransform
This counts the number of crossings from (-infinity,y) to (x,y).
|
Rectangle |
getBounds()
|
Rectangle |
getBounds(AffineTransform
|
Rectangle2D |
getBounds(AffineTransform
|
Rectangle2D |
getBounds2D()
|
Rectangle2D |
getBounds2D(AffineTransform
|
PathIterator |
getPathIterator(AffineTransform
|
abstract int |
getWindingRule()
|
protected boolean |
identifyCrossings(double x, double y, double w, double h, AffineTransform
This checks to see if the rectangle argument ever crosses this shape.
|
boolean |
intersects(double x, double y, double w, double h)
|
boolean |
intersects(double x, double y, double w, double h, AffineTransform
|
boolean |
intersects(Rectangle2D
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPathIteratorpublic boolean contains(Point2Dp)
public boolean contains(Rectangle2Dr)
public boolean contains(Point2Dp, AffineTransform transform)
public boolean contains(Rectangle2Dr, AffineTransform transform)
public abstract int getWindingRule()
public boolean contains(double x,
double y)public boolean contains(double x,
double y,
AffineTransform transform) protected int countCrossings(double x,
double y,
AffineTransform transform)
protected boolean identifyCrossings(double x,
double y,
double w,
double h,
AffineTransform transform)
public boolean intersects(double x,
double y,
double w,
double h)public boolean intersects(double x,
double y,
double w,
double h,
AffineTransform transform) public boolean contains(double x,
double y,
double w,
double h)public boolean contains(double x,
double y,
double w,
double h,
AffineTransform transform) public RectanglegetBounds()
public Rectangle2DgetBounds2D()
public RectanglegetBounds(AffineTransform transform)
public Rectangle2DgetBounds2D(AffineTransform transform)
public Rectangle2DgetBounds(AffineTransform transform, Rectangle2D r)
public PathIteratorgetPathIterator(AffineTransform at, double flatness)
public boolean intersects(Rectangle2Dr)