FigureElement

遗产: java.lang.Object, com.aspose.pdf.tagged.logicalstructure.elements.Element, com.aspose.pdf.tagged.logicalstructure.elements.StructureElement, com.aspose.pdf.tagged.logicalstructure.elements.IllustrationElement

public class FigureElement extends IllustrationElement

表示逻辑结构中的图形结构元素。

构造函数

构造函数描述
FigureElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity)

方法

方法描述
findElements(Class typeOfTboolean)查找给定类型的元素
findElements(Class typeOfT, boolean recursiveSearch)查找给定类型的元素
appendChild(Element element)将 /Aspose.Pdf.LogicalStructure.Element 附加到子集合。
changeParentElement(StructureElement newParentElement)更改当前结构元素的父元素
clearId()清除结构元素的 ID。
equals(Object arg0)
generateId()为结构元素生成 ID。
getActualText()获取或设置结构元素的实际文本。
getAlternativeText()获取或设置结构元素的替代文本。
getAttributes()获取 StructureAttributeCollection 对象。
getChildElements()获取 Element 对象的子集合。
getClass()
getDefaultAttributeOwner()获取 /Aspose.Pdf.LogicalStructure.AttributeOwnerStandard 对象。
getElementEngine()获取父元素。
getExpansionText()获取或设置结构元素的扩展文本。
getID()获取结构元素的 ID。
getLanguage()获取或设置结构元素的语言。
getParentElement()获取 Element 对象的父集合。
getS()
getStructureType()获取结构元素的类型。
getTaggedContent()
getTitle()获取或设置结构元素的标题。
getTrailer()内部法
hashCode()
notify()
notifyAll()
setActualText(String value)获取或设置结构元素的实际文本。
setAlternativeText(String value)获取或设置结构元素的替代文本。
setExpansionText(String value)获取或设置结构元素的扩展文本。
setId(String id)设置结构元素的 ID。
setImage(String imageSrc)将图像附加到当前插图元素。
setImage(String imageSrc, double imageResolution)将图像附加到当前插图元素。
setImage(String imageSrc, double imageWidth, double imageHeight)将图像附加到当前插图元素。
setLanguage(String value)获取或设置结构元素的语言。
setParentElement(Element parentElement)设置父元素
setTag(String newTag)为结构元素设置自定义标签。
setTitle(String value)获取或设置结构元素的标题。
toString()返回表示当前对象的字符串。
wait()
wait(long arg0)
wait(long arg0, int arg1)

FigureElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity)

public FigureElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity)

参数:

范围类型描述
taggedContextTaggedContext
pdfEngineEntityIPdfPrimitive

findElements(Class typeOfTboolean)

public List<T> <T>findElements(Class<T> typeOfTboolean)

查找给定类型的元素

参数:

范围类型描述
typeOfTbooleanjava.lang.Class类实例

退货: java.util.列表 找到的元素列表

findElements(Class typeOfT, boolean recursiveSearch)

public List<T> <T>findElements(Class<T> typeOfT, boolean recursiveSearch)

查找给定类型的元素

参数:

范围类型描述
typeOfTjava.lang.Class类实例
recursiveSearchboolean(可选)递归搜索(默认 false,仅从直接子项搜索)

退货: java.util.列表 找到的元素列表

appendChild(Element element)

public final Element appendChild(Element element)

将 /Aspose.Pdf.LogicalStructure.Element 附加到子集合。

参数:

范围类型描述
elementElement/Aspose.Pdf.LogicalStructure.Element 对象添加。

退货: Element - 添加了/Aspose.Pdf.LogicalStructure.Element。

changeParentElement(StructureElement newParentElement)

public final void changeParentElement(StructureElement newParentElement)

更改当前结构元素的父元素

参数:

范围类型描述
newParentElementStructureElement新的父结构元素

clearId()

public final void clearId()

清除结构元素的 ID。

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

generateId()

public final void generateId()

为结构元素生成 ID。

getActualText()

public final String getActualText()

获取或设置结构元素的实际文本。

退货: java.lang.String - 值:结构元素的实际文本。

getAlternativeText()

public final String getAlternativeText()

获取或设置结构元素的替代文本。

退货: java.lang.String - 值:结构元素的替代文本。

