com.supermap.data
类 GeometryEPS
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Geometry
-
- com.supermap.data.GeometryEPS
-
- 所有已实现的接口:
- IDisposable
- 直接已知子类:
- GeoLineEPS, GeoPointEPS, GeoRegionEPS, GeoTextEPS
public abstract class GeometryEPS extends Geometry
所有EPS几何对象的基类。
-
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 int
add(PointEPS point)
向线对象追加一个点。void
dispose()
回收此对象PointEPS
get(int index)
用于获取线对象中的指定的点int
getCount()
返回线对象的总个数。boolean
insert(int index, PointEPS point)
用于往线对象中的指定位置插入一个点对象,成功则返回 True,否则返回 False。boolean
remove(int index)
删除线对象中的指定index的点 当index >= PartCount 或 index < 0时抛出IndexOutOfBoundsExceptionboolean
set(int index, PointEPS point)
在指定的位置上修改线上的点,成功则返回 True。void
setEmpty()
清空几何对象
-
-
-
方法详细资料
-
dispose
public void dispose()
回收此对象- 指定者:
dispose
在接口中IDisposable
- 指定者:
dispose
在类中Geometry
-
add
public int add(PointEPS point)
向线对象追加一个点。- 参数:
point
- PointEPS 点- 返回:
- int 成功返回添加的点的索引
-
remove
public boolean remove(int index)
删除线对象中的指定index的点 当index >= PartCount 或 index < 0时抛出IndexOutOfBoundsException- 参数:
index
- int 指定的点索引号- 返回:
- boolean 成功返回true,否则返回false
-
get
public PointEPS get(int index)
用于获取线对象中的指定的点- 参数:
index
- int 点的索引- 返回:
- PointEPS 成功返回PointEPS对象,失败返回空值。
-
insert
public boolean insert(int index, PointEPS point)
用于往线对象中的指定位置插入一个点对象,成功则返回 True,否则返回 False。 当index > PartCount 或 index < 0时抛出IndexOutOfBoundsException 当points.Length < 2 时,抛出IllegalArgumentException- 参数:
index
- int 插入的位置point
- PointEPS 插入对象的点- 返回:
- boolean 成功则返回 True,否则返回 False
-
set
public boolean set(int index, PointEPS point)
在指定的位置上修改线上的点,成功则返回 True。 当index >= PartCount 或 index < 0时抛出IndexOutOfBoundsException- 参数:
index
- intpoint
- PointEPS- 返回:
- boolean
-
getCount
public int getCount()
返回线对象的总个数。- 返回:
- int
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.