Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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>

All Known Implementing Classes:
  ActiveXShape, HSLFAutoShape, HSLFBackground, HSLFConnectorShape, HSLFFreeformShape, HSLFGroupShape, HSLFLine, HSLFPictureShape, HSLFPlaceholder, HSLFShape, HSLFSimpleShape, HSLFTable, HSLFTableCell, HSLFTextBox, HSLFTextShape, MovieShape, OLEShape, Polygon, XSLFAutoShape, XSLFBackground, XSLFConnectorShape, XSLFFreeformShape, XSLFGraphicFrame, XSLFGroupShape, XSLFPictureShape, XSLFShadow, XSLFShape, XSLFSimpleShape, XSLFTable, XSLFTableCell, XSLFTextBox, XSLFTextShape

    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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2017 The Apache Software Foundation or its licensors, as applicable.