org.apache.poi.sl.draw
Class DrawSimpleShape

java.lang.Object
  extended by org.apache.poi.sl.draw.DrawShape
      extended by 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 class org.apache.poi.sl.draw.DrawShape
shape
 
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
DrawSimpleShape(SimpleShape<?,?> shape)
           
 
Method Summary
protected  java.util.Collection<Outline> computeOutlines(java.awt.Graphics2D graphics)
           
 void draw(java.awt.Graphics2D graphics)
          Draw this shape into the supplied canvas
protected  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, isHSLF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Specified by:
draw in interface Drawable
Overrides:
draw in class DrawShape
Parameters:
graphics - the graphics to draw into

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()
Overrides:
getShape in class DrawShape