com.supermap.data
类 GeometryEPS

java.lang.Object
  继承者 com.supermap.data.Geometry
      继承者 com.supermap.data.GeometryEPS
直接已知子类:
GeoLineEPS, GeoPointEPS, GeoRegionEPS, GeoTextEPS

public abstract class GeometryEPS
extends Geometry

所有EPS几何对象的基类。


构造方法摘要
GeometryEPS()
           
 
方法摘要
 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时抛出IndexOutOfBoundsException
 boolean set(int index, PointEPS point)
          在指定的位置上修改线上的点,成功则返回 True。
 void setEmpty()
          清空几何对象
 
从类 com.supermap.data.Geometry 继承的方法
addCustomGeometryCreatedListener, fromXML, getBounds, getID, getInnerPoint, getStyle, getType, getVariantID, hitTest, isEmpty, mirror, offset, removeCustomGeometryCreatedListener, resize, rotate, setID, setStyle, toXML
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

GeometryEPS

public GeometryEPS()
方法详细信息

dispose

public void dispose()
回收此对象

覆盖:
Geometry 中的 dispose

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 - int
point - PointEPS
返回:
boolean

getCount

public int getCount()
返回线对象的总个数。

返回:
int

setEmpty

public void setEmpty()
清空几何对象

覆盖:
Geometry 中的 setEmpty