Constructs a new object that represents the current state of the given Cell in the specified view.
GraphView that contains the state.
Cell that this state represents.
the style of the Cell.
Holds the height of the rectangle.
Holds the width of the rectangle.
Holds the x-coordinate of the point. Default is 0.
Holds the y-coordinate of the point. Default is 0.
Point that holds the absolute offset.
Holds an array of
Reference to the Cell that is represented by this state.
Specifies if the state is invalid.
Specifies if the style is invalid.
Caches the length of an edge.
Point that holds the origin for all child cells.
a new empty Point.
Array of numbers that represent the cached length of each segment of the edge.
Holds the Shape that represents the cell graphically.
The style of the Cell.
Caches the distance between the end points for an edge.
Holds the Text that represents the label of the cell.
This may be null
if the cell has no label.
Holds the unscaled height of the state.
Holds the unscaled width of the state.
Reference to the enclosing GraphView.
Caches the visible source terminal state.
Caches the visible target terminal state.
Returns the image URL for the given cell state. This implementation returns the value stored in the CellStateStyle.image property of style.
Returns the indicator color for the given cell state. This implementation returns the value stored in the CellStateStyle.indicatorColor property of style.
Returns the indicator gradient color for the given cell state. This implementation returns the value stored in the CellStateStyle.gradientColor property of style.
Returns the indicator image for the given cell state. This implementation returns the value stored in the CellStateStyle.indicatorImage property of style.
Returns the indicator shape for the given cell state. This implementation returns the value stored in the CellStateStyle.indicatorShape property of style.
Returns the unscaled, untranslated paint bounds.
This is the same as getCellBounds but with a 90-degrees rotation if the Shape.isPaintBoundsInverted returns true
.
Returns the vertical alignment for the given cell state. This implementation returns the value stored in the CellStateStyle.verticalAlign property of style.
Returns true
if the given cell state is a loop.
Sets the first or last point in
Sets the visible source or target terminal state.
Updates the cellBounds and paintBounds.
Static
from
Represents the current state of a cell in a given GraphView.
For edges, the edge label position is stored in absoluteOffset.
The size for oversize labels can be retrieved using the
boundingBox
property of the text field as shown below.