Represents the current state of a cell in a given mxGraphView.
mxCellState | Represents the current state of a cell in a given mxGraphView. |
Variables | |
view | Reference to the enclosing mxGraphView. |
cell | Reference to the mxCell that is represented by this state. |
style | Contains an array of key, value pairs that represent the style of the cell. |
invalid | Specifies if the state is invalid. |
origin | mxPoint that holds the origin for all child cells. |
absolutePoints | Holds an array of mxPoints that represent the absolute points of an edge. |
absoluteOffset | mxPoint that holds the absolute offset. |
terminalDistance | Caches the distance between the end points for an edge. |
length | Caches the length of an edge. |
segments | Array of numbers that represent the cached length of each segment of the edge. |
labelBounds | Holds the rectangle which contains the label. |
boundingBox | Holds the largest rectangle which contains all rendering for this cell. |
Functions | |
mxCellState | Constructs a new object that represents the current state of the given cell in the specified view. |
getPerimeterBounds | Returns the mxRectangle that should be used as the perimeter of the cell. |
copy | Returns a copy of this state where all members are deeply cloned except the view and cell references, which are copied with no cloning to the new instance. |
var $view
Reference to the enclosing mxGraphView.
var $cell
Reference to the mxCell that is represented by this state.
var $absolutePoints
Holds an array of mxPoints that represent the absolute points of an edge.
var $absoluteOffset
mxPoint 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.
function mxCellState( $view = null, $cell = null, $style = null )
Constructs a new object that represents the current state of the given cell in the specified view.
view | mxGraphView that contains the state. |
cell | mxCell that this state represents. |
style | Array of key, value pairs that constitute the style. |
function getPerimeterBounds( $border = 0 )
Returns the mxRectangle that should be used as the perimeter of the cell.
Reference to the enclosing mxGraphView.
var $view
Reference to the mxCell that is represented by this state.
var $cell
Contains an array of key, value pairs that represent the style of the cell.
var $style
Specifies if the state is invalid.
var $invalid
mxPoint that holds the origin for all child cells.
var $origin
Holds an array of mxPoints that represent the absolute points of an edge.
var $absolutePoints
mxPoint that holds the absolute offset.
var $absoluteOffset
Caches the distance between the end points for an edge.
var $terminalDistance
Caches the length of an edge.
var $length
Array of numbers that represent the cached length of each segment of the edge.
var $segments
Holds the rectangle which contains the label.
var $labelBounds
Holds the largest rectangle which contains all rendering for this cell.
var $boundingBox
Constructs a new object that represents the current state of the given cell in the specified view.
function mxCellState( $view = null, $cell = null, $style = null )
Returns the mxRectangle that should be used as the perimeter of the cell.
function getPerimeterBounds( $border = 0 )
Returns a copy of this state where all members are deeply cloned except the view and cell references, which are copied with no cloning to the new instance.
function copy()