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
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 Constructor Description DrawSimpleShape(SimpleShape<?,?> shape)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<Outline>
computeOutlines(java.awt.Graphics2D graphics)
void
draw(java.awt.Graphics2D graphics)
Draw this shape into the supplied canvasprotected void
drawDecoration(java.awt.Graphics2D graphics, java.awt.Paint line, java.awt.BasicStroke stroke)
protected void
drawShadow(java.awt.Graphics2D graphics, java.util.Collection<Outline> outlines, java.awt.Paint fill, java.awt.Paint line)
protected static CustomGeometry
getCustomGeometry(java.lang.String name)
protected static CustomGeometry
getCustomGeometry(java.lang.String name, java.awt.Graphics2D graphics)
protected Outline
getHeadDecoration(java.awt.Graphics2D graphics, LineDecoration deco, java.awt.BasicStroke stroke)
protected SimpleShape<?,?>
getShape()
java.awt.BasicStroke
getStroke()
protected Outline
getTailDecoration(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:Drawable
Draw this shape into the supplied canvas
-
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)
-
getCustomGeometry
protected static CustomGeometry getCustomGeometry(java.lang.String name)
-
getCustomGeometry
protected static CustomGeometry getCustomGeometry(java.lang.String name, java.awt.Graphics2D graphics)
-
computeOutlines
protected java.util.Collection<Outline> computeOutlines(java.awt.Graphics2D graphics)
-
getShape
protected SimpleShape<?,?> getShape()
-
-