Foxit PDF SDK
com.foxit.sdk.addon.accessibility.TreeItemInfo类 参考

Public 成员函数

 TreeItemInfo ()
 构造函数。
更多...
 
 TreeItemInfo (int type, int order_index, int page_index, String text, RectF rect)
 构造函数。
更多...
 
 TreeItemInfo (TreeItemInfo other)
 构造函数,使用另一个阅读顺序树项信息对象。
更多...
 
synchronized void delete ()
 直接清除C++相关资源。 更多...
 
int getOrder_index ()
 Get 项的顺序索引,从 0 开始。
更多...
 
int getPage_index ()
 Get 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf.PDFDoc.getPageCount 返回的页面总数。
更多...
 
RectF getRect ()
 Get 页面内容项的矩形区域。
更多...
 
String getText ()
 Get 项文本,用于在 UI 中显示。
更多...
 
int getType ()
 Get 项内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。
更多...
 
void set (int type, int order_index, int page_index, String text, RectF rect)
 设置值。
更多...
 
void setOrder_index (int value)
 Set 项的顺序索引,从 0 开始。
更多...
 
void setPage_index (int value)
 Set 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf.PDFDoc.getPageCount 返回的页面总数。
更多...
 
void setRect (RectF value)
 Set 页面内容项的矩形区域。
更多...
 
void setText (String value)
 Set 项文本,用于在 UI 中显示。
更多...
 
void setType (int value)
 Set 项内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。
更多...
 

详细描述

此类表示用于阅读顺序树项信息的数据。

构造及析构函数说明

◆ TreeItemInfo() [1/3]

com.foxit.sdk.addon.accessibility.TreeItemInfo.TreeItemInfo ( )

构造函数。

返回
无。

◆ TreeItemInfo() [2/3]

com.foxit.sdk.addon.accessibility.TreeItemInfo.TreeItemInfo ( int  type,
int  order_index,
int  page_index,
String  text,
RectF  rect 
)

构造函数。

参数
[in]type内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。
[in]order_index顺序索引。
[in]page_index页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf.PDFDoc.getPageCount 返回的页面总数。
[in]text项文本。
[in]rect矩形。
返回
无。

◆ TreeItemInfo() [3/3]

com.foxit.sdk.addon.accessibility.TreeItemInfo.TreeItemInfo ( TreeItemInfo  other)

构造函数,使用另一个阅读顺序树项信息对象。

参数
[in]other另一个阅读顺序树项信息对象。

成员函数说明

◆ delete()

synchronized void com.foxit.sdk.addon.accessibility.TreeItemInfo.delete ( )

直接清除C++相关资源。

返回
无。
注解
一旦这个接口被调用,这个对象将不能再被使用。

◆ getOrder_index()

com.foxit.sdk.addon.accessibility.TreeItemInfo.getOrder_index ( )

Get 项的顺序索引,从 0 开始。

返回
项的顺序索引,从 0 开始。

◆ getPage_index()

com.foxit.sdk.addon.accessibility.TreeItemInfo.getPage_index ( )

Get 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf.PDFDoc.getPageCount 返回的页面总数。

返回
选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf.PDFDoc.getPageCount 返回的页面总数。

◆ getRect()

com.foxit.sdk.addon.accessibility.TreeItemInfo.getRect ( )

Get 页面内容项的矩形区域。

返回
页面内容项的矩形区域。

◆ getText()

com.foxit.sdk.addon.accessibility.TreeItemInfo.getText ( )

Get 项文本,用于在 UI 中显示。

返回
项文本,用于在 UI 中显示。

◆ getType()

com.foxit.sdk.addon.accessibility.TreeItemInfo.getType ( )

Get 项内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。

返回
项内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。

◆ set()

void com.foxit.sdk.addon.accessibility.TreeItemInfo.set ( int  type,
int  order_index,
int  page_index,
String  text,
RectF  rect 
)

设置值。

参数
[in]type内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。
[in]order_index顺序索引。
[in]page_index页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf.PDFDoc.getPageCount 返回的页面总数。
[in]text项文本。
[in]rect矩形。
返回
无。

◆ setOrder_index()

com.foxit.sdk.addon.accessibility.TreeItemInfo.setOrder_index ( int  value)

Set 项的顺序索引,从 0 开始。

参数
[in]value项的顺序索引,从 0 开始。
返回
None.

◆ setPage_index()

com.foxit.sdk.addon.accessibility.TreeItemInfo.setPage_index ( int  value)

Set 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf.PDFDoc.getPageCount 返回的页面总数。

参数
[in]value选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf.PDFDoc.getPageCount 返回的页面总数。
返回
None.

◆ setRect()

com.foxit.sdk.addon.accessibility.TreeItemInfo.setRect ( RectF  value)

Set 页面内容项的矩形区域。

参数
[in]value页面内容项的矩形区域。
返回
None.

◆ setText()

com.foxit.sdk.addon.accessibility.TreeItemInfo.setText ( String  value)

Set 项文本,用于在 UI 中显示。

参数
[in]value项文本,用于在 UI 中显示。
返回
None.

◆ setType()

com.foxit.sdk.addon.accessibility.TreeItemInfo.setType ( int  value)

Set 项内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。

参数
[in]value项内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。
返回
None.