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. For edges, this is the absolute coordinates of the label position. For vertices, this is the offset of the label relative to the top, left corner of the vertex.
Holds an array of
Reference to the Cell that is represented by this state.
Specifies if the state is invalid. Default is true.
Specifies if the style is invalid. Default is false.
Caches the length of an edge.
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. Thi smay 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.
Adds the given rectangle to this rectangle.
Returns true if the given object equals this rectangle.
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 vertical alignment for the given cell state. This implementation returns the value stored in the CellStateStyle.verticalAlign property of style.
Changes this rectangle to where it overlaps with the given rectangle.
Destructor: setState
Copies all fields from the given state to this state.
Sets the visible source or target terminal state.
Boolean that specifies if the source or target state should be set.
Static
from
Represents the current state of a cell in a given GraphView.
For edges, the edge label position is stored in.
The size for oversize labels can be retrieved using the boundingBox property of the field as shown below.