类 PolylineShape
- java.lang.Object
-
- org.meteoinfo.geometry.shape.Shape
-
- org.meteoinfo.geometry.shape.PolylineShape
-
- 所有已实现的接口:
Cloneable
- 直接已知子类:
CapPolylineShape,CurveLineShape,PolylineZShape
public class PolylineShape extends Shape implements Cloneable
Poyline shape class- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 PolylineShape()ConstructorPolylineShape(List<PointD> points)ConstructorPolylineShape(org.locationtech.jts.geom.Geometry geometry)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddVertice(int vIdx, PointD vertice)Add a verticeObjectclone()ClonevoidcloneValue(Shape other)Clone valuedoublegetLength()Get lengthintgetPartIndex(int vIdx)Get part indexintgetPartNum()Get part numberintgetPointNum()Get point numberList<? extends Polyline>getPolylines()Get polylinesShapeTypesgetShapeType()Get shape typebooleanisClosed()Check if the polyline shape is closed or notbooleanisMultiLine()Get is multi line or notvoidremoveVertice(int vIdx)Remove a verticevoidreverse()Reverse points directionvoidsetPartNum(int value)Set part numbervoidsetPoints(List<? extends PointD> points)Set pointsvoidsetPolylines(List<? extends Polyline> polylines)org.locationtech.jts.geom.GeometrytoGeometry(org.locationtech.jts.geom.GeometryFactory factory)To geometry methodObjectvalueClone()Value clone-
从类继承的方法 org.meteoinfo.geometry.shape.Shape
buffer, contains, convexHull, coveredBy, covers, crosses, difference, disjoint, equals, factory, geometry2Shape, getExtent, getLegendIndex, getPoints, getValue, intersection, intersects, isEditing, isSelected, isVisible, move, moveVertice, overlaps, reform, setEditing, setExtent, setLegendIndex, setSelected, setValue, setVisible, split, symDifference, toGeometry, touches, union, updateExtent, within
-
-
-
-
方法详细资料
-
getShapeType
public ShapeTypes getShapeType()
从类复制的说明:ShapeGet shape type- 指定者:
getShapeType在类中Shape- 返回:
- Shape type
-
isMultiLine
public boolean isMultiLine()
Get is multi line or not- 返回:
- Multi line or not
-
toGeometry
public org.locationtech.jts.geom.Geometry toGeometry(org.locationtech.jts.geom.GeometryFactory factory)
To geometry method- 指定者:
toGeometry在类中Shape- 参数:
factory- GeometryFactory- 返回:
- Geometry
-
getPartNum
public int getPartNum()
Get part number- 覆盖:
getPartNum在类中Shape- 返回:
- Part number
-
setPartNum
public void setPartNum(int value)
Set part number- 参数:
value- Part number
-
getPointNum
public int getPointNum()
Get point number- 覆盖:
getPointNum在类中Shape- 返回:
- Point number
-
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
-
removeVertice
public void removeVertice(int vIdx)
Remove a vertice- 覆盖:
removeVertice在类中Shape- 参数:
vIdx- Vertice index
-
valueClone
public 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
-
-