|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlaceableShape<S extends Shape<S,P>,P extends TextParagraph<S,P,?>>
Method Summary | |
---|---|
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. |
Method Detail |
---|
ShapeContainer<S,P> getParent()
Sheet<S,P> getSheet()
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |