public abstract class HSSFShape extends java.lang.Object implements Shape
Modifier and Type | Field and Description |
---|---|
static int |
FILL__FILLCOLOR_DEFAULT |
static int |
LINESTYLE__COLOR_DEFAULT |
static int |
LINESTYLE_DASHDOTDOTSYS |
static int |
LINESTYLE_DASHDOTGEL |
static int |
LINESTYLE_DASHDOTSYS |
static int |
LINESTYLE_DASHGEL |
static int |
LINESTYLE_DASHSYS |
static int |
LINESTYLE_DEFAULT |
static int |
LINESTYLE_DOTGEL |
static int |
LINESTYLE_DOTSYS |
static int |
LINESTYLE_LONGDASHDOTDOTGEL |
static int |
LINESTYLE_LONGDASHDOTGEL |
static int |
LINESTYLE_LONGDASHGEL |
static int |
LINESTYLE_NONE |
static int |
LINESTYLE_SOLID |
static int |
LINEWIDTH_DEFAULT |
static int |
LINEWIDTH_ONE_PT |
static boolean |
NO_FILL_DEFAULT |
static int |
NO_FILLHITTEST_FALSE |
static int |
NO_FILLHITTEST_TRUE |
Constructor and Description |
---|
HSSFShape(EscherContainerRecord spContainer, ObjRecord objRecord)
creates shapes from existing file
|
HSSFShape(HSSFShape parent, HSSFAnchor anchor)
Create a new shape with the specified parent and anchor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
afterRemove(HSSFPatriarch patriarch)
remove escher container from the patriarch.escherAggregate remove obj, textObj and note records if it's necessary in case of ShapeGroup remove all contained shapes
(从 patriarch.escherAggregate 中删除 escher 容器 删除 obj、textObj 和注释记录(如果有必要)在 ShapeGroup 的情况下删除所有包含的形状)
|
protected abstract HSSFShape |
cloneShape() |
int |
countOfAllChildren()
Count of all children and their children's children.
(所有孩子及其孩子的孩子的计数。)
|
protected abstract ObjRecord |
createObjRecord() |
protected abstract EscherContainerRecord |
createSpContainer() |
HSSFAnchor |
getAnchor() |
protected EscherContainerRecord |
getEscherContainer() |
int |
getFillColor()
The color used to fill this shape.
(用于填充此形状的颜色。)
|
int |
getLineStyle() |
int |
getLineStyleColor()
The color applied to the lines of this shape.
(应用于此形状的线条的颜色。)
|
int |
getLineWidth() |
protected ObjRecord |
getObjRecord() |
EscherOptRecord |
getOptRecord()
Return the low-level EscherOptRecord to read/modify not yet wrapped escher properties
(返回低级 EscherOptRecord 以读取/修改尚未包装的 escher 属性)
|
HSSFShape |
getParent() |
HSSFPatriarch |
getPatriarch() |
int |
getRotationDegree() |
java.lang.String |
getShapeName() |
boolean |
isFlipHorizontal() |
boolean |
isFlipVertical() |
boolean |
isNoFill()
Whether this shape is not filled with a color
(这个形状是否没有填充颜色)
|
void |
setAnchor(HSSFAnchor anchor)
Sets a particular anchor.
(设置一个特定的锚。)
|
void |
setFillColor(int fillColor)
The color used to fill this shape.
(用于填充此形状的颜色。)
|
void |
setFillColor(int red, int green, int blue)
Sets the color used to fill this shape using the solid fill pattern.
(使用实心填充图案设置用于填充此形状的颜色。)
|
void |
setFlipHorizontal(boolean value) |
void |
setFlipVertical(boolean value) |
void |
setLineStyle(int lineStyle)
Sets the line style.
(设置线条样式。)
|
void |
setLineStyleColor(int lineStyleColor)
The color applied to the lines of this shape.
(应用于此形状的线条的颜色。)
|
void |
setLineStyleColor(int red, int green, int blue)
The color applied to the lines of this shape.
(应用于此形状的线条的颜色。)
|
void |
setLineWidth(int lineWidth)
Sets the width of the line.
(设置线条的宽度。)
|
void |
setNoFill(boolean noFill)
Sets whether this shape is filled or transparent.
(设置此形状是填充的还是透明的。)
|
protected void |
setParent(HSSFShape parent) |
protected void |
setPatriarch(HSSFPatriarch _patriarch) |
protected void |
setPropertyValue(EscherProperty property) |
void |
setRotationDegree(short value)
specifies the rotation, in degrees, that is applied to a shape.
(指定应用于形状的旋转(以度为单位)。)
|
public static final int LINEWIDTH_ONE_PT
public static final int LINEWIDTH_DEFAULT
public static final int LINESTYLE__COLOR_DEFAULT
public static final int FILL__FILLCOLOR_DEFAULT
public static final boolean NO_FILL_DEFAULT
public static final int LINESTYLE_SOLID
public static final int LINESTYLE_DASHSYS
public static final int LINESTYLE_DOTSYS
public static final int LINESTYLE_DASHDOTSYS
public static final int LINESTYLE_DASHDOTDOTSYS
public static final int LINESTYLE_DOTGEL
public static final int LINESTYLE_DASHGEL
public static final int LINESTYLE_LONGDASHGEL
public static final int LINESTYLE_DASHDOTGEL
public static final int LINESTYLE_LONGDASHDOTGEL
public static final int LINESTYLE_LONGDASHDOTDOTGEL
public static final int LINESTYLE_NONE
public static final int LINESTYLE_DEFAULT
public static final int NO_FILLHITTEST_TRUE
public static final int NO_FILLHITTEST_FALSE
public HSSFShape(EscherContainerRecord spContainer, ObjRecord objRecord)
spContainer
-
(spContainer -)
objRecord
-
(对象记录 -)
public HSSFShape(HSSFShape parent, HSSFAnchor anchor)
protected abstract EscherContainerRecord createSpContainer()
protected abstract ObjRecord createObjRecord()
protected abstract void afterRemove(HSSFPatriarch patriarch)
patriarch
-
(族长——)
protected EscherContainerRecord getEscherContainer()
protected ObjRecord getObjRecord()
public EscherOptRecord getOptRecord()
public HSSFShape getParent()
public HSSFAnchor getAnchor()
public void setAnchor(HSSFAnchor anchor)
anchor
- the anchor to use.
(anchor - 要使用的锚。)
java.lang.IllegalArgumentException
- when the wrong anchor is used for this particular shape.
(java.lang.IllegalArgumentException - 当错误的锚用于此特定形状时。)
HSSFChildAnchor
,
HSSFClientAnchor
public int getLineStyleColor()
public void setLineStyleColor(int lineStyleColor)
public void setLineStyleColor(int red, int green, int blue)
Shape
setLineStyleColor
in interface
Shape
(界面Shape中的setLineStyleColor)
public int getFillColor()
public void setFillColor(int fillColor)
public void setFillColor(int red, int green, int blue)
Shape
setFillColor
in interface
Shape
(界面Shape中的setFillColor)
public int getLineWidth()
public void setLineWidth(int lineWidth)
lineWidth
- width in EMU's. 12700EMU's = 1 pt
(lineWidth - EMU 的宽度。 12700 动车组 = 1 分)
LINEWIDTH_ONE_PT
public int getLineStyle()
public void setLineStyle(int lineStyle)
lineStyle
- One of the constants in LINESTYLE_*
(lineStyle - LINESTYLE_* 中的常量之一)
public boolean isNoFill()
Shape
public void setNoFill(boolean noFill)
Shape
protected void setPropertyValue(EscherProperty property)
public void setFlipVertical(boolean value)
value
- specifies whether this shape is vertically flipped.
(value - 指定此形状是否垂直翻转。)
public void setFlipHorizontal(boolean value)
value
- specifies whether this shape is horizontally flipped.
(value - 指定此形状是否水平翻转。)
public boolean isFlipVertical()
public boolean isFlipHorizontal()
public int getRotationDegree()
public void setRotationDegree(short value)
value
-
(价值 -)
public int countOfAllChildren()
protected abstract HSSFShape cloneShape()
protected void setPatriarch(HSSFPatriarch _patriarch)
public HSSFPatriarch getPatriarch()
protected void setParent(HSSFShape parent)
public java.lang.String getShapeName()
getShapeName
in interface
Shape
(接口 Shape 中的 getShapeName)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.