Package ome.util.math.geom2D
Class RectangleArea
- java.lang.Object
-
- ome.util.mem.Handle
-
- ome.util.math.geom2D.RectangleArea
-
-
Constructor Summary
Constructors Constructor Description RectangleArea()
Constructs a newRectangleAreaAdapter
whose top-left corner is (0, 0) and whose width and height are both zero.RectangleArea(int x, int y, int width, int height)
Constructs a newRectangleAreaAdapter
whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(double x, double y)
Required by theShape
I/F.boolean
contains(double x, double y, double w, double h)
Required by theShape
I/F.boolean
contains(java.awt.geom.Point2D p)
Required by theShape
I/F.boolean
contains(java.awt.geom.Rectangle2D r)
Required by theShape
I/F.java.awt.Rectangle
getBounds()
Required by theShape
I/F.java.awt.geom.Rectangle2D
getBounds2D()
Required by theShape
I/F.java.awt.geom.PathIterator
getPathIterator(java.awt.geom.AffineTransform at)
Required by theShape
I/F.java.awt.geom.PathIterator
getPathIterator(java.awt.geom.AffineTransform at, double flatness)
Required by theShape
I/F.PlanePoint[]
getPoints()
Implemented as specified by thePlaneArea
I/F.boolean
intersects(double x, double y, double w, double h)
Required by theShape
I/F.boolean
intersects(java.awt.geom.Rectangle2D r)
Required by theShape
I/F.boolean
onBoundaries(double x, double y)
Implemented as specified by thePlaneArea
I/F.void
scale(double factor)
Implemented as specified by thePlaneArea
I/F.void
setBounds(int x, int y, int width, int height)
Implemented as specified by thePlaneArea
I/F.-
Methods inherited from class ome.util.mem.Handle
breakSharing, copy, getBody
-
-
-
-
Constructor Detail
-
RectangleArea
public RectangleArea()
Constructs a newRectangleAreaAdapter
whose top-left corner is (0, 0) and whose width and height are both zero.
-
RectangleArea
public RectangleArea(int x, int y, int width, int height)
Constructs a newRectangleAreaAdapter
whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name.- Parameters:
x
- The x-coordinate of the top-left corner.y
- The y-coordinate of the top-left corner.width
- The width of the rectangle.height
- The height of the rectangle.
-
-
Method Detail
-
setBounds
public void setBounds(int x, int y, int width, int height)
Implemented as specified by thePlaneArea
I/F.- Specified by:
setBounds
in 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 thePlaneArea
I/F.- Specified by:
scale
in interfacePlaneArea
- Parameters:
factor
- The scaling factor.- See Also:
PlaneArea.scale(double)
-
getPoints
public PlanePoint[] getPoints()
Implemented as specified by thePlaneArea
I/F.- Specified by:
getPoints
in interfacePlaneArea
- Returns:
- See above.
- See Also:
PlaneArea.getPoints()
-
onBoundaries
public boolean onBoundaries(double x, double y)
Implemented as specified by thePlaneArea
I/F.- Specified by:
onBoundaries
in interfacePlaneArea
- Parameters:
x
- The x-coordinate of the point.y
- The y-coordinate of the point.- Returns:
true
if the point is on the boundary,false
otherwise.- See Also:
PlaneArea.onBoundaries(double, double)
-
contains
public boolean contains(double x, double y)
Required by theShape
I/F.- Specified by:
contains
in interfacejava.awt.Shape
- See Also:
Shape.contains(double, double)
-
contains
public boolean contains(double x, double y, double w, double h)
Required by theShape
I/F.- Specified by:
contains
in 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 theShape
I/F.- Specified by:
intersects
in interfacejava.awt.Shape
- See Also:
Shape.intersects(double, double, double, double)
-
getBounds
public java.awt.Rectangle getBounds()
Required by theShape
I/F.- Specified by:
getBounds
in interfacejava.awt.Shape
- See Also:
Shape.getBounds()
-
contains
public boolean contains(java.awt.geom.Point2D p)
Required by theShape
I/F.- Specified by:
contains
in interfacejava.awt.Shape
- See Also:
Shape.contains(Point2D)
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D()
Required by theShape
I/F.- Specified by:
getBounds2D
in interfacejava.awt.Shape
- See Also:
Shape.getBounds2D()
-
contains
public boolean contains(java.awt.geom.Rectangle2D r)
Required by theShape
I/F.- Specified by:
contains
in interfacejava.awt.Shape
- See Also:
Shape.contains(Rectangle2D)
-
intersects
public boolean intersects(java.awt.geom.Rectangle2D r)
Required by theShape
I/F.- Specified by:
intersects
in interfacejava.awt.Shape
- See Also:
Shape.intersects(Rectangle2D)
-
getPathIterator
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
Required by theShape
I/F.- Specified by:
getPathIterator
in interfacejava.awt.Shape
- See Also:
Shape.getPathIterator(AffineTransform)
-
getPathIterator
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at, double flatness)
Required by theShape
I/F.- Specified by:
getPathIterator
in interfacejava.awt.Shape
- See Also:
Shape.getPathIterator(AffineTransform, double)
-
-