|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.TextBox
public final class TextBox
Text container in a shape.
Method Summary | |
---|---|
void |
addParagraph(Paragraph paragraph)
Add new paragraph of a text. |
void |
addParagraphs(java.util.Collection<? extends Paragraph> paragraphsOther)
Add new paragraphs to a text box. |
void |
clearText()
Clear all text in a text box and removes all paragraphs. |
int |
getBottomMargin()
Get bottom margin in a text box. |
int |
getLeftMargin()
Get left margin in a text box. |
java.util.List<Paragraph> |
getParagraphs()
Get list of all paragraphs in a text box. |
int |
getRightMargin()
Get right margin in a text box. |
TextRotationType |
getTextRotationType()
Get text rotation type in a text box. |
int |
getTopMargin()
Get top margin in a text box. |
VerticalAlignmentType |
getVerticalAlignment()
Get vertical text alignment in a text box. |
boolean |
hasText()
Get whether a text box contains any paragraphs. |
boolean |
isFitShapeToText()
Get whether the text box should be resized automatically to text size. |
boolean |
isWrapText()
Get whether a long text should be wrapped in a text box. |
void |
setBottomMargin(int bottomMargin)
Set bottom margin in a text box. |
void |
setFitShapeToText(boolean fitShapeToText)
Get whether the text box should be resized automatically to text size. |
void |
setLeftMargin(int leftMargin)
Set left margin in a text box. |
void |
setRightMargin(int rightMargin)
Set right margin in a text box. |
void |
setTextRotationType(TextRotationType textRotationType)
Set text rotation type in a text box. |
void |
setTopMargin(int topMargin)
Set top margin in a text box. |
void |
setVerticalAlignment(VerticalAlignmentType verticalAlignment)
Set vertical text alignment in a text box. |
void |
setWrapText(boolean wrapText)
Set whether a long text should be wrapped in a text box. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public VerticalAlignmentType getVerticalAlignment()
public void setVerticalAlignment(VerticalAlignmentType verticalAlignment)
verticalAlignment
- new vertical alignment.public void addParagraph(Paragraph paragraph)
paragraph
- new paragraph to add.public java.util.List<Paragraph> getParagraphs()
public boolean isWrapText()
public void setWrapText(boolean wrapText)
wrapText
- true to wrap text in a shape.public boolean hasText()
public TextRotationType getTextRotationType()
public void setTextRotationType(TextRotationType textRotationType)
textRotationType
- new text rotation type.public int getLeftMargin()
public void setLeftMargin(int leftMargin)
leftMargin
- new margin.public int getRightMargin()
public void setRightMargin(int rightMargin)
rightMargin
- new margin.public int getTopMargin()
public void setTopMargin(int topMargin)
topMargin
- new margin.public int getBottomMargin()
public void setBottomMargin(int bottomMargin)
bottomMargin
- new margin.public void clearText()
public void addParagraphs(java.util.Collection<? extends Paragraph> paragraphsOther)
paragraphsOther
- collection with paragraphs to add.public final boolean isFitShapeToText()
public final void setFitShapeToText(boolean fitShapeToText)
fitShapeToText
- true to resize shape.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |