public class XSLFBackground extends XSLFSimpleShape implements Background<XSLFShape,XSLFTextParagraph>
XSLFShape.ReparseFactory<T extends org.apache.xmlbeans.XmlObject>
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape.
(返回此形状的锚点(边界框矩形)。)
|
protected org.openxmlformats.schemas.presentationml.x2006.main.CTBackgroundProperties |
getBgPr(boolean create) |
protected org.apache.xmlbeans.XmlObject |
getShapeProperties()
Return the shape specific (visual) properties
(返回特定于形状的(视觉)属性)
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D |
getXfrm(boolean create)
background does not have a associated transform, therefore we return null
(背景没有关联的变换,因此我们返回 null)
|
void |
setFillColor(java.awt.Color color)
Specifies a solid color fill.
(指定纯色填充。)
|
void |
setPlaceholder(Placeholder placeholder)
Specifies that the corresponding shape should be represented by the generating application as a placeholder.
(指定相应的形状应由生成应用程序表示为占位符。)
|
createHyperlink, getAdjustValue, getFillColor, getFillStyle, getFlipHorizontal, getFlipVertical, getGeometry, getHyperlink, getLineCap, getLineColor, getLineCompound, getLineDash, getLineDecoration, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLinePaint, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getRotation, getShadow, getShapeType, getStrokeStyle, setAnchor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType, setStrokeStyle
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFillStyle
draw, getParent, getShapeId, getShapeName, getSheet
getPlaceholder, getPlaceholderDetails, isPlaceholder
getParent, getSheet
public java.awt.geom.Rectangle2D getAnchor()
Shape
getAnchor
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getAnchor
getAnchor
in interface
Shape<XSLFShape,XSLFTextParagraph>
(接口 Shape 中的 getAnchor
getAnchor
in class
XSLFSimpleShape
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D getXfrm(boolean create)
getXfrm
in class
XSLFSimpleShape
create
- ignored
(创建 - 忽略)
public void setPlaceholder(Placeholder placeholder)
SimpleShape
setPlaceholder
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 setPlaceholder
setPlaceholder
in class
XSLFShape
placeholder
- the placeholder or null to remove the reference to the placeholder
(placeholder - 占位符或 null 删除对占位符的引用)
PlaceholderDetails.setPlaceholder(Placeholder)
protected org.openxmlformats.schemas.presentationml.x2006.main.CTBackgroundProperties getBgPr(boolean create)
public void setFillColor(java.awt.Color color)
SimpleShape
setFillColor
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 setFillColor
setFillColor
in class
XSLFSimpleShape
color
- the solid color fill. The value of
null
unsets the solid fill attribute from the underlying implementation
(color - 纯色填充。 null 的值从底层实现中取消设置实心填充属性)
protected org.apache.xmlbeans.XmlObject getShapeProperties()
XSLFShape
getShapeProperties
in class
XSLFShape
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.