@Beta public class XSLFGraphicFrame extends XSLFShape implements GraphicalFrame<XSLFShape,XSLFTextParagraph>
XSLFShape.ReparseFactory<T extends org.apache.xmlbeans.XmlObject>
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape.
(返回此形状的锚点(边界框矩形)。)
|
XSLFChart |
getChart() |
XSLFPictureShape |
getFallbackPicture() |
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped
(形状是否水平翻转)
|
boolean |
getFlipVertical()
Whether the shape is vertically flipped
(形状是否垂直翻转)
|
double |
getRotation()
Rotation angle in degrees
(以度为单位的旋转角度)
|
ShapeType |
getShapeType() |
boolean |
hasChart() |
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.
(旋转这个形状。)
|
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent, setPlaceholder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, getParent, getShapeId, getShapeName, getSheet
getParent, getSheet
public ShapeType getShapeType()
public java.awt.geom.Rectangle2D getAnchor()
Shape
getAnchor
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getAnchor
getAnchor
in interface
Shape<XSLFShape,XSLFTextParagraph>
(接口 Shape 中的 getAnchor
public void setAnchor(java.awt.geom.Rectangle2D anchor)
setAnchor
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 setAnchor
anchor
- the position of this shape within the drawing canvas. The coordinates are expressed in points
(anchor - 此形状在绘图画布中的位置。坐标以点表示)
public 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 轴)。)setRotation
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 setRotation
theta
- the rotation angle in degrees.
(theta - 以度为单位的旋转角度。)
public 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 轴)。)getRotation
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getRotation
public void setFlipHorizontal(boolean flip)
setFlipHorizontal
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 setFlipHorizontal
flip
- whether the shape is horizontally flipped
(翻转 - 形状是否水平翻转)
public void setFlipVertical(boolean flip)
PlaceableShape
setFlipVertical
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 setFlipVertical
flip
- whether the shape is vertically flipped
(翻转 - 形状是否垂直翻转)
public boolean getFlipHorizontal()
getFlipHorizontal
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getFlipHorizontal
public boolean getFlipVertical()
PlaceableShape
getFlipVertical
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getFlipVertical
public boolean hasChart()
public XSLFChart getChart()
public XSLFPictureShape getFallbackPicture()
getFallbackPicture
in interface
GraphicalFrame<XSLFShape,XSLFTextParagraph>
(接口 GraphicalFrame 中的 getFallbackPicture
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.