getAttributes()

public final StructureAttributeCollection getAttributes()

获取 StructureAttributeCollection 对象。

退货: StructureAttributeCollection - StructureAttributeCollection 对象。

getChildElements()

public final ElementList getChildElements()

获取 Element 对象的子集合。

退货: ElementList - 值:元素对象的子集合。

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getDefaultAttributeOwner()

public final AttributeOwnerStandard getDefaultAttributeOwner()

获取 /Aspose.Pdf.LogicalStructure.AttributeOwnerStandard 对象。

值:/Aspose.Pdf.LogicalStructure.AttributeOwnerStandard 对象。

退货: AttributeOwnerStandard - AttributeOwnerStandard 实例

getElementEngine()

public final ElementPdfEngine getElementEngine()

获取父元素。

退货: ElementPdfEngine - 值:父元素。

getExpansionText()

public final String getExpansionText()

获取或设置结构元素的扩展文本。

退货: java.lang.String - 值:结构元素的扩展文本。

getID()

public final String getID()

获取结构元素的 ID。

值:结构元素的 ID。

退货: java.lang.String - 字符串值

getLanguage()

public final String getLanguage()

获取或设置结构元素的语言。

退货: java.lang.String - 值:结构元素的语言。

getParentElement()

public final Element getParentElement()

获取 Element 对象的父集合。

退货: Element - 值:元素对象的父集合。

getS()

public final IPdfName getS()

退货: IPdfName

getStructureType()

public final StructureTypeStandard getStructureType()

获取结构元素的类型。

退货: StructureTypeStandard - 值:结构元素的 StructureTypeStandard 对象。

getTaggedContent()

public final ITaggedContent getTaggedContent()

退货: ITaggedContent

getTitle()

public final String getTitle()

获取或设置结构元素的标题。

退货: java.lang.String - 值:结构元素的标题。

getTrailer()

public final ITrailerable getTrailer()

内部法

退货: ITrailerable - 内部元素

hashCode()

public native int hashCode()

退货: 整数

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setActualText(String value)

public final void setActualText(String value)

获取或设置结构元素的实际文本。

参数:

范围类型描述
valuejava.lang.String值:结构元素的实际文本。

setAlternativeText(String value)

public final void setAlternativeText(String value)

获取或设置结构元素的替代文本。

参数:

范围类型描述
valuejava.lang.String值:结构元素的替代文本。

setExpansionText(String value)

public final void setExpansionText(String value)

获取或设置结构元素的扩展文本。

参数:

范围类型描述
valuejava.lang.String值:结构元素的扩展文本。

setId(String id)

public final void setId(String id)

设置结构元素的 ID。

参数:

范围类型描述
idjava.lang.String结构元素的 ID 值

setImage(String imageSrc)

public void setImage(String imageSrc)

将图像附加到当前插图元素。

参数:

范围类型描述
imageSrcjava.lang.String图片来源。

setImage(String imageSrc, double imageResolution)

public void setImage(String imageSrc, double imageResolution)

将图像附加到当前插图元素。

参数:

范围类型描述
imageSrcjava.lang.String图片来源。
imageResolutiondouble(可选)图像分辨率。默认值:300 DPI。

setImage(String imageSrc, double imageWidth, double imageHeight)

public void setImage(String imageSrc, double imageWidth, double imageHeight)

将图像附加到当前插图元素。

参数:

范围类型描述
imageSrcjava.lang.String图片来源。
imageWidthdouble图像宽度。
imageHeightdouble图像高度。

setLanguage(String value)

public final void setLanguage(String value)

获取或设置结构元素的语言。

参数:

范围类型描述
valuejava.lang.String值:结构元素的语言。

setParentElement(Element parentElement)

public void setParentElement(Element parentElement)

设置父元素

参数:

范围类型描述
parentElementElement价值

setTag(String newTag)

public final void setTag(String newTag)

为结构元素设置自定义标签。

参数:

范围类型描述
newTagjava.lang.String标签名

setTitle(String value)

public final void setTitle(String value)

获取或设置结构元素的标题。

参数:

范围类型描述
valuejava.lang.String值:结构元素的标题。

toString()

public String toString()

返回表示当前对象的字符串。

退货: java.lang.String - 表示当前对象的字符串。

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int