public final class Polygon extends AbstractSurface implements Cloneable
| Constructor and Description |
|---|
Polygon() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Make a deep copy of the geometric object
|
boolean |
equals(Object obj) |
AbstractRing |
getExterior()
Retrieve the outer border
|
List<AbstractRing> |
getInterior()
Retrieve the inner border
|
void |
setExterior(AbstractRing exterior)
Set the outer border
|
void |
setInterior(List<AbstractRing> interior)
Set the list of inner borders (holes)
|
public Object clone() throws CloneNotSupportedException
AbstractGeometryclone in class AbstractGeometryCloneNotSupportedExceptionpublic boolean equals(Object obj)
equals in class AbstractGeometrypublic AbstractRing getExterior()
public List<AbstractRing> getInterior()
public void setExterior(AbstractRing exterior)
exterior - the outer ringpublic void setInterior(List<AbstractRing> interior)
interior - the list of inner ringsCopyright © 2021. All rights reserved.