Top Methods
org.apache.poi.sl.usermodel

public Interface PlaceableShape<S extends Shape<S, P>, P extends TextParagraph<S, P, ? extends TextRun>>

Known Direct Subinterfaces
org.apache.poi.sl.usermodel.SimpleShape, org.apache.poi.sl.usermodel.TableShape, org.apache.poi.sl.usermodel.GraphicalFrame, org.apache.poi.sl.usermodel.GroupShape, org.apache.poi.sl.usermodel.ObjectShape
Imports
java.awt.geom.Rectangle2D

Method Summary

Modifier and TypeMethod and Description
public Rectangle2D

Returns:

the position of this shape within the drawing canvas. The coordinates are expressed in points
getAnchor
()

public boolean

Returns:

whether the shape is horizontally flipped
getFlipHorizontal
()

Whether the shape is horizontally flipped

public boolean

Returns:

whether the shape is vertically flipped
getFlipVertical
()

Whether the shape is vertically flipped

public ShapeContainer<S, P>
public double

Returns:

rotation angle in degrees
getRotation
()

Rotation angle in degrees

Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).

public Sheet<S, P>

Returns:

the sheet this shape belongs to
getSheet
()

public void
setAnchor(Rectangle2D
the position of this shape within the drawing canvas. The coordinates are expressed in points
anchor
)

public void
setFlipHorizontal(boolean
whether the shape is horizontally flipped
flip
)

public void
setFlipVertical(boolean
whether the shape is vertically flipped
flip
)

Whether the shape is vertically flipped

public void
setRotation(double
the rotation angle in degrees.
theta
)

Rotate this shape.

Method Detail

getAnchorback to summary
public Rectangle2D getAnchor()
Returns:Rectangle2D

the position of this shape within the drawing canvas. The coordinates are expressed in points

getFlipHorizontalback to summary
public boolean getFlipHorizontal()

Whether the shape is horizontally flipped

Returns:boolean

whether the shape is horizontally flipped

getFlipVerticalback to summary
public boolean getFlipVertical()

Whether the shape is vertically flipped

Returns:boolean

whether the shape is vertically flipped

getParentback to summary
public ShapeContainer<S, P> getParent()
getRotationback to summary
public double getRotation()

Rotation angle in degrees

Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).

Returns:double

rotation angle in degrees

getSheetback to summary
public Sheet<S, P> getSheet()
Returns:Sheet<S, P>

the sheet this shape belongs to

setAnchorback to summary
public void setAnchor(Rectangle2D anchor)
Parameters
anchor:Rectangle2D

the position of this shape within the drawing canvas. The coordinates are expressed in points

setFlipHorizontalback to summary
public void setFlipHorizontal(boolean flip)
Parameters
flip:boolean

whether the shape is horizontally flipped

setFlipVerticalback to summary
public void setFlipVertical(boolean flip)

Whether the shape is vertically flipped

Parameters
flip:boolean

whether the shape is vertically flipped

setRotationback to summary
public 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:double

the rotation angle in degrees.