@Beta public abstract class XSLFSimpleShape extends XSLFShape implements SimpleShape<XSLFShape,XSLFTextParagraph>
XSLFShape.ReparseFactory<T extends org.apache.xmlbeans.XmlObject>
Modifier and Type | Method and Description |
---|---|
XSLFHyperlink |
createHyperlink()
Creates a hyperlink and asigns it to this shape.
(创建一个超链接并将其分配给此形状。)
|
Guide |
getAdjustValue(java.lang.String name) |
java.awt.geom.Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape.
(返回此形状的锚点(边界框矩形)。)
|
java.awt.Color |
getFillColor()
Returns the solid color fill.
(返回纯色填充。)
|
FillStyle |
getFillStyle()
fetch shape fill as a java.awt.Paint
(获取形状填充作为 java.awt.Paint)
|
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped
(形状是否水平翻转)
|
boolean |
getFlipVertical()
Whether the shape is vertically flipped
(形状是否垂直翻转)
|
CustomGeometry |
getGeometry() |
XSLFHyperlink |
getHyperlink()
Returns the hyperlink assigned to this shape
(返回分配给此形状的超链接)
|
StrokeStyle.LineCap |
getLineCap() |
java.awt.Color |
getLineColor() |
StrokeStyle.LineCompound |
getLineCompound() |
StrokeStyle.LineDash |
getLineDash() |
LineDecoration |
getLineDecoration() |
LineDecoration.DecorationShape |
getLineHeadDecoration() |
LineDecoration.DecorationSize |
getLineHeadLength() |
LineDecoration.DecorationSize |
getLineHeadWidth() |
protected PaintStyle |
getLinePaint() |
LineDecoration.DecorationShape |
getLineTailDecoration() |
LineDecoration.DecorationSize |
getLineTailLength() |
LineDecoration.DecorationSize |
getLineTailWidth() |
double |
getLineWidth() |
double |
getRotation()
Rotation angle in degrees
(以度为单位的旋转角度)
|
XSLFShadow |
getShadow() |
ShapeType |
getShapeType() |
StrokeStyle |
getStrokeStyle() |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D |
getXfrm(boolean create) |
void |
setAnchor(java.awt.geom.Rectangle2D anchor) |
void |
setFillColor(java.awt.Color color)
Specifies a solid color fill.
(指定纯色填充。)
|
void |
setFlipHorizontal(boolean flip) |
void |
setFlipVertical(boolean flip)
Whether the shape is vertically flipped
(形状是否垂直翻转)
|
void |
setLineCap(StrokeStyle.LineCap cap) |
void |
setLineColor(java.awt.Color color) |
void |
setLineCompound(StrokeStyle.LineCompound compound) |
void |
setLineDash(StrokeStyle.LineDash dash) |
void |
setLineHeadDecoration(LineDecoration.DecorationShape style)
Specifies the line end decoration, such as a triangle or arrowhead.
(指定线端装饰,例如三角形或箭头。)
|
void |
setLineHeadLength(LineDecoration.DecorationSize style)
Specifies the line end width in relation to the line width.
(指定相对于线宽的线端宽度。)
|
void |
setLineHeadWidth(LineDecoration.DecorationSize style)
specifies decoration width of the head of a line.
(指定行首的装饰宽度。)
|
void |
setLineTailDecoration(LineDecoration.DecorationShape style)
Specifies the line end decoration, such as a triangle or arrowhead.
(指定线端装饰,例如三角形或箭头。)
|
void |
setLineTailLength(LineDecoration.DecorationSize style)
Specifies the line end width in relation to the line width.
(指定相对于线宽的线端宽度。)
|
void |
setLineTailWidth(LineDecoration.DecorationSize style)
specifies decorations which can be added to the tail of a line.
(指定可以添加到行尾的装饰。)
|
void |
setLineWidth(double width) |
void |
setRotation(double theta)
Rotate this shape.
(旋转这个形状。)
|
void |
setShapeType(ShapeType type) |
void |
setStrokeStyle(java.lang.Object... styles)
Sets the line attributes.
(设置线属性。)
|
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
getPlaceholder, getPlaceholderDetails, isPlaceholder, setPlaceholder
draw, getParent, getShapeId, getShapeName, getSheet
getParent, getSheet
public void setShapeType(ShapeType type)
setShapeType
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 setShapeType
public ShapeType getShapeType()
getShapeType
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 getShapeType
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D getXfrm(boolean create)
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)
PlaceableShape
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()
PlaceableShape
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()
PlaceableShape
getFlipHorizontal
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getFlipHorizontal
public boolean getFlipVertical()
PlaceableShape
getFlipVertical
in interface
PlaceableShape<XSLFShape,XSLFTextParagraph>
(接口 PlaceableShape 中的 getFlipVertical
public void setLineColor(java.awt.Color color)
color
- the color to paint the shape outline. A
null
value turns off the shape outline.
(color - 绘制形状轮廓的颜色。空值关闭形状轮廓。)
public java.awt.Color getLineColor()
null
if outline is turned off
(形状轮廓的颜色,如果轮廓关闭,则为 null)
protected PaintStyle getLinePaint()
public void setLineWidth(double width)
width
- line width in points.
0
means no line
(width - 以点为单位的线宽。 0 表示没有行)
public double getLineWidth()
0
means no line.
(以点为单位的线宽。 0 表示没有行。)
public void setLineCompound(StrokeStyle.LineCompound compound)
compound
- set the line compound style
(复合 - 设置线条复合样式)
public StrokeStyle.LineCompound getLineCompound()
public void setLineDash(StrokeStyle.LineDash dash)
dash
- a preset line dashing scheme to stroke thr shape outline
(dash - 一个预设的线条划线方案来描边 thr 形状轮廓)
public StrokeStyle.LineDash getLineDash()
public void setLineCap(StrokeStyle.LineCap cap)
cap
- the line end cap style
(cap - 线端盖样式)
public StrokeStyle.LineCap getLineCap()
public void setFillColor(java.awt.Color color)
SimpleShape
setFillColor
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 setFillColor
color
- the solid color fill. The value of
null
unsets the solid fill attribute from the underlying implementation
(color - 纯色填充。 null 的值从底层实现中取消设置实心填充属性)
public java.awt.Color getFillColor()
SimpleShape
getFillColor
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 getFillColor
public XSLFShadow getShadow()
getShadow
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 getShadow
public CustomGeometry getGeometry()
getGeometry
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 getGeometry
public void setLineHeadDecoration(LineDecoration.DecorationShape style)
style
- the line end docoration style
(style - 行尾装饰风格)
public LineDecoration.DecorationShape getLineHeadDecoration()
public void setLineHeadWidth(LineDecoration.DecorationSize style)
style
- the decoration width
(style - 装饰宽度)
public LineDecoration.DecorationSize getLineHeadWidth()
public void setLineHeadLength(LineDecoration.DecorationSize style)
public LineDecoration.DecorationSize getLineHeadLength()
public void setLineTailDecoration(LineDecoration.DecorationShape style)
public LineDecoration.DecorationShape getLineTailDecoration()
public void setLineTailWidth(LineDecoration.DecorationSize style)
public LineDecoration.DecorationSize getLineTailWidth()
public void setLineTailLength(LineDecoration.DecorationSize style)
public LineDecoration.DecorationSize getLineTailLength()
public Guide getAdjustValue(java.lang.String name)
getAdjustValue
in interface
IAdjustableShape
(接口 IAdjustableShape 中的 getAdjustValue)
name
- name of a adjust value, e.g. adj1
(name - 调整值的名称,例如 adj1)
public LineDecoration getLineDecoration()
getLineDecoration
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 getLineDecoration
public FillStyle getFillStyle()
getFillStyle
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 getFillStyle
public StrokeStyle getStrokeStyle()
getStrokeStyle
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 getStrokeStyle
public void setStrokeStyle(java.lang.Object... styles)
SimpleShape
setStrokeStyle
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 setStrokeStyle
styles
- the line attributes
(样式 - 线条属性)
public XSLFHyperlink getHyperlink()
SimpleShape
getHyperlink
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 getHyperlink
null
if not found.
(分配给此形状的超链接,如果未找到,则为 null。)
public XSLFHyperlink createHyperlink()
SimpleShape
createHyperlink
in interface
SimpleShape<XSLFShape,XSLFTextParagraph>
(接口 SimpleShape 中的 createHyperlink
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.