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 context
(graphics - 图形上下文)
bounds
- the rectangle to fit the shape to. if null, the bounds of the shape are used.
(bounds - 适合形状的矩形。如果为 null,则使用形状的边界。)
int getShapeId()
If multiple objects within the same slide share the same id attribute value, then the document shall be considered non-conformant.
(返回当前幻灯片中此形状的唯一标识符。此 ID 可用于帮助唯一标识此对象,以便文档的其他部分可以引用它。如果同一张幻灯片中的多个对象共享相同的 id 属性值,则该文档应被视为不合格。)Copyright 2021 The Apache Software Foundation or its licensors, as applicable.