ome.util.math.geom2D
Interface PlaneArea

All Superinterfaces:
Copiable, Shape
All Known Implementing Classes:
EllipseArea, RectangleArea

public interface PlaneArea
extends Copiable, Shape

Interface that all areas of the Euclidean space R2 must implement.

Since:
OME2.2
Version:
2.2 (Internal version: $Revision: 1167 $ $Date: 2005/06/09 15:01:32 $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk,
Andrea Falconi      a.falconi@dundee.ac.uk

Method Summary
 PlanePoint[] getPoints()
          Returns an array of PlanePoint contained in the PlaneArea.
 boolean onBoundaries(double x, double y)
          Controls if a specified point is on the boundary of the PlaneArea.
 void scale(double factor)
          Resets the bounding Rectangle of the planeArea according to the specified scaling factor.
 void setBounds(int x, int y, int width, int height)
          Sets the bounding Rectangle of the planeArea to the specified x, y, width, and height.
 
Methods inherited from interface ome.util.mem.Copiable
copy
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects
 

Method Detail

setBounds

void setBounds(int x,
               int y,
               int width,
               int height)
Sets the bounding Rectangle of the planeArea to the specified x, y, width, and height.

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.

scale

void scale(double factor)
Resets the bounding Rectangle of the planeArea according to the specified scaling factor.

Parameters:
factor - The scaling factor.

getPoints

PlanePoint[] getPoints()
Returns an array of PlanePoint contained in the PlaneArea.

Returns:
See above.

onBoundaries

boolean onBoundaries(double x,
                     double y)
Controls if a specified point is on the boundary of the PlaneArea.

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.


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.