Class mxGraphHierarchyNode

    • Field Detail

      • emptyConnectionMap

        public static java.util.Collection<mxGraphHierarchyEdge> emptyConnectionMap
        Shared empty connection map to return instead of null in applyMap.
      • cell

        public java.lang.Object cell
        The graph cell this object represents.
      • connectsAsTarget

        public java.util.Collection<mxGraphHierarchyEdge> connectsAsTarget
        Collection of hierarchy edges that have this node as a target
      • connectsAsSource

        public java.util.Collection<mxGraphHierarchyEdge> connectsAsSource
        Collection of hierarchy edges that have this node as a source
      • hashCode

        public int[] hashCode
        Assigns a unique hashcode for each node. Used by the model dfs instead of copying HashSets
    • Constructor Detail

      • mxGraphHierarchyNode

        public mxGraphHierarchyNode​(java.lang.Object cell)
        Constructs an internal node to represent the specified real graph cell
        Parameters:
        cell - the real graph cell this node represents
    • Method Detail

      • getRankValue

        public int getRankValue()
        Returns the integer value of the layer that this node resides in
        Returns:
        the integer value of the layer that this node resides in
      • getGeneralPurposeVariable

        public int getGeneralPurposeVariable​(int layer)
        Gets the value of temp for the specified layer
        Specified by:
        getGeneralPurposeVariable in class mxGraphAbstractHierarchyCell
        Parameters:
        layer - the layer relating to a specific entry into temp
        Returns:
        the value for that layer
      • setGeneralPurposeVariable

        public void setGeneralPurposeVariable​(int layer,
                                              int value)
        Set the value of temp for the specified layer
        Specified by:
        setGeneralPurposeVariable in class mxGraphAbstractHierarchyCell
        Parameters:
        layer - the layer relating to a specific entry into temp
        value - the value for that layer