ome.util.math.geom2D

Class RectangleArea

• All Implemented Interfaces:
Shape, Cloneable, PlaneArea, Copiable

```public class RectangleArea
extends Handle
implements PlaneArea```
Represents a rectangle in the Euclidean space R2.
Since:
OME2.2
Version:
2.2 (Internal version: \$Revision\$ \$Date: 2005/06/09 15:01:32 \$)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk,
Andrea Falconi      a.falconi@dundee.ac.uk
• Constructor Summary

Constructors
Constructor and Description
`RectangleArea()`
Constructs a new `RectangleAreaAdapter` 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 new `RectangleAreaAdapter` 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
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 by 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

• RectangleArea

`public RectangleArea()`
Constructs a new `RectangleAreaAdapter` 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 new `RectangleAreaAdapter` 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.

OmeroJava API

Version: 5.2.6-ice35-b35