Class VPool

  • All Implemented Interfaces:
    com.mxgraph.model.mxICell, java.io.Serializable, java.lang.Cloneable

    public class VPool
    extends VNamedNode
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.Comparator<java.lang.Object> LANE_COMPARATOR
      Comparator ensuring correct y-ordering of lanes.
      protected com.mxgraph.model.mxGeometry previousgeometry
      Previous geometry since the last set.
      • Fields inherited from class com.mxgraph.model.mxCell

        children, collapsed, connectable, edge, edges, geometry, id, parent, source, style, target, value, vertex, visible
    • Constructor Summary

      Constructors 
      Constructor Description
      VPool​(com.mxgraph.view.mxGraph graph)
      Creates a new pool.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.mxgraph.model.mxGeometry getPreviousGeometry()
      Returns the previous geometry.
      boolean hasLanes()
      Tests if a pool contains lanes.
      com.mxgraph.model.mxICell insert​(com.mxgraph.model.mxICell child)
      Override to ensure correct y-ordering of lanes.
      com.mxgraph.model.mxICell insert​(com.mxgraph.model.mxICell child, int index)
      Override to ensure correct y-ordering of lanes.
      void setGeometry​(com.mxgraph.model.mxGeometry geometry)
      Sets a new geometry, preserving the previous.
      • Methods inherited from class com.mxgraph.model.mxCell

        clone, cloneValue, getAttribute, getAttribute, getChildAt, getChildCount, getEdgeAt, getEdgeCount, getEdgeIndex, getGeometry, getId, getIndex, getParent, getSource, getStyle, getTarget, getTerminal, insertEdge, isCollapsed, isConnectable, isEdge, isVertex, isVisible, remove, remove, removeEdge, removeFromParent, removeFromTerminal, setAttribute, setCollapsed, setConnectable, setEdge, setId, setParent, setSource, setStyle, setTarget, setTerminal, setVertex, setVisible
      • Methods inherited from class java.lang.Object

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

      • LANE_COMPARATOR

        protected static final java.util.Comparator<java.lang.Object> LANE_COMPARATOR
        Comparator ensuring correct y-ordering of lanes.
      • previousgeometry

        protected com.mxgraph.model.mxGeometry previousgeometry
        Previous geometry since the last set.
    • Constructor Detail

      • VPool

        public VPool​(com.mxgraph.view.mxGraph graph)
        Creates a new pool.
        Parameters:
        graph - The graph where this element is used.
    • Method Detail

      • setGeometry

        public void setGeometry​(com.mxgraph.model.mxGeometry geometry)
        Sets a new geometry, preserving the previous.
        Specified by:
        setGeometry in interface com.mxgraph.model.mxICell
        Overrides:
        setGeometry in class com.mxgraph.model.mxCell
      • getPreviousGeometry

        public com.mxgraph.model.mxGeometry getPreviousGeometry()
        Returns the previous geometry.
        Returns:
        The previous geometry.
      • hasLanes

        public boolean hasLanes()
        Tests if a pool contains lanes.
        Returns:
        True, if the pool contains lanes.
      • insert

        public com.mxgraph.model.mxICell insert​(com.mxgraph.model.mxICell child)
        Override to ensure correct y-ordering of lanes.
        Specified by:
        insert in interface com.mxgraph.model.mxICell
        Overrides:
        insert in class com.mxgraph.model.mxCell
      • insert

        public com.mxgraph.model.mxICell insert​(com.mxgraph.model.mxICell child,
                                                int index)
        Override to ensure correct y-ordering of lanes.
        Specified by:
        insert in interface com.mxgraph.model.mxICell
        Overrides:
        insert in class com.mxgraph.model.mxCell