CloneableArcShape, CircleShape, CurvePolygonShape, EllipseShape, PolygonMShape, PolygonZShape, RectangleShapepublic class PolygonShape extends Shape implements Cloneable
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected int |
_numParts |
Part number
|
protected List<? extends PointD> |
_points |
|
protected List<? extends Polygon> |
_polygons |
|
double |
highValue |
End value
|
double |
lowValue |
Start value
|
int[] |
parts |
Part array
|
| 构造器 | 说明 |
|---|---|
PolygonShape() |
Constructor
|
PolygonShape(org.locationtech.jts.geom.Geometry geometry) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
addHole(List<? extends PointD> points) |
Add a hole line
|
int |
addHole(List<? extends PointD> points,
int polygonIdx) |
Add a hole line
|
void |
addVertice(int vIdx,
PointD vertice) |
Add a vertice
|
Object |
clone() |
Clone
|
Object |
clone_back() |
|
void |
cloneValue(Shape other) |
Constructor
|
Shape |
difference(Shape b) |
Get difference shape
|
double |
getArea() |
Get area
|
int |
getPartIndex(int vIdx) |
Get part index
|
int |
getPartNum() |
Get part number
|
int[] |
getParts() |
Get parts
|
int |
getPointNum() |
Get point number
|
List<? extends PointD> |
getPoints() |
Get points
|
List<? extends Polygon> |
getPolygons() |
Get polygons
|
ShapeTypes |
getShapeType() |
Get shape type
|
double |
getSphericalArea() |
Get spherical area
|
void |
removeHole(int polygonIdx,
int holeIdx) |
Remove a hole
|
void |
removeVerice(int vIdx) |
Remove a vertice
|
void |
reverse() |
Reverse points direction
|
void |
setPartNum(int value) |
Set part number
|
void |
setParts(int[] value) |
Set parts
|
void |
setPoints(List<? extends PointD> points) |
Set points
|
void |
setPoints(PointF[] points) |
|
void |
setPoints_keep(PointF[] points) |
Set points and keep the polygons
|
void |
setPolygons(List<Polygon> polygons) |
Set polygons
|
org.locationtech.jts.geom.Geometry |
toGeometry(org.locationtech.jts.geom.GeometryFactory factory) |
To geometry method
|
protected void |
updatePolygons() |
|
protected void |
updatePolygons_keep() |
|
PolygonShape |
valueClone() |
Clone polygon shape with values
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuffer, contains, convexHull, coveredBy, covers, crosses, disjoint, equals, geometry2Shape, getExtent, getLegendIndex, getValue, intersection, intersects, isEditing, isSelected, isVisible, move, moveVertice, overlaps, reform, setEditing, setExtent, setLegendIndex, setSelected, setValue, setVisible, split, symDifference, toGeometry, touches, union, withinpublic double lowValue
public double highValue
protected int _numParts
public int[] parts
public PolygonShape()
public PolygonShape(org.locationtech.jts.geom.Geometry geometry)
geometry - Geometrypublic ShapeTypes getShapeType()
ShapegetShapeType 在类中 Shapepublic org.locationtech.jts.geom.Geometry toGeometry(org.locationtech.jts.geom.GeometryFactory factory)
toGeometry 在类中 Shapefactory - GeometryFactorypublic void setPoints_keep(PointF[] points)
points - public void setPoints(PointF[] points)
points - public int getPartNum()
public void setPartNum(int value)
value - Part numberpublic int[] getParts()
public void setParts(int[] value)
value - Partspublic int getPointNum()
public void setPolygons(List<Polygon> polygons)
polygons - polygon listpublic double getArea()
public double getSphericalArea()
protected void updatePolygons_keep()
protected void updatePolygons()
public int addHole(List<? extends PointD> points)
points - Hole pointspublic int addHole(List<? extends PointD> points, int polygonIdx)
points - point listpolygonIdx - polygon indexpublic void removeHole(int polygonIdx,
int holeIdx)
polygonIdx - Polygon indexholeIdx - Hole indexpublic int getPartIndex(int vIdx)
vIdx - The vertice indexpublic void addVertice(int vIdx,
PointD vertice)
addVertice 在类中 ShapevIdx - Vertice indexvertice - The verticepublic void removeVerice(int vIdx)
removeVerice 在类中 ShapevIdx - Vertice indexpublic Object clone_back()
public PolygonShape valueClone()
public void cloneValue(Shape other)
cloneValue 在类中 Shapeother - Other polygon shapepublic Shape difference(Shape b)
difference 在类中 Shapeb - Other shapeCopyright © 2019. All rights reserved.