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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.poi.sl.draw.Drawable
Drawable.DrawableHint -
Field Summary
FieldsFields inherited from interface org.apache.poi.sl.draw.Drawable
CURRENT_SLIDE, DRAW_FACTORY, 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTransform(Graphics2D context) Apply 2-D transforms before drawing this shape.protected booleancanDraw(Graphics2D graphics, Shape<?, ?> shape) Checks if thissheetdisplays the specified shape.voiddraw(Graphics2D graphics) Draw this shape into the supplied canvasvoiddrawContent(Graphics2D context) draw any content within this shape (image, text, etc.).
-
Field Details
-
sheet
-
-
Constructor Details
-
DrawSheet
-
-
Method Details
-
draw
Description copied from interface:DrawableDraw this shape into the supplied canvas -
applyTransform
Description copied from interface:DrawableApply 2-D transforms before drawing this shape. This includes rotation and flipping.- Specified by:
applyTransformin interfaceDrawable- Parameters:
context- the graphics whos transform matrix will be modified
-
drawContent
Description copied from interface:Drawabledraw any content within this shape (image, text, etc.).- Specified by:
drawContentin interfaceDrawable- Parameters:
context- the graphics to draw into
-
canDraw
Checks if thissheetdisplays the specified shape. Subclasses can override it and skip certain shapes from drawings, for instance, slide masters and layouts don't display placeholders
-