Interface ILcdComplexPolygon

All Superinterfaces:
Cloneable, ILcdBounded, ILcdCloneable, ILcdPointList, ILcdShape, Serializable
All Known Subinterfaces:
ILcdEditableComplexPolygon
All Known Implementing Classes:
TLcdComplexPolygon, TLcdGML2Polygon, TLcdS57Area

public interface ILcdComplexPolygon extends ILcdShape, ILcdPointList

An ILcdComplexPolygon is an ILcdShape that is described by a list of ILcdPolygon objects. Each ILcdPolygon object defines an edge of the complex polygon. The resulting shape is a set of one or more polygons each containing one or more holes.

The image below shows a single complex polygon composed of 5 polygons:

A complex polygon composed of 5 polygons

The list can only be read using this interface, not modified. See also ILcdEditableComplexPolygon.

  • Method Details

    • getPolygonCount

      int getPolygonCount()
      Returns the number of ILcdPolygon objects in the list.
      Returns:
      the number of ILcdPolygon objects in the list.
    • getPolygon

      ILcdPolygon getPolygon(int aIndex) throws IndexOutOfBoundsException
      Returns the ILcdPolygon at the given index.
      Parameters:
      aIndex - a valid index in the list of ILcdPolygon objects.
      Returns:
      the ILcdPolygon at the given index.
      Throws:
      IndexOutOfBoundsException - when the index is not valid.