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
|
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>
getAnchor
in interface Shape<XSLFShape,XSLFTextParagraph>
getAnchor
in class XSLFSimpleShape
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D getXfrm(boolean create)
getXfrm
in class XSLFSimpleShape
create
- ignoredpublic void setPlaceholder(Placeholder placeholder)
SimpleShape
setPlaceholder
in interface SimpleShape<XSLFShape,XSLFTextParagraph>
setPlaceholder
in class XSLFShape
placeholder
- the placeholder or null to remove the reference to the placeholderPlaceholderDetails.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>
setFillColor
in class XSLFSimpleShape
color
- the solid color fill. The value of null
unsets
the solid fill attribute from the underlying implementationprotected org.apache.xmlbeans.XmlObject getShapeProperties()
XSLFShape
getShapeProperties
in class XSLFShape
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.