Foxit PDF SDK
com.foxit.sdk.common.fxcrt.PointFArray类 参考

PointF对象数组。 更多...

类 com.foxit.sdk.common.fxcrt.PointFArray 继承关系图:
com.foxit.sdk.common.fxcrt.BasicArray

Public 成员函数

 PointFArray ()
 构造一个简单对象。
 
 PointFArray (PointFArray other)
 用另一个数组对象构造。 更多...
 
boolean add (PointF newElement)
 在尾部添加元素。可能会增长数组。 更多...
 
int find (PointF data, int iStart)
 从指定位置到最后查找元素。 更多...
 
PointF getAt (int nIndex)
 此方法检索由索引号指定的元素。 更多...
 
int getSize ()
 获取数组中元素的数量。 更多...
 
int getUpperBound ()
 获取数组中的上界,实际上是最大有效索引。 更多...
 
boolean insertAt (int nIndex, PointF newElement, int nCount)
 在指定位置插入一个或多个连续元素。 更多...
 
boolean insertAt (int nStartIndex, BasicArray pNewArray)
 在指定位置插入一个数组。 更多...
 
void removeAll ()
 清理数组。 更多...
 
boolean removeAt (int nIndex, int nCount)
 在指定位置移除若干元素。 更多...
 
boolean setAt (int nIndex, PointF newElement)
 此方法覆盖由索引号指定的元素。 更多...
 
boolean setAtGrow (int nIndex, PointF newElement)
 在指定位置设置元素值。可能会增长数组。 更多...
 
boolean setSize (int nNewSize, int nGrowBy)
 更改分配的大小和增长量。 更多...
 

详细描述

PointF对象数组。

构造及析构函数说明

◆ PointFArray()

com.foxit.sdk.pdf.graphics.PointFArray.PointFArray ( PointFArray  other)

用另一个数组对象构造。

参数
[in]other另一个数组对象。

成员函数说明

◆ add()

boolean com.foxit.sdk.common.fxcrt.PointFArray.add ( PointF  newElement)

在尾部添加元素。可能会增长数组。

参数
[in]newElement输入的元素。
返回
true 表示成功,false 表示失败(如内存错误)。

◆ find()

int com.foxit.sdk.common.fxcrt.PointFArray.find ( PointF  data,
int  iStart 
)

从指定位置到最后查找元素。

参数
[in]data输入的元素。
[in]iStart指定开始查找的起始元素的基于零的索引。
返回
找到的元素的索引。-1表示未找到。

◆ getAt()

PointF com.foxit.sdk.common.fxcrt.PointFArray.getAt ( int  nIndex)

此方法检索由索引号指定的元素。

参数
[in]nIndex指定元素的基于零的索引。
返回
元素。

◆ getSize()

int com.foxit.sdk.common.fxcrt.PointFArray.getSize ( )

获取数组中元素的数量。

返回
数组中元素的数量。

◆ getUpperBound()

int com.foxit.sdk.common.fxcrt.PointFArray.getUpperBound ( )

获取数组中的上界,实际上是最大有效索引。

返回
上界。

◆ insertAt() [1/2]

bool com.foxit.sdk.common.fxcrt.PointFArray.insertAt ( int  nIndex,
PointF  newElement,
int  nCount 
)

在指定位置插入一个或多个连续元素。

参数
[in]nIndex指定数组中的起始索引(从零开始)。
[in]newElement指定要插入的元素值。
[in]nCount指定要插入的元素数量。
返回
true 表示成功,false 表示失败(如参数或内存错误)。

◆ insertAt() [2/2]

bool com.foxit.sdk.common.fxcrt.PointFArray.insertAt ( int  nStartIndex,
BasicArray  pNewArray 
)

在指定位置插入一个数组。

参数
[in]nStartIndex指定插入位置的起始索引(从零开始)。
[in]pNewArray输入的数组。
返回
true 表示成功,false 表示失败(如参数或内存错误)。

◆ removeAll()

void com.foxit.sdk.common.fxcrt.PointFArray.removeAll ( )

清理数组。

返回
无。

◆ removeAt()

boolean com.foxit.sdk.common.fxcrt.PointFArray.removeAt ( int  nIndex,
int  nCount 
)

在指定位置移除若干元素。

参数
[in]nIndex指定数组中的基于零的索引。
[in]nCount指定要移除的元素数量。
返回
true 表示成功,false 表示失败(如参数或内存错误)。

◆ setAt()

boolean com.foxit.sdk.common.fxcrt.PointFArray.setAt ( int  nIndex,
PointF  newElement 
)

此方法覆盖由索引号指定的元素。

参数
[in]nIndex指定元素的基于零的索引。
[in]newElement元素。
返回
true 表示成功,false 表示失败。

◆ setAtGrow()

boolean com.foxit.sdk.common.fxcrt.PointFArray.setAtGrow ( int  nIndex,
PointF  newElement 
)

在指定位置设置元素值。可能会增长数组。

参数
[in]nIndex指定数组中元素的基于零的索引。
[in]newElement输入的元素。
返回
true 表示成功,false 表示失败。

◆ setSize()

boolean com.foxit.sdk.common.fxcrt.PointFArray.setSize ( int  nNewSize,
int  nGrowBy 
)

更改分配的大小和增长量。

参数
[in]nNewSize期望的新大小(以元素为单位)。
[in]nGrowBy期望的增长量(以元素为单位)。这可以为-1表示增长量不变。
返回
true 表示成功,false 表示失败(如参数或内存错误)。