Variable: absolutePoints
Holds an array of
Variable: cell
Reference to the
Variable: height
Holds the height of the rectangle. Default is 0.
Variable: invalid
Specifies if the state is invalid. Default is true.
Variable: length
Caches the length of an edge.
Variable: origin
Variable: segments
Array of numbers that represent the cached length of each segment of the edge.
Variable: shape
Holds the
Variable: style
Contains an array of key, value pairs that represent the style of the cell.
Variable: terminalDistance
Caches the distance between the end points for an edge.
Variable: text
Holds the
Variable: unscaledWidth
Holds the unscaled width of the state.
Variable: view
Reference to the enclosing
Variable: visibleSourceState
Caches the visible source terminal state.
Variable: visibleTargetState
Caches the visible target terminal state.
Variable: width
Holds the width of the rectangle. Default is 0.
Variable: x
Holds the x-coordinate of the point. Default is 0.
Variable: y
Holds the y-coordinate of the point. Default is 0.
Function: add
Adds the given rectangle to this rectangle.
Function: clone
Returns a clone of this
Destructor: destroy
Destroys the state and all associated resources.
Function: equals
Returns true if the given object equals this rectangle.
Function: fromRectangle
Returns a new
Function: getCellBounds
Returns the unscaled, untranslated bounds.
Function: getCenterX
Returns the x-coordinate of the center point.
Function: getCenterY
Returns the y-coordinate of the center point.
Function: getPaintBounds
Returns the unscaled, untranslated paint bounds. This is the same as
Function: getPerimeterBounds
Returns the
Parameters:
border - Optional border to be added around the perimeter bounds.
bounds - Optional
Function: getPoint
Returns the top, left corner as a new
Function: getVisibleTerminal
Returns the visible source or target terminal cell.
Parameters:
source - Boolean that specifies if the source or target cell should be returned.
Function: getVisibleTerminalState
Returns the visible source or target terminal state.
Parameters:
source - Boolean that specifies if the source or target state should be returned.
Function: grow
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.
Function: intersect
Changes this rectangle to where it overlaps with the given rectangle.
Function: rotate90
Rotates this rectangle by 90 degree around its center point.
Function: setAbsoluteTerminalPoint
Sets the first or last point in
Parameters:
point -
Function: setCursor
Sets the given cursor on the shape and text shape.
Function: setRect
Sets this rectangle to the specified values
Destructor: setState
Copies all fields from the given state to this state.
Function: setVisibleTerminalState
Sets the visible source or target terminal state.
Parameters:
terminalState -
Function: updateCachedBounds
Updates the cellBounds and paintBounds.
Generated using TypeDoc
Variable: absoluteOffset