Package ome.util.math.geom2D
Class EllipseArea
- java.lang.Object
-
- ome.util.mem.Handle
-
- ome.util.math.geom2D.EllipseArea
-
-
Constructor Summary
Constructors Constructor Description EllipseArea(float x, float y, float width, float height)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(double x, double y)Required by theShapeI/F.booleancontains(double x, double y, double w, double h)Required by theShapeI/F.booleancontains(java.awt.geom.Point2D p)Required by theShapeI/F.booleancontains(java.awt.geom.Rectangle2D r)Required by theShapeI/F.java.awt.RectanglegetBounds()Required by theShapeI/F.java.awt.geom.Rectangle2DgetBounds2D()Required by theShapeI/F.java.awt.geom.PathIteratorgetPathIterator(java.awt.geom.AffineTransform at)Required by theShapeI/F.java.awt.geom.PathIteratorgetPathIterator(java.awt.geom.AffineTransform at, double flatness)Required by theShapeI/F.PlanePoint[]getPoints()Implemented as specified by thePlaneAreaI/F.booleanintersects(double x, double y, double w, double h)Required by theShapeI/F.booleanintersects(java.awt.geom.Rectangle2D r)Required by theShapeI/F.booleanonBoundaries(double x, double y)Implemented as specified by thePlaneAreaI/F.voidscale(double factor)Implemented as specified by thePlaneAreaI/F.voidsetBounds(int x, int y, int width, int height)Implemented as specified in thePlaneAreaI/F.-
Methods inherited from class ome.util.mem.Handle
breakSharing, copy, getBody
-
-
-
-
Method Detail
-
setBounds
public void setBounds(int x, int y, int width, int height)Implemented as specified in thePlaneAreaI/F.- Specified by:
setBoundsin interfacePlaneArea- Parameters:
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.- See Also:
PlaneArea.setBounds(int, int, int, int)
-
scale
public void scale(double factor)
Implemented as specified by thePlaneAreaI/F.- Specified by:
scalein interfacePlaneArea- Parameters:
factor- The scaling factor.- See Also:
PlaneArea.scale(double)
-
getPoints
public PlanePoint[] getPoints()
Implemented as specified by thePlaneAreaI/F.- Specified by:
getPointsin interfacePlaneArea- Returns:
- See above.
- See Also:
PlaneArea.getPoints()
-
onBoundaries
public boolean onBoundaries(double x, double y)Implemented as specified by thePlaneAreaI/F.- Specified by:
onBoundariesin interfacePlaneArea- Parameters:
x- The x-coordinate of the point.y- The y-coordinate of the point.- Returns:
trueif the point is on the boundary,falseotherwise.- See Also:
PlaneArea.onBoundaries(double, double)
-
contains
public boolean contains(double x, double y)Required by theShapeI/F.- Specified by:
containsin interfacejava.awt.Shape- See Also:
Shape.contains(double, double)
-
contains
public boolean contains(double x, double y, double w, double h)Required by theShapeI/F.- Specified by:
containsin interfacejava.awt.Shape- See Also:
Shape.contains(double, double, double, double)
-
intersects
public boolean intersects(double x, double y, double w, double h)Required by theShapeI/F.- Specified by:
intersectsin interfacejava.awt.Shape- See Also:
Shape.intersects(double, double, double, double)
-
getBounds
public java.awt.Rectangle getBounds()
Required by theShapeI/F.- Specified by:
getBoundsin interfacejava.awt.Shape- See Also:
Shape.getBounds()
-
contains
public boolean contains(java.awt.geom.Point2D p)
Required by theShapeI/F.- Specified by:
containsin interfacejava.awt.Shape- See Also:
Shape.contains(Point2D)
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D()
Required by theShapeI/F.- Specified by:
getBounds2Din interfacejava.awt.Shape- See Also:
Shape.getBounds2D()
-
contains
public boolean contains(java.awt.geom.Rectangle2D r)
Required by theShapeI/F.- Specified by:
containsin interfacejava.awt.Shape- See Also:
Shape.contains(Rectangle2D)
-
intersects
public boolean intersects(java.awt.geom.Rectangle2D r)
Required by theShapeI/F.- Specified by:
intersectsin interfacejava.awt.Shape- See Also:
Shape.intersects(Rectangle2D)
-
getPathIterator
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
Required by theShapeI/F.- Specified by:
getPathIteratorin interfacejava.awt.Shape- See Also:
Shape.getPathIterator(AffineTransform)
-
getPathIterator
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at, double flatness)Required by theShapeI/F.- Specified by:
getPathIteratorin interfacejava.awt.Shape- See Also:
Shape.getPathIterator(AffineTransform, double)
-
-