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
AbstractGeometry
clone
in class AbstractGeometry
CloneNotSupportedException
public boolean equals(Object obj)
equals
in class AbstractGeometry
public 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 © 2017. All rights reserved.