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 points
(anchor - 此形状在绘图画布中的位置。坐标以点表示)
double getRotation()
Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
(以度为单位的旋转角度 正角度是顺时针方向(即,朝向正 y 轴);负角是逆时针的(即,朝向负 y 轴)。)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).
(旋转这个形状。正角度是顺时针方向(即,朝向正 y 轴);负角是逆时针的(即,朝向负 y 轴)。)theta
- the rotation angle in degrees.
(theta - 以度为单位的旋转角度。)
void setFlipHorizontal(boolean flip)
flip
- whether the shape is horizontally flipped
(翻转 - 形状是否水平翻转)
void setFlipVertical(boolean flip)
flip
- whether the shape is vertically flipped
(翻转 - 形状是否垂直翻转)
boolean getFlipHorizontal()
boolean getFlipVertical()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.