src/main/java/com/mxgraph/model/mxCellPath.java
public static String create(mxICell cell)
	{
		String result = "";

		if (cell != null)
		{
			mxICell parent = cell.getParent();

			while (parent != null)
			{
				int index = parent.getIndex(cell);
				result = index + mxCellPath.PATH_SEPARATOR + result;

				cell = parent;
				parent = cell.getParent();
			}
		}

		return (result.length() > 1) ? result.substring(0, result.length() - 1)
				: "";
	}
/**
	 * 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".
	 * 
	 * @param cell Cell whose path should be returned.
	 * @return Returns the string that represents the path.
	 */
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.

@param cell Cell whose path should be returned.
@return Returns the string that represents the path.
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 . @param cell Cell whose path should be returned . @return Returns the string that represents the path .
public static String create(mxICell cell)
	{
		String result = "";
		if (cell != null)
		{
			mxICell parent = cell.getParent();
			while (parent != null)
			{
				int index = parent.getIndex(cell);
				result = index + mxCellPath.PATH_SEPARATOR + result;
				cell = parent;
				parent = cell.getParent();
			}
		}
		return (result.length() > 1) ? result.substring(0, result.length() - 1)
				: "";
	}
public static String create ( mxICell cell ) { String result = "" ; if ( cell != null ) { mxICell parent = cell . getParent ( ) ; while ( parent != null ) { int index = parent . getIndex ( cell ) ; result = index + mxCellPath . PATH_SEPARATOR + result ; cell = parent ; parent = cell . getParent ( ) ; } } return ( result . length ( ) > 1 ) ? result . substring ( 0 , result . length ( ) - 1 ) : "" ; }
Creates the cell path for the given cell.
Creates the cell path for the given cell .