Package org.apache.poi.sl.draw
Class DrawSheet
- java.lang.Object
-
- org.apache.poi.sl.draw.DrawSheet
-
- All Implemented Interfaces:
Drawable
- Direct Known Subclasses:
DrawMasterSheet
,DrawSlide
public class DrawSheet extends Object implements Drawable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.poi.sl.draw.Drawable
Drawable.DrawableHint
-
-
Field Summary
Fields Modifier and Type Field Description protected Sheet<?,?>
sheet
-
Fields inherited from interface org.apache.poi.sl.draw.Drawable
BUFFERED_IMAGE, CACHE_IMAGE_SOURCE, 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyTransform(Graphics2D context)
Apply 2-D transforms before drawing this shape.protected boolean
canDraw(Graphics2D graphics, Shape<?,?> shape)
Checks if thissheet
displays the specified shape.void
draw(Graphics2D graphics)
Draw this shape into the supplied canvasvoid
drawContent(Graphics2D context)
draw any content within this shape (image, text, etc.).
-
-
-
Field Detail
-
sheet
protected final Sheet<?,?> sheet
-
-
Constructor Detail
-
DrawSheet
public DrawSheet(Sheet<?,?> sheet)
-
-
Method Detail
-
draw
public void draw(Graphics2D graphics)
Description copied from interface:Drawable
Draw this shape into the supplied canvas
-
applyTransform
public void applyTransform(Graphics2D context)
Description copied from interface:Drawable
Apply 2-D transforms before drawing this shape. This includes rotation and flipping.- Specified by:
applyTransform
in interfaceDrawable
- Parameters:
context
- the graphics whose transform matrix will be modified
-
drawContent
public void drawContent(Graphics2D context)
Description copied from interface:Drawable
draw any content within this shape (image, text, etc.).- Specified by:
drawContent
in interfaceDrawable
- Parameters:
context
- the graphics to draw into
-
canDraw
protected boolean canDraw(Graphics2D graphics, Shape<?,?> shape)
Checks if thissheet
displays the specified shape. Subclasses can override it and skip certain shapes from drawings, for instance, slide masters and layouts don't display placeholders
-
-