com.sun.syndication.feed.module.georss.geometries
Class Polygon

java.lang.Object
  extended by com.sun.syndication.feed.module.georss.geometries.AbstractGeometry
      extended by com.sun.syndication.feed.module.georss.geometries.AbstractGeometricPrimitive
          extended by com.sun.syndication.feed.module.georss.geometries.AbstractSurface
              extended by com.sun.syndication.feed.module.georss.geometries.Polygon
All Implemented Interfaces:
java.lang.Cloneable

public final class Polygon
extends AbstractSurface
implements java.lang.Cloneable

Polygon, a surface object bounded by one external ring and zero or more internal rings

Author:
runaas

Constructor Summary
Polygon()
          Creates a new instance of Polygon
 
Method Summary
 java.lang.Object clone()
          Make a deep copy of the geometric object
 boolean equals(java.lang.Object obj)
           
 AbstractRing getExterior()
          Retrieve the outer border
 java.util.List getInterior()
          Retrieve the inner border
 void setExterior(AbstractRing exterior)
          Set the outer border
 void setInterior(java.util.List interior)
          Set the list of inner borders (holes)
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Polygon

public Polygon()
Creates a new instance of Polygon

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from class: AbstractGeometry
Make a deep copy of the geometric object

Overrides:
clone in class AbstractGeometry
Returns:
A copy of the object
Throws:
java.lang.CloneNotSupportedException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractGeometry

getExterior

public AbstractRing getExterior()
Retrieve the outer border

Returns:
the border ring

getInterior

public java.util.List getInterior()
Retrieve the inner border

Returns:
the list of border rings

setExterior

public void setExterior(AbstractRing exterior)
Set the outer border

Parameters:
exterior - the outer ring

setInterior

public void setInterior(java.util.List interior)
Set the list of inner borders (holes)

Parameters:
interior - the list of inner rings