类 PolylineShape
- java.lang.Object
-
- org.meteoinfo.shape.Shape
-
- org.meteoinfo.shape.PolylineShape
-
- 所有已实现的接口:
java.lang.Cloneable
public class PolylineShape extends Shape implements java.lang.Cloneable
Poyline shape class- 作者:
- Yaqiang Wang
-
-
字段概要
字段 修饰符和类型 字段 说明 int[]partsPart array
-
构造器概要
构造器 构造器 说明 PolylineShape()ConstructorPolylineShape(org.locationtech.jts.geom.Geometry geometry)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddVertice(int vIdx, PointD vertice)Add a verticejava.lang.Objectclone()Clonejava.lang.Objectclone_back()voidcloneValue(Shape other)Clone valuedoublegetLength()Get lengthintgetPartIndex(int vIdx)Get part indexintgetPartNum()Get part numberintgetPointNum()Get point numberjava.util.List<? extends PointD>getPoints()Get pointsjava.util.List<? extends Polyline>getPolylines()Get polylinesShapeTypesgetShapeType()Get shape typebooleanisClosed()Check if the polyline shape is closed or notvoidremoveVerice(int vIdx)Remove a verticevoidreverse()Reverse points directionvoidsetPartNum(int value)Set part numbervoidsetPoints(java.util.List<? extends PointD> points)Set pointsvoidsetPolylines(java.util.List<? extends Polyline> polylines)org.locationtech.jts.geom.GeometrytoGeometry(org.locationtech.jts.geom.GeometryFactory factory)To geometry methodjava.lang.ObjectvalueClone()Value clone-
从类继承的方法 org.meteoinfo.shape.Shape
buffer, 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, within
-
-
-
-
方法详细资料
-
getShapeType
public ShapeTypes getShapeType()
从类复制的说明:ShapeGet shape type- 指定者:
getShapeType在类中Shape- 返回:
- Shape type
-
toGeometry
public org.locationtech.jts.geom.Geometry toGeometry(org.locationtech.jts.geom.GeometryFactory factory)
To geometry method- 指定者:
toGeometry在类中Shape- 参数:
factory- GeometryFactory- 返回:
- Geometry
-
getPoints
public java.util.List<? extends PointD> getPoints()
Get points
-
setPoints
public void setPoints(java.util.List<? extends PointD> points)
Set points
-
getPartNum
public int getPartNum()
Get part number- 返回:
- Part number
-
setPartNum
public void setPartNum(int value)
Set part number- 参数:
value- Part number
-
getPointNum
public int getPointNum()
Get point number- 返回:
- Point number
-
getPolylines
public java.util.List<? extends Polyline> getPolylines()
Get polylines- 返回:
- polyline list
-
setPolylines
public void setPolylines(java.util.List<? extends Polyline> polylines)
-
getLength
public double getLength()
Get length- 返回:
- length
-
getPartIndex
public int getPartIndex(int vIdx)
Get part index- 参数:
vIdx- The vertice index- 返回:
- Part index
-
addVertice
public void addVertice(int vIdx, PointD vertice)Add a vertice- 覆盖:
addVertice在类中Shape- 参数:
vIdx- Vertice indexvertice- The vertice
-
removeVerice
public void removeVerice(int vIdx)
Remove a vertice- 覆盖:
removeVerice在类中Shape- 参数:
vIdx- Vertice index
-
clone_back
public java.lang.Object clone_back()
-
valueClone
public java.lang.Object valueClone()
Value clone- 返回:
- PolylineShape
-
cloneValue
public void cloneValue(Shape other)
Clone value- 覆盖:
cloneValue在类中Shape- 参数:
other- Other polyline shape
-
isClosed
public boolean isClosed()
Check if the polyline shape is closed or not- 返回:
- Boolean
-
-