Documentation of 'com.mxgraph.model.mxCellPath' Java class
mxCellPath
com.mxgraph.model

Class mxCellPath



  • public class mxCellPath
    extends java.lang.Object
    Implements a mechanism for temporary cell Ids.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String PATH_SEPARATOR
      Defines the separator between the path components.
    • Constructor Summary

      Constructors 
      Constructor and Description
      mxCellPath() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static int compare(java.lang.String cp1, java.lang.String cp2)
      Compares 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 java.lang.String create(mxICell cell)
      Creates the cell path for the given cell.
      static java.lang.String getParentPath(java.lang.String path)
      Returns the path for the parent of the cell represented by the given path.
      static mxICell resolve(mxICell root, java.lang.String path)
      Returns the cell for the specified cell path using the given root as the root of the path.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PATH_SEPARATOR

        public static java.lang.String PATH_SEPARATOR
        Defines the separator between the path components. Default is ..
    • Constructor Detail

      • mxCellPath

        public mxCellPath()
    • Method Detail

      • create

        public static java.lang.String create(mxICell cell)
        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

        public static java.lang.String getParentPath(java.lang.String path)
        Returns the path for the parent of the cell represented by the given path. Returns null if the given path has no parent.
        Parameters:
        path - Path whose parent path should be returned.
      • resolve

        public static mxICell resolve(mxICell root,
                                      java.lang.String path)
        Returns the cell for the specified cell path using the given root as the root of the path.
        Parameters:
        root - Root cell of the path to be resolved.
        path - String that defines the path.
        Returns:
        Returns the cell that is defined by the path.
      • compare

        public static int compare(java.lang.String cp1,
                                  java.lang.String cp2)
        Compares the given cell paths and returns -1 if cp1 is smaller, 0 if cp1 is equal and 1 if cp1 is greater than cp2.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.