public final class NodeTextBlock extends NodeElement
Constructor and Description |
---|
NodeTextBlock()
Constructs a new
NodeTextBlock with a font size of 11 units. |
Modifier and Type | Method and Description |
---|---|
int |
getFontSize()
Returns the font size of the text.
|
TextAlignmentType |
getTextAlign()
Returns the alignment format in the text block's given space.
|
String |
getTextColor()
Returns the text color in hex.
|
void |
setBindingText(NodeValueRenderer action)
Sets the text content using
NodeValueRenderer . |
void |
setBindingText(String text)
Sets the text content.
|
void |
setFontSize(int fontSize)
Sets the font size for the text.
|
void |
setTextAlign(TextAlignmentType textAlign)
Sets the alignment format in the text block's given space.
|
void |
setTextColor(String textColor)
Sets the text color in hex.
|
getAlignment, getBackgroundColor, getElementType, getHeight, getMargin, getMargin, getName, getWidth, setAlignment, setBackgroundColor, setHeight, setMargin, setName, setWidth
public NodeTextBlock()
NodeTextBlock
with a font size of 11 units.public String getTextColor()
public void setTextColor(String textColor)
textColor
- a color in hex.public void setBindingText(String text)
text
- the content for this text block.public void setBindingText(NodeValueRenderer action)
NodeValueRenderer
.action
- an implementation of NodeValueRenderer.public TextAlignmentType getTextAlign()
public void setTextAlign(TextAlignmentType textAlign)
TextBlock
.textAlign
- an alignment type for text block.public int getFontSize()
public void setFontSize(int fontSize)
fontSize
- the integer for font size.