public abstract class XSSFShape extends java.lang.Object implements Shape
Modifier and Type | Field and Description |
---|---|
protected XSSFAnchor |
anchor
anchor that is used by this shape
(此形状使用的锚点)
|
protected XSSFDrawing |
drawing
Parent drawing
(父绘图)
|
protected XSSFShapeGroup |
parent
The parent shape, always not-null for shapes in groups
(父形状,对于组中的形状始终不为空)
|
Constructor and Description |
---|
XSSFShape() |
Modifier and Type | Method and Description |
---|---|
XSSFAnchor |
getAnchor() |
XSSFDrawing |
getDrawing()
Return the drawing that owns this shape
(返回拥有此形状的绘图)
|
XSSFShapeGroup |
getParent() |
protected abstract org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties |
getShapeProperties()
Returns xml bean with shape properties.
(返回具有形状属性的 xml bean。)
|
boolean |
isNoFill()
Whether this shape is not filled with a color
(这个形状是否没有填充颜色)
|
void |
setFillColor(int red, int green, int blue)
Sets the color used to fill this shape using the solid fill pattern.
(使用实心填充图案设置用于填充此形状的颜色。)
|
void |
setLineStyle(int lineStyle)
Sets the line style.
(设置线条样式。)
|
void |
setLineStyleColor(int red, int green, int blue)
The color applied to the lines of this shape.
(应用于此形状的线条的颜色。)
|
void |
setLineWidth(double lineWidth)
Specifies the width to be used for the underline stroke.
(指定要用于下划线笔划的宽度。)
|
void |
setNoFill(boolean noFill)
Sets whether this shape is filled or transparent.
(设置此形状是填充的还是透明的。)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getShapeName
protected XSSFDrawing drawing
protected XSSFShapeGroup parent
protected XSSFAnchor anchor
public XSSFDrawing getDrawing()
public XSSFShapeGroup getParent()
public XSSFAnchor getAnchor()
protected abstract org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getShapeProperties()
public boolean isNoFill()
Shape
public void setNoFill(boolean noFill)
Shape
public void setFillColor(int red, int green, int blue)
Shape
setFillColor
in interface
Shape
(界面Shape中的setFillColor)
public void setLineStyleColor(int red, int green, int blue)
Shape
setLineStyleColor
in interface
Shape
(界面Shape中的setLineStyleColor)
public void setLineWidth(double lineWidth)
lineWidth
- width in points
(lineWidth - 以点为单位的宽度)
public void setLineStyle(int lineStyle)
lineStyle
-
(线条样式 -)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.