Package org.apache.poi.sl.draw
Class DrawShape
java.lang.Object
org.apache.poi.sl.draw.DrawShape
- All Implemented Interfaces:
Drawable
- Direct Known Subclasses:
DrawBackground
,DrawGraphicalFrame
,DrawGroupShape
,DrawSimpleShape
,DrawTableShape
-
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 TypeMethodDescriptionvoid
applyTransform
(Graphics2D graphics) Apply 2-D transforms before drawing this shape.void
draw
(Graphics2D graphics) Draw this shape into the supplied canvasvoid
drawContent
(Graphics2D graphics) draw any content within this shape (image, text, etc.).static Rectangle2D
getAnchor
(Graphics2D graphics, Rectangle2D anchor) static Rectangle2D
getAnchor
(Graphics2D graphics, PlaceableShape<?, ?> shape) protected Shape
<?, ?> getShape()
protected static BasicStroke
getStroke
(StrokeStyle strokeStyle)
-
Field Details
-
shape
-
-
Constructor Details
-
DrawShape
-
-
Method Details
-
applyTransform
Apply 2-D transforms before drawing this shape. This includes rotation and flipping.- Specified by:
applyTransform
in interfaceDrawable
- Parameters:
graphics
- the graphics whos transform matrix will be modified
-
draw
Description copied from interface:Drawable
Draw this shape into the supplied canvas -
drawContent
Description copied from interface:Drawable
draw any content within this shape (image, text, etc.).- Specified by:
drawContent
in interfaceDrawable
- Parameters:
graphics
- the graphics to draw into
-
getAnchor
-
getAnchor
-
getShape
-
getStroke
-