public interface Shape<S extends Shape<S,P>,P extends TextParagraph<S,P,?>>
| 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() |
Sheet<S,P> |
getSheet() |
ShapeContainer<S,P> getParent()
java.awt.geom.Rectangle2D getAnchor()
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.Copyright 2018 The Apache Software Foundation or its licensors, as applicable.