| 限定符和类型 | 字段 | 说明 |
|---|---|---|
int[] |
parts |
Part array
|
| 构造器 | 说明 |
|---|---|
PolylineShape() |
Constructor
|
PolylineShape(org.locationtech.jts.geom.Geometry geometry) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addVertice(int vIdx,
PointD vertice) |
Add a vertice
|
Object |
clone() |
Clone
|
Object |
clone_back() |
|
void |
cloneValue(Shape other) |
Clone value
|
double |
getLength() |
Get length
|
int |
getPartIndex(int vIdx) |
Get part index
|
int |
getPartNum() |
Get part number
|
int |
getPointNum() |
Get point number
|
List<? extends PointD> |
getPoints() |
Get points
|
List<? extends Polyline> |
getPolylines() |
Get polylines
|
ShapeTypes |
getShapeType() |
Get shape type
|
boolean |
isClosed() |
Check if the polyline shape is closed or not
|
void |
removeVerice(int vIdx) |
Remove a vertice
|
void |
reverse() |
Reverse points direction
|
void |
setPartNum(int value) |
Set part number
|
void |
setPoints(List<? extends PointD> points) |
Set points
|
void |
setPolylines(List<? extends Polyline> polylines) |
|
org.locationtech.jts.geom.Geometry |
toGeometry(org.locationtech.jts.geom.GeometryFactory factory) |
To geometry method
|
Object |
valueClone() |
Value clone
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuffer, contains, convexHull, coveredBy, covers, crosses, difference, 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 PolylineShape()
public PolylineShape(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 int getPartNum()
public void setPartNum(int value)
value - Part numberpublic int getPointNum()
public double getLength()
public 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 Object valueClone()
public void cloneValue(Shape other)
cloneValue 在类中 Shapeother - Other polyline shapepublic boolean isClosed()
Copyright © 2019. All rights reserved.