org.rometools.feed.module.georss.geometries
Class Polygon

java.lang.Object
  extended by org.rometools.feed.module.georss.geometries.AbstractGeometry
      extended by org.rometools.feed.module.georss.geometries.AbstractGeometricPrimitive
          extended by org.rometools.feed.module.georss.geometries.AbstractSurface
              extended by org.rometools.feed.module.georss.geometries.Polygon
All Implemented Interfaces:
Serializable, Cloneable

public final class Polygon
extends AbstractSurface
implements Cloneable

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

Author:
runaas
See Also:
Serialized Form

Constructor Summary
Polygon()
          Creates a new instance of Polygon
 
Method Summary
 Object clone()
          Make a deep copy of the geometric object
 boolean equals(Object obj)
           
 AbstractRing getExterior()
          Retrieve the outer border
 List getInterior()
          Retrieve the inner border
 void setExterior(AbstractRing exterior)
          Set the outer border
 void setInterior(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 Object clone()
             throws 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:
CloneNotSupportedException

equals

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

getExterior

public AbstractRing getExterior()
Retrieve the outer border

Returns:
the border ring

getInterior

public 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(List interior)
Set the list of inner borders (holes)

Parameters:
interior - the list of inner rings


Copyright © 2013 ROME Project. All Rights Reserved.