public class CT_RadialShd extends OFDElement implements ColorClusterType
8.3.4.3 径向渐变 图 35 表 30
径向渐变定义了两个离心率和倾斜角度均相同的椭圆,并在椭圆边缘连线 区域内进行渐变绘制的方法。具体算法是,先由起始点椭圆中心点开始绘制 一个起始点颜色的空心矩形,随后沿着中心点连线不断绘制离心率与倾角角度 相同的空心椭圆,颜色由起始点颜色逐渐渐变为结束点颜色,椭圆大小由起始点 椭圆主键变为结束点椭圆。
当轴向渐变某个方向设定为延伸时(Extend 不等于 0),渐变应沿轴在该方向的延长线 延伸到超出裁剪区在该轴线的投影区域为止。当 MapType 为 Direct 时,延伸区域的 渲染颜色使用该方向轴点所在的段的颜色;否则,按照在轴线区域内的渲染规则进行渲染。
proxy| 构造器和说明 |
|---|
CT_RadialShd() |
CT_RadialShd(org.dom4j.Element proxy) |
| 限定符和类型 | 方法和说明 |
|---|---|
CT_RadialShd |
addSegment(Segment segment)
【必选】
增加 段
|
Double |
getAngle()
【可选 属性】
获取 两个椭圆的倾斜角度
椭圆长轴与 x 轴正向的夹角,单位为度
默认值为 0
|
Double |
getEccentricity()
【可选 属性】
获取 两个椭圆的离心率
椭圆焦距与长轴的比值,取值范围是 [0, 1.0)
默认值为 0,在这种情况下退化为圆
|
ST_Pos |
getEndPoint()
【必选 属性】
获取 结束椭圆的的中心点
|
Double |
getEndRadius()
【必选 属性】
设置 结束椭圆的长半轴
|
Extend |
getExtend()
【可选 属性】
获取 轴线延长线方向是否继续绘制
默认值为
Extend._0 不向两侧继续绘制渐变 |
MapType |
getMapType()
【可选 属性】
获取 渐变绘制的方式
可选值参考
MapType |
Double |
getMapUnit()
【可选 属性】
获取 轴线一个渐变区间的长度
当 MapType 的值不等于 Direct 时出现
默认值为轴线长度
|
List<Segment> |
getSegments()
【必选】
获取 段列表
|
ST_Pos |
getStartPoint()
【必选 属性】
获取 起始椭圆的的中心点
|
Double |
getStartRadius()
【可选 属性】
获取 起始椭圆的长半轴
默认值为 0
|
CT_RadialShd |
setAngle(Double angle)
【可选 属性】
设置 两个椭圆的倾斜角度
椭圆长轴与 x 轴正向的夹角,单位为度
默认值为 0
|
CT_RadialShd |
setEccentricity(Double eccentricity)
【可选 属性】
设置 两个椭圆的离心率
椭圆焦距与长轴的比值,取值范围是 [0, 1.0)
默认值为 0,在这种情况下退化为圆
|
CT_RadialShd |
setEndPoint(ST_Pos endPoint)
【必选 属性】
设置 结束椭圆的的中心点
|
CT_RadialShd |
setEndRadius(Double endRadius)
【必选 属性】
设置 结束椭圆的长半轴
|
CT_RadialShd |
setExtend(Extend extend)
|
CT_RadialShd |
setMapType(MapType mapType)
【可选 属性】
设置 渐变绘制的方式
可选值参考
MapType |
CT_RadialShd |
setMapUnit(Double mapUnit)
【可选 属性】
设置 轴线一个渐变区间的长度
当 MapType 的值不等于 Direct 时出现
默认值为轴线长度
|
CT_RadialShd |
setStartPoint(ST_Pos startPoint)
【必选 属性】
设置 起始椭圆的的中心点
|
CT_RadialShd |
setStartRadius(Double startRadius)
【可选 属性】
设置 起始椭圆的长半轴
默认值为 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, 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 CT_RadialShd(org.dom4j.Element proxy)
public CT_RadialShd()
public CT_RadialShd setMapType(MapType mapType)
可选值参考MapType
mapType - 绘制方向public CT_RadialShd setMapUnit(Double mapUnit)
当 MapType 的值不等于 Direct 时出现
默认值为轴线长度
mapUnit - 轴线一个渐变区间的长度public Double getMapUnit()
当 MapType 的值不等于 Direct 时出现
默认值为轴线长度
public CT_RadialShd setEccentricity(Double eccentricity)
椭圆焦距与长轴的比值,取值范围是 [0, 1.0)
默认值为 0,在这种情况下退化为圆
eccentricity - 两个椭圆的离心率,取值范围是 [0, 1.0)public Double getEccentricity()
椭圆焦距与长轴的比值,取值范围是 [0, 1.0)
默认值为 0,在这种情况下退化为圆
public CT_RadialShd setAngle(Double angle)
椭圆长轴与 x 轴正向的夹角,单位为度
默认值为 0
angle - 两个椭圆的倾斜角度public Double getAngle()
椭圆长轴与 x 轴正向的夹角,单位为度
默认值为 0
public CT_RadialShd setStartPoint(ST_Pos startPoint)
startPoint - 起始椭圆的的中心点public ST_Pos getStartPoint()
public CT_RadialShd setEndPoint(ST_Pos endPoint)
endPoint - 结束椭圆的的中心点public ST_Pos getEndPoint()
public CT_RadialShd setStartRadius(Double startRadius)
默认值为 0
startRadius - 起始椭圆的长半轴长度public Double getStartRadius()
默认值为 0
public CT_RadialShd setEndRadius(Double endRadius)
endRadius - 结束椭圆的长半轴长度public Double getEndRadius()
public CT_RadialShd setExtend(Extend extend)
extend - 轴线延长线方向是否继续绘制public Extend getExtend()
默认值为 Extend._0 不向两侧继续绘制渐变
Extendpublic CT_RadialShd addSegment(Segment segment)
segment - 段Copyright © 2021. All rights reserved.