drasys.or.geom
Interface PolygonI

All Known Subinterfaces:
PolygonI

public interface PolygonI
extends GeomI

An interface used by all algorithms to abstractly access polygons.


Method Summary
 PointI getPoint(int index)
          Returns the point at 'index' from the polygon.
 java.util.Enumeration holes()
          Returns an enumeration on the holes of the polygon.
 double length()
          Returns the length of the border of the polygon including the borders of all holes.
 int sizeOfHoles()
          Returns the number of holes in the polygon.
 int sizeOfVertices()
          Returns the number of vertices in the polygon.
 java.util.Enumeration vertices()
          Returns an enumeration on the vertices of the polygon.
 
Methods inherited from interface drasys.or.geom.GeomI
coordinateSystem, getCentroid, getDistanceProxyTo, getDistanceTo, getNearestPointTo, getRange
 

Method Detail

getPoint

public PointI getPoint(int index)
Returns the point at 'index' from the polygon.

sizeOfVertices

public int sizeOfVertices()
Returns the number of vertices in the polygon. The count includes the vertices in all the polygons in the hole tree.

vertices

public java.util.Enumeration vertices()
Returns an enumeration on the vertices of the polygon. The objects returned implement 'drasys.or.geom.PointI'.

sizeOfHoles

public int sizeOfHoles()
Returns the number of holes in the polygon. The count includes the holes in all the polygons in the hole tree.

holes

public java.util.Enumeration holes()
Returns an enumeration on the holes of the polygon. The objects returned implement 'drasys.or.geom.PolygonI'.

length

public double length()
Returns the length of the border of the polygon including the borders of all holes.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com