public interface Shape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
Convenience method to draw a single shape
|
java.awt.geom.Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape.
|
ShapeContainer<S,P> |
getParent() |
int |
getShapeId()
Returns a unique identifier for this shape within the current slide.
|
java.lang.String |
getShapeName() |
Sheet<S,P> |
getSheet() |
ShapeContainer<S,P> getParent()
java.awt.geom.Rectangle2D getAnchor()
java.lang.String getShapeName()
void draw(java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D bounds)
graphics
- the graphics contextbounds
- the rectangle to fit the shape to.
if null, the bounds of the shape are used.int getShapeId()
If multiple objects within the same slide share the same id attribute value, then the document shall be considered non-conformant.
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.