public class HSSFTextbox extends HSSFSimpleShape
Modifier and Type | Field and Description |
---|---|
static short |
HORIZONTAL_ALIGNMENT_CENTERED |
static short |
HORIZONTAL_ALIGNMENT_DISTRIBUTED |
static short |
HORIZONTAL_ALIGNMENT_JUSTIFIED |
static short |
HORIZONTAL_ALIGNMENT_LEFT
How to align text horizontally
(如何水平对齐文本)
|
static short |
HORIZONTAL_ALIGNMENT_RIGHT |
static short |
OBJECT_TYPE_TEXT |
static short |
VERTICAL_ALIGNMENT_BOTTOM |
static short |
VERTICAL_ALIGNMENT_CENTER |
static short |
VERTICAL_ALIGNMENT_DISTRIBUTED |
static short |
VERTICAL_ALIGNMENT_JUSTIFY |
static short |
VERTICAL_ALIGNMENT_TOP
How to align text vertically
(如何垂直对齐文本)
|
OBJECT_TYPE_ARC, OBJECT_TYPE_COMBO_BOX, OBJECT_TYPE_COMMENT, OBJECT_TYPE_LINE, OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING, OBJECT_TYPE_OVAL, OBJECT_TYPE_PICTURE, OBJECT_TYPE_RECTANGLE, WRAP_BY_POINTS, WRAP_NONE, WRAP_SQUARE
FILL__FILLCOLOR_DEFAULT, LINESTYLE__COLOR_DEFAULT, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DEFAULT, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, NO_FILL_DEFAULT, NO_FILLHITTEST_FALSE, NO_FILLHITTEST_TRUE
Constructor and Description |
---|
HSSFTextbox(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord) |
HSSFTextbox(HSSFShape parent, HSSFAnchor anchor)
Construct a new textbox with the given parent and anchor.
|
Modifier and Type | Method and Description |
---|---|
protected 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 HSSFShape |
cloneShape() |
protected ObjRecord |
createObjRecord() |
protected EscherContainerRecord |
createSpContainer() |
short |
getHorizontalAlignment()
Gets the horizontal alignment.
(获取水平对齐方式。)
|
int |
getMarginBottom()
Gets the bottom margin within the textbox.
(获取文本框内的下边距。)
|
int |
getMarginLeft() |
int |
getMarginRight() |
int |
getMarginTop() |
short |
getVerticalAlignment()
Gets the vertical alignment.
(获取垂直对齐方式。)
|
void |
setHorizontalAlignment(short align)
Sets the horizontal alignment.
(设置水平对齐方式。)
|
void |
setMarginBottom(int marginBottom)
Sets the bottom margin within the textbox.
(设置文本框内的下边距。)
|
void |
setMarginLeft(int marginLeft)
Sets the left margin within the textbox.
(设置文本框内的左边距。)
|
void |
setMarginRight(int marginRight)
Sets the right margin within the textbox.
(设置文本框内的右边距。)
|
void |
setMarginTop(int marginTop)
Sets the top margin within the textbox.
(设置文本框内的上边距。)
|
void |
setShapeType(int shapeType) |
void |
setVerticalAlignment(short align)
Sets the vertical alignment.
(设置垂直对齐方式。)
|
createTextObjRecord, getShapeId, getShapeType, getString, getTextObjectRecord, getWrapText, setString, setWrapText
countOfAllChildren, getAnchor, getEscherContainer, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getObjRecord, getOptRecord, getParent, getPatriarch, getRotationDegree, getShapeName, isFlipHorizontal, isFlipVertical, isNoFill, setAnchor, setFillColor, setFillColor, setFlipHorizontal, setFlipVertical, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill, setParent, setPatriarch, setPropertyValue, setRotationDegree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnchor, getParent, getShapeName, isNoFill, setFillColor, setLineStyleColor, setNoFill
public static final short OBJECT_TYPE_TEXT
public static final short HORIZONTAL_ALIGNMENT_LEFT
public static final short HORIZONTAL_ALIGNMENT_CENTERED
public static final short HORIZONTAL_ALIGNMENT_RIGHT
public static final short HORIZONTAL_ALIGNMENT_JUSTIFIED
public static final short HORIZONTAL_ALIGNMENT_DISTRIBUTED
public static final short VERTICAL_ALIGNMENT_TOP
public static final short VERTICAL_ALIGNMENT_CENTER
public static final short VERTICAL_ALIGNMENT_BOTTOM
public static final short VERTICAL_ALIGNMENT_JUSTIFY
public static final short VERTICAL_ALIGNMENT_DISTRIBUTED
public HSSFTextbox(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord)
public HSSFTextbox(HSSFShape parent, HSSFAnchor anchor)
parent
-
(家长 -)
anchor
- One of HSSFClientAnchor or HSSFChildAnchor
(anchor - HSSFClientAnchor 或 HSSFChildAnchor 之一)
protected ObjRecord createObjRecord()
createObjRecord
in class
HSSFSimpleShape
protected EscherContainerRecord createSpContainer()
createSpContainer
in class
HSSFSimpleShape
public int getMarginLeft()
public void setMarginLeft(int marginLeft)
public int getMarginRight()
public void setMarginRight(int marginRight)
public int getMarginTop()
public void setMarginTop(int marginTop)
public int getMarginBottom()
public void setMarginBottom(int marginBottom)
public short getHorizontalAlignment()
public void setHorizontalAlignment(short align)
public short getVerticalAlignment()
public void setVerticalAlignment(short align)
public void setShapeType(int shapeType)
setShapeType
in class
HSSFSimpleShape
shapeType
- - shapeType
(形状类型 - - 形状类型)
HSSFShapeTypes
protected HSSFShape cloneShape()
cloneShape
in class
HSSFSimpleShape
protected void afterRemove(HSSFPatriarch patriarch)
HSSFShape
afterRemove
in class
HSSFSimpleShape
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.