|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.PointMs
public class PointMs
路线点集合类。
该类用于表示精度为 double 的路线点对象集合。管理路由对象或路由对象的子对象上的所有节点。
构造方法摘要 | |
---|---|
PointMs()
构造一个新的 PointMs 对象。 |
|
PointMs(PointM[] pointMs)
根据指定的参数来构造一个 PointMs 的新对象。 |
|
PointMs(PointMs pointMs)
根据指定的 PointMs 对象构造一个与其完全相同的新对象。 |
方法摘要 | |
---|---|
int |
add(PointM ptM)
将指定的路由点对象添加到路由点集合对象的末尾。 |
int |
addRange(PointM[] pointMs)
将指定的多个路由点对象添加到此路由点集合对象的末尾。 |
void |
clear()
清除当前点集合对象中的所有元素。 |
PointMs |
clone()
返回当前 PointMs 对象的一个拷贝。 |
int |
getCount()
返回此路由点集合对象中所包含的子对象的个数。 |
PointM |
getItem(int index)
返回此路由点集合对象中指定序号的路由点对象。 |
boolean |
insert(int index,
PointM ptM)
将指定的路由点对象添加到此路由点集合的指定序号处。 |
int |
insertRange(int index,
PointM[] pointMs)
将指定的多个路由点对象添加到此路由点集合中,从指定的序号开始依次添加。 |
boolean |
remove(int index)
将此路由点集合对象中指定序号处的路由点对象删除。 |
int |
removeRange(int index,
int count)
将此路由点集合对象中从指定序号开始的指定个数的多个路由点对象删除。 |
void |
setItem(int index,
PointM ptM)
设置此路由点集合对象中指定序号的路由点对象。 |
PointM[] |
toArray()
将此路由点集合对象转换成为一个路由点对象的数组。 |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public PointMs()
public PointMs(PointM[] pointMs)
pointMs
- 指定的路由点对象数组。public PointMs(PointMs pointMs)
pointMs
- 指定的 PointMs 对象。方法详细信息 |
---|
public int getCount()
public PointM getItem(int index)
index
- 指定的序号。
public void setItem(int index, PointM ptM)
index
- 指定的序号。ptM
- 此路由点集合对象中指定序号的路由点对象。public int add(PointM ptM)
ptM
- 要添加到此路由点集合对象中的路由点对象。
public int addRange(PointM[] pointMs)
pointMs
- 要添加到此路由点集合对象中的多个路由点对象。
public boolean insert(int index, PointM ptM)
index
- 要添加到的序号。ptM
- 指定要添加的点对象。
public int insertRange(int index, PointM[] pointMs)
index
- 添加对象的起始序号。pointMs
- 要添加的多个路由点对象。
public boolean remove(int index)
index
- 待删除的路由点对象的序号。
public int removeRange(int index, int count)
index
- 删除路由点对象的起始序号。count
- 待删除的路由点对象的个数。
public void clear()
public PointM[] toArray()
public PointMs clone()
java.lang.Object
中的 clone
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |