public class TextCode extends OFDElement implements ClipAble
文字对象使用严格的文字定位信息进行定位
11.3 文字定位 图 61 表 46
proxy| 限定符和类型 | 方法和说明 |
|---|---|
String |
getContent()
获取文字内容
|
ST_Array |
getDeltaX()
【可选 属性】
获取 文字之间在 X 方向上的偏移值
double 型数值队列,列表中的每个值代表一个文字与前一个
文字之间在 X 方向的偏移值
DeltaX 不出现时,表示文字的绘制点在 X 方向不做偏移。
|
ST_Array |
getDeltaY()
【可选 属性】
获取 文字之间在 Y 方向上的偏移值
double 型数值队列,列表中的每个值代表一个文字与前一个
文字之间在 Y 方向的偏移值
DeltaY 不出现时,表示文字的绘制点在 Y 方向不做偏移。
|
Double |
getX()
【可选 属性】
设置 第一个文字的字形在对象坐标系下的 X 坐标
当 X 不出现,则采用上一个 TextCode 的 X 值,文字对象中的一个
TextCode 的属性必选
|
Double |
getY()
【可选 属性】
设置 第一个文字的字形在对象坐标系下的 Y 坐标
当 X 不出现,则采用上一个 TextCode 的 Y 值,文字对象中的一个
TextCode 的属性必选
|
TextCode |
setContent(String content)
设置文字内容
|
TextCode |
setCoordinate(Double x,
Double y)
设置坐标
|
TextCode |
setDeltaX(Double... arr)
【可选 属性】
设置 文字之间在 X 方向上的偏移值
double 型数值队列,列表中的每个值代表一个文字与前一个
文字之间在 X 方向的偏移值
DeltaX 不出现时,表示文字的绘制点在 X 方向不做偏移。
|
TextCode |
setDeltaX(ST_Array deltaX)
【可选 属性】
设置 文字之间在 X 方向上的偏移值
double 型数值队列,列表中的每个值代表一个文字与前一个
文字之间在 X 方向的偏移值
DeltaX 不出现时,表示文字的绘制点在 X 方向不做偏移。
|
TextCode |
setDeltaY(Double... arr)
【可选 属性】
设置 文字之间在 Y 方向上的偏移值
double 型数值队列,列表中的每个值代表一个文字与前一个
文字之间在 Y 方向的偏移值
DeltaY 不出现时,表示文字的绘制点在 Y 方向不做偏移。
|
TextCode |
setDeltaY(ST_Array deltaY)
【可选 属性】
设置 文字之间在 Y 方向上的偏移值
double 型数值队列,列表中的每个值代表一个文字与前一个
文字之间在 Y 方向的偏移值
DeltaY 不出现时,表示文字的绘制点在 Y 方向不做偏移。
|
TextCode |
setX(Double x)
【可选 属性】
设置 第一个文字的字形在对象坐标系下的 X 坐标
当 X 不出现,则采用上一个 TextCode 的 X 值,文字对象中的一个
TextCode 的属性必选
|
TextCode |
setY(Double y)
【可选 属性】
设置 第一个文字的字形原点在对象坐标系下的 Y 坐标
当 Y 不出现,则采用上一个 TextCode 的 Y 值,文字对象中的一个
TextCode 的属性必选
|
addOFDEntity, getElements, getInstance, getObjID, getOFDElement, getOFDElement, getOFDElements, getOFDElementText, getQualifiedName, removeAll, removeAttr, removeOFDElemByNames, set, setObjID, setObjID, setOFDEntity, setOFDNameaccept, add, add, add, add, add, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addElement, addElement, addElement, addEntity, additionalNamespaces, addNamespace, addProcessingInstruction, addProcessingInstruction, addText, appendAttributes, appendContent, asXML, asXPathResult, attribute, attribute, attribute, attributeCount, attributeIterator, attributes, attributeValue, attributeValue, attributeValue, attributeValue, clearContent, clone, content, createCopy, createCopy, createCopy, createXPath, declaredNamespaces, detach, element, element, elementByID, elementIterator, elementIterator, elementIterator, elements, elements, elements, elementText, elementText, elementTextTrim, elementTextTrim, equals, getData, getDocument, getName, getNamespace, getNamespaceForPrefix, getNamespaceForURI, getNamespacePrefix, getNamespacesForURI, getNamespaceURI, getNodeType, getNodeTypeName, getParent, getPath, getPath, getProxy, getQName, getQName, getStringValue, getText, getTextTrim, getUniquePath, getUniquePath, getXPathResult, hasContent, hasMixedContent, indexOf, isReadOnly, isRootElement, isTextOnly, matches, node, nodeCount, nodeIterator, normalize, numberValueOf, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, remove, remove, remove, remove, remove, removeProcessingInstruction, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setAttributes, setAttributeValue, setAttributeValue, setContent, setData, setDocument, setName, setParent, setProcessingInstructions, setProxy, setQName, setText, supportsParent, valueOf, writefinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstanceadd, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addEntity, additionalNamespaces, addNamespace, addProcessingInstruction, addProcessingInstruction, addText, appendAttributes, attribute, attribute, attribute, attributeCount, attributeIterator, attributes, attributeValue, attributeValue, attributeValue, attributeValue, createCopy, createCopy, createCopy, declaredNamespaces, element, element, elementIterator, elementIterator, elementIterator, elements, elements, elements, elementText, elementText, elementTextTrim, elementTextTrim, getData, getNamespace, getNamespaceForPrefix, getNamespaceForURI, getNamespacePrefix, getNamespacesForURI, getNamespaceURI, getQName, getQName, getQualifiedName, getStringValue, getText, getTextTrim, getXPathResult, hasMixedContent, isRootElement, isTextOnly, remove, remove, remove, remove, remove, setAttributes, setAttributeValue, setAttributeValue, setData, setQNameadd, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructionsaccept, asXML, asXPathResult, clone, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, writepublic String getContent()
public TextCode setX(Double x)
当 X 不出现,则采用上一个 TextCode 的 X 值,文字对象中的一个 TextCode 的属性必选
x - 第一个文字的字形在对象坐标系下的 X 坐标public Double getX()
当 X 不出现,则采用上一个 TextCode 的 X 值,文字对象中的一个 TextCode 的属性必选
public TextCode setY(Double y)
当 Y 不出现,则采用上一个 TextCode 的 Y 值,文字对象中的一个 TextCode 的属性必选
y - 第一个文字的字形原点在对象坐标系下的 Y 坐标public Double getY()
当 X 不出现,则采用上一个 TextCode 的 Y 值,文字对象中的一个 TextCode 的属性必选
public TextCode setDeltaX(ST_Array deltaX)
double 型数值队列,列表中的每个值代表一个文字与前一个 文字之间在 X 方向的偏移值
DeltaX 不出现时,表示文字的绘制点在 X 方向不做偏移。
deltaX - 文字之间在 X 方向上的偏移值public TextCode setDeltaX(Double... arr)
double 型数值队列,列表中的每个值代表一个文字与前一个 文字之间在 X 方向的偏移值
DeltaX 不出现时,表示文字的绘制点在 X 方向不做偏移。
arr - 文字之间在 X 方向上的偏移值数值public ST_Array getDeltaX()
double 型数值队列,列表中的每个值代表一个文字与前一个 文字之间在 X 方向的偏移值
DeltaX 不出现时,表示文字的绘制点在 X 方向不做偏移。
public TextCode setDeltaY(ST_Array deltaY)
double 型数值队列,列表中的每个值代表一个文字与前一个 文字之间在 Y 方向的偏移值
DeltaY 不出现时,表示文字的绘制点在 Y 方向不做偏移。
deltaY - 文字之间在 Y 方向上的偏移值;null表示不偏移public TextCode setDeltaY(Double... arr)
double 型数值队列,列表中的每个值代表一个文字与前一个 文字之间在 Y 方向的偏移值
DeltaY 不出现时,表示文字的绘制点在 Y 方向不做偏移。
arr - 文字之间在 Y 方向上的偏移数值public ST_Array getDeltaY()
double 型数值队列,列表中的每个值代表一个文字与前一个 文字之间在 Y 方向的偏移值
DeltaY 不出现时,表示文字的绘制点在 Y 方向不做偏移。
Copyright © 2021. All rights reserved.