TextElement is used to display text/annotations
Gets the size that the element will be rendered
Gets/Sets the boundary of the element
sets the constraints for the text element
number
Set the corner of the element
Gets/Sets the corners of the rectangular bounds
string
Defines the description of the diagram element
Gets the minimum size that is required by the element
string
Sets/Gets the mirror image of diagram element in both horizontal and vertical directions
number
Sets/Gets the height of the element
string
Sets/Gets how the element has to be horizontally arranged with respect to its immediate parent
string
Sets the unique id of the element
boolean
check whether the element is rect or not
boolean
Gets/Set the boolean value for the element
number
Sets/Gets the maximum height of the element
number
Sets/Gets the maximum width of the element
number
Sets/Gets the minimum height of the element
number
Sets/Gets the minimum width of the element
number
Sets/Gets the x-coordinate of the element
number
Sets/Gets the y-coordinate of the element
string
Gets the parent id for the element
number
Gets the rotate angle that is set to the immediate parent of the element
string
Sets whether the element has to be aligned with respect to a point/with respect to its immediate parent
number
Sets/Gets the rotate angle of the element
Defines the appearance of the shadow of the element
boolean
Defines whether the element has to be measured or not
Sets whether the element has to be transformed based on its parent or not
string
Sets/Gets how the element has to be vertically arranged with respect to its immediate parent
boolean
Sets or gets whether the content of the element to be visible
number
Sets/Gets the width of the element
SubTextElement[]
sets the content for the text element
string
gets the content for the text element
TextBounds
gets the wrapBounds for the text
Arranges the text element
Parameter | Type | Description |
---|---|---|
desiredSize | Size |
Returns Size
Gets the position of the element with respect to its parent
Parameter | Type | Description |
---|---|---|
size | Size |
Returns PointModel
Measures the minimum size that is required for the text element
Parameter | Type | Description |
---|---|---|
availableSize | Size |
Returns Size
Sets the offset of the element with respect to its parent
Returns void
Updates the bounds of the element
Returns void