public class DrawSheet extends java.lang.Object implements Drawable
Drawable.DrawableHint
Modifier and Type | Field and Description |
---|---|
protected Sheet<?,?> |
sheet |
BUFFERED_IMAGE, CURRENT_SLIDE, DEFAULT_CHARSET, DRAW_FACTORY, EMF_FORCE_HEADER_BOUNDS, FONT_FALLBACK, FONT_HANDLER, FONT_MAP, GRADIENT_SHAPE, GRESTORE, GROUP_TRANSFORM, GSAVE, IMAGE_RENDERER, PRESET_GEOMETRY_CACHE, TEXT_AS_CHARACTERS, TEXT_AS_SHAPES, TEXT_RENDERING_MODE
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(java.awt.Graphics2D context)
Apply 2-D transforms before drawing this shape.
|
protected boolean |
canDraw(java.awt.Graphics2D graphics,
Shape<?,?> shape)
Checks if this
sheet displays the specified shape. |
void |
draw(java.awt.Graphics2D graphics)
Draw this shape into the supplied canvas
|
void |
drawContent(java.awt.Graphics2D context)
draw any content within this shape (image, text, etc.).
|
protected final Sheet<?,?> sheet
public DrawSheet(Sheet<?,?> sheet)
public void draw(java.awt.Graphics2D graphics)
Drawable
public void applyTransform(java.awt.Graphics2D context)
Drawable
applyTransform
in interface Drawable
context
- the graphics whos transform matrix will be modifiedpublic void drawContent(java.awt.Graphics2D context)
Drawable
drawContent
in interface Drawable
context
- the graphics to draw intoprotected boolean canDraw(java.awt.Graphics2D graphics, Shape<?,?> shape)
sheet
displays the specified shape.
Subclasses can override it and skip certain shapes from drawings,
for instance, slide masters and layouts don't display placeholdersCopyright 2021 The Apache Software Foundation or its licensors, as applicable.