|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.util.mem.Handle
ome.util.math.geom2D.EllipseArea
public class EllipseArea
Represents an ellipse in the Euclidean space R2.
Constructor Summary | |
---|---|
EllipseArea(float x,
float y,
float width,
float height)
Creates a new instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class ome.util.mem.Handle |
---|
breakSharing, copy, getBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ome.util.mem.Copiable |
---|
copy |
Constructor Detail |
---|
public 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.Method Detail |
---|
public void setBounds(int x, int y, int width, int height)
PlaneArea
I/F.
setBounds
in interface PlaneArea
x
- 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 PlaneArea
factor
- The scaling factor.PlaneArea.scale(double)
public PlanePoint[] getPoints()
PlaneArea
I/F.
getPoints
in interface PlaneArea
PlaneArea.getPoints()
public boolean onBoundaries(double x, double y)
PlaneArea
I/F.
onBoundaries
in interface PlaneArea
x
- 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 Shape
Shape.contains(double, double)
public boolean contains(double x, double y, double w, double h)
Shape
I/F.
contains
in interface Shape
Shape.contains(double, double, double, double)
public boolean intersects(double x, double y, double w, double h)
Shape
I/F.
intersects
in interface Shape
Shape.intersects(double, double, double, double)
public Rectangle getBounds()
Shape
I/F.
getBounds
in interface Shape
Shape.getBounds()
public boolean contains(Point2D p)
Shape
I/F.
contains
in interface Shape
Shape.contains(Point2D)
public Rectangle2D getBounds2D()
Shape
I/F.
getBounds2D
in interface Shape
Shape.getBounds2D()
public boolean contains(Rectangle2D r)
Shape
I/F.
contains
in interface Shape
Shape.contains(Rectangle2D)
public boolean intersects(Rectangle2D r)
Shape
I/F.
intersects
in interface Shape
Shape.intersects(Rectangle2D)
public PathIterator getPathIterator(AffineTransform at)
Shape
I/F.
getPathIterator
in interface Shape
Shape.getPathIterator(AffineTransform)
public PathIterator getPathIterator(AffineTransform at, double flatness)
Shape
I/F.
getPathIterator
in interface Shape
Shape.getPathIterator(AffineTransform, double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.