public interface PlaceableShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getAnchor() |
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped
|
boolean |
getFlipVertical()
Whether the shape is vertically flipped
|
ShapeContainer<S,P> |
getParent() |
double |
getRotation()
Rotation angle in degrees
|
Sheet<S,P> |
getSheet() |
void |
setAnchor(java.awt.geom.Rectangle2D anchor) |
void |
setFlipHorizontal(boolean flip) |
void |
setFlipVertical(boolean flip)
Whether the shape is vertically flipped
|
void |
setRotation(double theta)
Rotate this shape.
|
ShapeContainer<S,P> getParent()
java.awt.geom.Rectangle2D getAnchor()
void setAnchor(java.awt.geom.Rectangle2D anchor)
anchor
- the position of this shape within the drawing canvas.
The coordinates are expressed in pointsdouble getRotation()
Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
void setRotation(double theta)
Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
theta
- the rotation angle in degrees.void setFlipHorizontal(boolean flip)
flip
- whether the shape is horizontally flippedvoid setFlipVertical(boolean flip)
flip
- whether the shape is vertically flippedboolean getFlipHorizontal()
boolean getFlipVertical()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.