public class EllipseArea extends Handle implements PlaneArea
| Constructor and Description |
|---|
EllipseArea(float x,
float y,
float width,
float height)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y)
Required by the
Shape I/F. |
boolean |
contains(double x,
double y,
double w,
double h)
Required by the
Shape I/F. |
boolean |
contains(Point2D p)
Required by the
Shape I/F. |
boolean |
contains(Rectangle2D r)
Required by the
Shape I/F. |
Rectangle |
getBounds()
Required by the
Shape I/F. |
Rectangle2D |
getBounds2D()
Required by the
Shape I/F. |
PathIterator |
getPathIterator(AffineTransform at)
Required by the
Shape I/F. |
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
Required by the
Shape I/F. |
PlanePoint[] |
getPoints()
Implemented as specified by the
PlaneArea I/F. |
boolean |
intersects(double x,
double y,
double w,
double h)
Required by the
Shape I/F. |
boolean |
intersects(Rectangle2D r)
Required by the
Shape I/F. |
boolean |
onBoundaries(double x,
double y)
Implemented as specified by the
PlaneArea I/F. |
void |
scale(double factor)
Implemented as specified by the
PlaneArea I/F. |
void |
setBounds(int x,
int y,
int width,
int height)
Implemented as specified in the
PlaneArea I/F. |
breakSharing, copy, getBodypublic EllipseArea(float x,
float y,
float width,
float height)
x - The x-coordinate of the top-left corner.y - The y-coordinate of the top-left corner.width - The width of the ellipse.height - The height of the ellipse.public void setBounds(int x,
int y,
int width,
int height)
PlaneArea I/F.setBounds in interface PlaneAreax - The x-coordinate of the top-left corner.y - The y-coordinate of the top-left corner.width - The width of the area.height - The height of the area.PlaneArea.setBounds(int, int, int, int)public void scale(double factor)
PlaneArea I/F.scale in interface PlaneAreafactor - The scaling factor.PlaneArea.scale(double)public PlanePoint[] getPoints()
PlaneArea I/F.getPoints in interface PlaneAreaPlaneArea.getPoints()public boolean onBoundaries(double x,
double y)
PlaneArea I/F.onBoundaries in interface PlaneAreax - The x-coordinate of the point.y - The y-coordinate of the point.true if the point is on the boundary,
false otherwise.PlaneArea.onBoundaries(double, double)public boolean contains(double x,
double y)
Shape I/F.contains in interface ShapeShape.contains(double, double)public boolean contains(double x,
double y,
double w,
double h)
Shape I/F.contains in interface ShapeShape.contains(double, double, double, double)public boolean intersects(double x,
double y,
double w,
double h)
Shape I/F.intersects in interface ShapeShape.intersects(double, double, double, double)public Rectangle getBounds()
Shape I/F.getBounds in interface ShapeShape.getBounds()public boolean contains(Point2D p)
Shape I/F.contains in interface ShapeShape.contains(Point2D)public Rectangle2D getBounds2D()
Shape I/F.getBounds2D in interface ShapeShape.getBounds2D()public boolean contains(Rectangle2D r)
Shape I/F.contains in interface ShapeShape.contains(Rectangle2D)public boolean intersects(Rectangle2D r)
Shape I/F.intersects in interface ShapeShape.intersects(Rectangle2D)public PathIterator getPathIterator(AffineTransform at)
Shape I/F.getPathIterator in interface ShapeShape.getPathIterator(AffineTransform)public PathIterator getPathIterator(AffineTransform at, double flatness)
Shape I/F.getPathIterator in interface ShapeShape.getPathIterator(AffineTransform, double)
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.