public class HSSFTextbox extends HSSFSimpleShape
Modifier and Type | Field and Description |
---|---|
(package private) int |
marginBottom |
(package private) int |
marginLeft |
(package private) int |
marginRight |
(package private) int |
marginTop |
static short |
OBJECT_TYPE_TEXT |
(package private) HSSFRichTextString |
string |
OBJECT_TYPE_COMMENT, OBJECT_TYPE_LINE, OBJECT_TYPE_OVAL, OBJECT_TYPE_PICTURE, OBJECT_TYPE_RECTANGLE, shapeType
anchor, fillColor, lineStyle, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, lineStyleColor, lineWidth, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, noFill, parent
Constructor and Description |
---|
HSSFTextbox(HSSFShape parent,
HSSFAnchor anchor)
Construct a new textbox with the given parent and anchor.
|
Modifier and Type | Method and Description |
---|---|
int |
getMarginBottom()
Gets the bottom margin within the textbox.
|
int |
getMarginLeft() |
int |
getMarginRight() |
int |
getMarginTop() |
HSSFRichTextString |
getString() |
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 |
setString(HSSFRichTextString string) |
getShapeType, setShapeType
countOfAllChildren, getAnchor, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getParent, isNoFill, setAnchor, setFillColor, setFillColor, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill
public static final short OBJECT_TYPE_TEXT
int marginLeft
int marginRight
int marginTop
int marginBottom
HSSFRichTextString string
public HSSFTextbox(HSSFShape parent, HSSFAnchor anchor)
parent
- anchor
- One of HSSFClientAnchor or HSSFChildAnchorpublic HSSFRichTextString getString()
public void setString(HSSFRichTextString string)
string
- Sets the rich text string used by this object.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)
Copyright © 2015 Open Microscopy Environment