org.apache.poi.sl.usermodel
Interface Shape<S extends Shape<S,P>,P extends TextParagraph<S,P,?>>

All Known Subinterfaces:
AutoShape<S,P>, Background<S,P>, ConnectorShape<S,P>, FreeformShape<S,P>, GraphicalFrame<S,P>, GroupShape<S,P>, Line<S,P>, PictureShape<S,P>, SimpleShape<S,P>, TableCell<S,P>, TableShape<S,P>, TextBox<S,P>, TextShape<S,P>

public interface Shape<S extends Shape<S,P>,P extends TextParagraph<S,P,?>>


Method Summary
 void draw(java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D bounds)
          Convenience method to draw a single shape
 java.awt.geom.Rectangle2D getAnchor()
          Returns the anchor (the bounding box rectangle) of this shape.
 ShapeContainer<S,P> getParent()
           
 Sheet<S,P> getSheet()
           
 

Method Detail

getParent

ShapeContainer<S,P> getParent()

getSheet

Sheet<S,P> getSheet()
Returns:
the sheet this shape belongs to

getAnchor

java.awt.geom.Rectangle2D getAnchor()
Returns the anchor (the bounding box rectangle) of this shape. All coordinates are expressed in points (72 dpi).

Returns:
the anchor of this shape

draw

void draw(java.awt.Graphics2D graphics,
          java.awt.geom.Rectangle2D bounds)
Convenience method to draw a single shape

Parameters:
graphics - the graphics context
bounds - the rectangle to fit the shape to. if null, the bounds of the shape are used.