Class Polygon
- java.lang.Object
-
- com.rometools.modules.georss.geometries.AbstractGeometry
-
- com.rometools.modules.georss.geometries.AbstractGeometricPrimitive
-
- com.rometools.modules.georss.geometries.AbstractSurface
-
- com.rometools.modules.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- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Polygon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Make a deep copy of the geometric objectbooleanequals(Object obj)AbstractRinggetExterior()Retrieve the outer borderList<AbstractRing>getInterior()Retrieve the inner bordervoidsetExterior(AbstractRing exterior)Set the outer bordervoidsetInterior(List<AbstractRing> interior)Set the list of inner borders (holes)
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Description copied from class:AbstractGeometryMake a deep copy of the geometric object- Overrides:
clonein classAbstractGeometry- Returns:
- A copy of the object
- Throws:
CloneNotSupportedException
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractGeometry
-
getExterior
public AbstractRing getExterior()
Retrieve the outer border- Returns:
- the border ring
-
getInterior
public List<AbstractRing> 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<AbstractRing> interior)
Set the list of inner borders (holes)- Parameters:
interior- the list of inner rings
-
-