|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindfusion.diagramming.TextFormat
public class TextFormat
Specifies the format and alignment of text within a diagram item.
A TextFormat
object can be assigned to boxes via their
ShapeNode.setTextFormat(com.mindfusion.diagramming.TextFormat)
method. Tables provide a TableNode.setCaptionFormat(com.mindfusion.diagramming.TextFormat)
method and their cells provide a Cell.setTextFormat(com.mindfusion.diagramming.TextFormat)
method
to let you set the format and alignment of text within a table.
Constructor Summary | |
---|---|
TextFormat(int horizontalAlign,
int verticalAlign)
Initializes a new TextFormat instance. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a copy of this TextFormat. |
boolean |
equals(TextFormat other)
|
int |
getHorizontalAlign()
Gets the horizontal text alignment. |
boolean |
getNoWrap()
Gets a value indicating whether automatic text wrapping is disabled. |
boolean |
getRightToLeft()
|
int |
getVerticalAlign()
Gets the vertical text alignment. |
boolean |
getWrapAtCharacter()
Gets a value indicating whether text can be wrapped to a new line at an arbitrary character, or only after a whole word. |
void |
setHorizontalAlign(int value)
Sets the horizontal text alignment. |
void |
setNoWrap(boolean wrap)
Enables or disables automatic text wrapping. |
void |
setRightToLeft(boolean value)
|
void |
setVerticalAlign(int value)
Sets the vertical text alignment. |
void |
setWrapAtCharacter(boolean value)
Sets a value indicating whether text can be wrapped to a new line at an arbitrary character, or only after a whole word. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextFormat(int horizontalAlign, int verticalAlign)
horizontalAlign
- One of the Align
constants.verticalAlign
- One of the Align
constants.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
TextFormat
object.public void setHorizontalAlign(int value)
value
- One of the Align
constants.public int getHorizontalAlign()
Align
constants.public void setVerticalAlign(int value)
value
- One of the Align
constants.public int getVerticalAlign()
Align
constants.public void setNoWrap(boolean wrap)
wrap
- true to disable text wrapping, otherwise false.public boolean getNoWrap()
public boolean getWrapAtCharacter()
public void setWrapAtCharacter(boolean value)
value
- true if text can be wrapped at an arbitrary character, otherwise false.public boolean equals(TextFormat other)
public void setRightToLeft(boolean value)
public boolean getRightToLeft()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |