Package org.apache.poi.sl.draw
Class DrawSimpleShape
- java.lang.Object
-
- org.apache.poi.sl.draw.DrawShape
-
- org.apache.poi.sl.draw.DrawSimpleShape
-
- All Implemented Interfaces:
Drawable
- Direct Known Subclasses:
DrawConnectorShape,DrawPictureShape,DrawTextShape
public class DrawSimpleShape extends DrawShape
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.poi.sl.draw.Drawable
Drawable.DrawableHint
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description DrawSimpleShape(SimpleShape<?,?> shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<Outline>computeOutlines(java.awt.Graphics2D graphics)voiddraw(java.awt.Graphics2D graphics)Draw this shape into the supplied canvasprotected voiddrawDecoration(java.awt.Graphics2D graphics, java.awt.Paint line, java.awt.BasicStroke stroke)protected voiddrawShadow(java.awt.Graphics2D graphics, java.util.Collection<Outline> outlines, java.awt.Paint fill, java.awt.Paint line)protected java.awt.PaintgetFillPaint(java.awt.Graphics2D graphics)protected OutlinegetHeadDecoration(java.awt.Graphics2D graphics, LineDecoration deco, java.awt.BasicStroke stroke)protected java.awt.PaintgetLinePaint(java.awt.Graphics2D graphics)protected SimpleShape<?,?>getShape()java.awt.BasicStrokegetStroke()protected OutlinegetTailDecoration(java.awt.Graphics2D graphics, LineDecoration deco, java.awt.BasicStroke stroke)-
Methods inherited from class org.apache.poi.sl.draw.DrawShape
applyTransform, drawContent, getAnchor, getAnchor, getStroke
-
-
-
-
Constructor Detail
-
DrawSimpleShape
public DrawSimpleShape(SimpleShape<?,?> shape)
-
-
Method Detail
-
draw
public void draw(java.awt.Graphics2D graphics)
Description copied from interface:DrawableDraw this shape into the supplied canvas
-
getFillPaint
protected java.awt.Paint getFillPaint(java.awt.Graphics2D graphics)
-
getLinePaint
protected java.awt.Paint getLinePaint(java.awt.Graphics2D graphics)
-
drawDecoration
protected void drawDecoration(java.awt.Graphics2D graphics, java.awt.Paint line, java.awt.BasicStroke stroke)
-
getTailDecoration
protected Outline getTailDecoration(java.awt.Graphics2D graphics, LineDecoration deco, java.awt.BasicStroke stroke)
-
getHeadDecoration
protected Outline getHeadDecoration(java.awt.Graphics2D graphics, LineDecoration deco, java.awt.BasicStroke stroke)
-
getStroke
public java.awt.BasicStroke getStroke()
-
drawShadow
protected void drawShadow(java.awt.Graphics2D graphics, java.util.Collection<Outline> outlines, java.awt.Paint fill, java.awt.Paint line)
-
computeOutlines
protected java.util.Collection<Outline> computeOutlines(java.awt.Graphics2D graphics)
-
getShape
protected SimpleShape<?,?> getShape()
-
-