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 Collection<Outline>
computeOutlines(Graphics2D graphics)
void
draw(Graphics2D graphics)
Draw this shape into the supplied canvasprotected void
drawDecoration(Graphics2D graphics, Paint line, BasicStroke stroke)
protected void
drawShadow(Graphics2D graphics, Collection<Outline> outlines, Paint fill, Paint line)
protected Paint
getFillPaint(Graphics2D graphics)
protected Outline
getHeadDecoration(Graphics2D graphics, LineDecoration deco, BasicStroke stroke)
protected Paint
getLinePaint(Graphics2D graphics)
protected SimpleShape<?,?>
getShape()
BasicStroke
getStroke()
protected Outline
getTailDecoration(Graphics2D graphics, LineDecoration deco, 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(Graphics2D graphics)
Description copied from interface:Drawable
Draw this shape into the supplied canvas
-
getFillPaint
protected Paint getFillPaint(Graphics2D graphics)
-
getLinePaint
protected Paint getLinePaint(Graphics2D graphics)
-
drawDecoration
protected void drawDecoration(Graphics2D graphics, Paint line, BasicStroke stroke)
-
getTailDecoration
protected Outline getTailDecoration(Graphics2D graphics, LineDecoration deco, BasicStroke stroke)
-
getHeadDecoration
protected Outline getHeadDecoration(Graphics2D graphics, LineDecoration deco, BasicStroke stroke)
-
getStroke
public BasicStroke getStroke()
-
drawShadow
protected void drawShadow(Graphics2D graphics, Collection<Outline> outlines, Paint fill, Paint line)
-
computeOutlines
protected Collection<Outline> computeOutlines(Graphics2D graphics)
-
getShape
protected SimpleShape<?,?> getShape()
-
-