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.
Destroys the state and all associated resources.
Returns true if the given object equals this rectangle.
Returns the unscaled, untranslated bounds.
Returns the x-coordinate of the center point.
Returns the y-coordinate of the center point.
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 the visible source or target terminal cell.
Boolean that specifies if the source or target cell should be returned.
Returns the visible source or target terminal state.
Boolean that specifies if the source or target state should be returned.
Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.
Changes this rectangle to where it overlaps with the given rectangle.
Returns true
if the given cell state is a loop.
CellState that represents a potential loop.
Returns true
if the given state has no stroke, no fill color and no image.
Rotates this rectangle by 90 degree around its center point.
Sets the given cursor on the shape and text shape.
Sets this rectangle to the specified values
Sets the visible source or target terminal state.
CellState that represents the terminal.
Boolean that specifies if the source or target state should be set.
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.