Class mxCellPath
java.lang.Object
com.mxgraph.model.mxCellPath
Implements a mechanism for temporary cell Ids.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringDefines the separator between the path components. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intCompares the given cell paths and returns -1 if cp1 is smaller, 0 if cp1 is equal and 1 if cp1 is greater than cp2.static StringCreates the cell path for the given cell.static StringgetParentPath(String path) Returns the path for the parent of the cell represented by the given path.static mxICellReturns the cell for the specified cell path using the given root as the root of the path.
-
Field Details
-
PATH_SEPARATOR
Defines the separator between the path components. Default is..
-
-
Constructor Details
-
mxCellPath
public mxCellPath()
-
-
Method Details
-
create
Creates the cell path for the given cell. The cell path is a concatenation of the indices of all cells on the (finite) path to the root, eg. "0.0.0.1".- Parameters:
cell- Cell whose path should be returned.- Returns:
- Returns the string that represents the path.
-
getParentPath
-
resolve
-
compare
-