mxCellPath

Implements a mechanism for temporary cell Ids.

Summary
mxCellPathImplements a mechanism for temporary cell Ids.
Variables
codecsMaps from constructor names to codecs.
Functions
createCreates the cell path for the given cell.
getParentPathReturns the cell for the specified cell path using the given root as the root of the path.
resolveReturns the cell for the specified cell path using the given root as the root of the path.

Variables

codecs

Maps from constructor names to codecs.

Functions

create

static function create($cell)

Creates the cell path for the given cell.  The cell path is a concatenation of the indices of all ancestors on the (finite) path to the root, eg.  “0.0.0.1”.

Parameters

cellCell whose path should be returned.

getParentPath

static function getParentPath($path)

Returns the cell for the specified cell path using the given root as the root of the path.

Parameters

pathPath whose parent path should be returned.

resolve

static function resolve($root,
$path)

Returns the cell for the specified cell path using the given root as the root of the path.

Parameters

rootRoot cell of the path to be resolved.
pathString that defines the path.
static function create($cell)
Creates the cell path for the given cell.
static function getParentPath($path)
Returns the cell for the specified cell path using the given root as the root of the path.
static function resolve($root,
$path)
Returns the cell for the specified cell path using the given root as the root of the path.
Close