Package org.apache.poi.sl.usermodel
Interface PlaceableShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
-
- All Known Subinterfaces:
AutoShape<S,P>,ConnectorShape<S,P>,FreeformShape<S,P>,GraphicalFrame<S,P>,GroupShape<S,P>,Line<S,P>,ObjectShape<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,HSLFConnectorShape,HSLFFreeformShape,HSLFGroupShape,HSLFLine,HSLFObjectShape,HSLFPictureShape,HSLFPlaceholder,HSLFSimpleShape,HSLFTable,HSLFTableCell,HSLFTextBox,HSLFTextShape,MovieShape,Polygon,XSLFAutoShape,XSLFBackground,XSLFConnectorShape,XSLFFreeformShape,XSLFGraphicFrame,XSLFGroupShape,XSLFObjectShape,XSLFPictureShape,XSLFSimpleShape,XSLFTable,XSLFTableCell,XSLFTextBox,XSLFTextShape
public interface PlaceableShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.geom.Rectangle2DgetAnchor()booleangetFlipHorizontal()Whether the shape is horizontally flippedbooleangetFlipVertical()Whether the shape is vertically flippedShapeContainer<S,P>getParent()doublegetRotation()Rotation angle in degreesSheet<S,P>getSheet()voidsetAnchor(java.awt.geom.Rectangle2D anchor)voidsetFlipHorizontal(boolean flip)voidsetFlipVertical(boolean flip)Whether the shape is vertically flippedvoidsetRotation(double theta)Rotate this shape.
-
-
-
Method Detail
-
getParent
ShapeContainer<S,P> getParent()
-
getAnchor
java.awt.geom.Rectangle2D getAnchor()
- Returns:
- the position of this shape within the drawing canvas. The coordinates are expressed in points
-
setAnchor
void setAnchor(java.awt.geom.Rectangle2D anchor)
- Parameters:
anchor- the position of this shape within the drawing canvas. The coordinates are expressed in points
-
getRotation
double getRotation()
Rotation angle in degreesPositive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
- Returns:
- rotation angle in degrees
-
setRotation
void setRotation(double theta)
Rotate this shape.Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
- Parameters:
theta- the rotation angle in degrees.
-
setFlipHorizontal
void setFlipHorizontal(boolean flip)
- Parameters:
flip- whether the shape is horizontally flipped
-
setFlipVertical
void setFlipVertical(boolean flip)
Whether the shape is vertically flipped- Parameters:
flip- whether the shape is vertically flipped
-
getFlipHorizontal
boolean getFlipHorizontal()
Whether the shape is horizontally flipped- Returns:
- whether the shape is horizontally flipped
-
getFlipVertical
boolean getFlipVertical()
Whether the shape is vertically flipped- Returns:
- whether the shape is vertically flipped
-
-