public class Segment extends OFDElement
至少出现两个
8.3.4.2 轴向渐变 图 29、30 表 29
proxy| 构造器和说明 |
|---|
Segment() |
Segment(CT_Color color) |
Segment(Double position,
CT_Color color) |
Segment(org.dom4j.Element proxy) |
| 限定符和类型 | 方法和说明 |
|---|---|
CT_Color |
getColor()
【必选】
获取 该段的颜色
应是基本颜色
|
Double |
getPosition()
【可选 属性】
获取 渐变段颜色位置参数
用于确定 StartPoint 和 EndPoint 中的各颜色的位置值,
取值范围是 [0, 1.0],各颜色的 Position 值应根据颜色出现
的顺序递增第一个 Segment 的 Position 属性默认值为 0,最后
一个 Segment 的 Position 属性默认值为 1.0,当不存在时,
在空缺的区间内平局分配。
|
Segment |
setColor(CT_Color color)
【必选】
设置 该段的颜色
应是基本颜色
|
Segment |
setPosition(Double position)
【可选 属性】
设置 渐变段颜色位置参数
用于确定 StartPoint 和 EndPoint 中的各颜色的位置值,
取值范围是 [0, 1.0],各颜色的 Position 值应根据颜色出现
的顺序递增第一个 Segment 的 Position 属性默认值为 0,最后
一个 Segment 的 Position 属性默认值为 1.0,当不存在时,
在空缺的区间内平局分配。
|
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, writepublic Segment(org.dom4j.Element proxy)
public Segment()
public Segment(CT_Color color)
color - 段颜色public Segment setPosition(Double position)
用于确定 StartPoint 和 EndPoint 中的各颜色的位置值, 取值范围是 [0, 1.0],各颜色的 Position 值应根据颜色出现 的顺序递增第一个 Segment 的 Position 属性默认值为 0,最后 一个 Segment 的 Position 属性默认值为 1.0,当不存在时, 在空缺的区间内平局分配。
举例: Segment 个数等于 2 且不出现 Position 属性时, 按照“0 1.0”处理;Segment 个数等于 3 且不出现 Position 属性时, 按照“0 0.5 1.0”处理;Segment 个数等于 5 且不出现 Position 属性时, 按照“0 0.25 0.5 0.75 1.0” 处理。
position - 渐变位置参数public Double getPosition()
用于确定 StartPoint 和 EndPoint 中的各颜色的位置值, 取值范围是 [0, 1.0],各颜色的 Position 值应根据颜色出现 的顺序递增第一个 Segment 的 Position 属性默认值为 0,最后 一个 Segment 的 Position 属性默认值为 1.0,当不存在时, 在空缺的区间内平局分配。
举例: Segment 个数等于 2 且不出现 Position 属性时, 按照“0 1.0”处理;Segment 个数等于 3 且不出现 Position 属性时, 按照“0 0.5 1.0”处理;Segment 个数等于 5 且不出现 Position 属性时, 按照“0 0.25 0.5 0.75 1.0” 处理。
public Segment setColor(CT_Color color)
应是基本颜色
color - 该段的颜色,应是基本颜色public CT_Color getColor()
应是基本颜色
Copyright © 2021. All rights reserved.