@Beta public abstract class XSLFShape extends Object implements Shape<XSLFShape,XSLFTextParagraph>
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D graphics,
Rectangle2D bounds)
Convenience method to draw a single shape
|
XSLFShapeContainer |
getParent() |
Placeholder |
getPlaceholder() |
XSLFPlaceholderDetails |
getPlaceholderDetails() |
int |
getShapeId()
Returns a unique identifier for this shape within the current slide.
|
String |
getShapeName() |
XSLFSheet |
getSheet() |
XmlObject |
getXmlObject() |
boolean |
isPlaceholder() |
void |
setParent(XSLFShapeContainer parent) |
void |
setPlaceholder(Placeholder placeholder) |
public final XmlObject getXmlObject()
public XSLFSheet getSheet()
getSheet
in interface Shape<XSLFShape,XSLFTextParagraph>
public String getShapeName()
getShapeName
in interface Shape<XSLFShape,XSLFTextParagraph>
public int getShapeId()
Shape
If multiple objects within the same slide share the same id attribute value, then the document shall be considered non-conformant.
getShapeId
in interface Shape<XSLFShape,XSLFTextParagraph>
public void setParent(XSLFShapeContainer parent)
public XSLFShapeContainer getParent()
getParent
in interface Shape<XSLFShape,XSLFTextParagraph>
public boolean isPlaceholder()
public Placeholder getPlaceholder()
PlaceholderDetails.getPlaceholder()
public void setPlaceholder(Placeholder placeholder)
public XSLFPlaceholderDetails getPlaceholderDetails()
SimpleShape.getPlaceholderDetails()
public void draw(Graphics2D graphics, Rectangle2D bounds)
Shape
draw
in interface Shape<XSLFShape,XSLFTextParagraph>
graphics
- the graphics contextbounds
- the rectangle to fit the shape to.
if null, the bounds of the shape are used.Copyright © 2010 - 2020 Adobe. All Rights Reserved