com.supermap.data
类 GeometryParametric

java.lang.Object
  继承者 com.supermap.data.Geometry
      继承者 com.supermap.data.GeometryParametric
直接已知子类:
GeoLineParametric, GeoPointParametric, GeoRegionParametric, GeoTextParametric

public abstract class GeometryParametric
extends Geometry

参数化几何对象。


构造方法摘要
GeometryParametric()
           
 
方法摘要
 int add(PointParametric point)
          向线对象追加一个点。
 void dispose()
          回收此对象
 PointParametric get(int index)
          用于获取线对象中的指定的点
 int getCount()
          返回线对象的总个数。
 boolean insert(int index, PointParametric point)
          用于往线对象中的指定位置插入一个点对象,成功则返回 True,否则返回 False。
 boolean remove(int index)
          删除线对象中的指定index的点 当index >= PartCount 或 index < 0时抛出IndexOutOfBoundsException
 boolean set(int index, PointParametric 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
 

构造方法详细信息

GeometryParametric

public GeometryParametric()
方法详细信息

dispose

public void dispose()
回收此对象

覆盖:
Geometry 中的 dispose

add

public int add(PointParametric point)
向线对象追加一个点。

参数:
point - PointParametric 点
返回:
int 成功返回添加的点的索引

remove

public boolean remove(int index)
删除线对象中的指定index的点 当index >= PartCount 或 index < 0时抛出IndexOutOfBoundsException

参数:
index - int 指定的点索引号
返回:
boolean 成功返回true,否则返回false

get

public PointParametric get(int index)
用于获取线对象中的指定的点

参数:
index - int 点的索引
返回:
PointParametric 成功返回PointParametric对象,失败返回空值。

insert

public boolean insert(int index,
                      PointParametric point)
用于往线对象中的指定位置插入一个点对象,成功则返回 True,否则返回 False。 当index > PartCount 或 index < 0时抛出IndexOutOfBoundsException 当points.Length < 2 时,抛出IllegalArgumentException

参数:
index - int 插入的位置
point - PointParametric 插入对象的点
返回:
boolean 成功则返回 True,否则返回 False

set

public boolean set(int index,
                   PointParametric point)
在指定的位置上修改线上的点,成功则返回 True。 当index >= PartCount 或 index < 0时抛出IndexOutOfBoundsException

参数:
index - int
point - PointParametric
返回:
boolean

getCount

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

返回:
int

setEmpty

public void setEmpty()
清空几何对象

覆盖:
Geometry 中的 setEmpty