Class GraphEditor.CustomGraph

  • Enclosing class:
    GraphEditor

    public static class GraphEditor.CustomGraph
    extends mxGraph
    A graph that creates new edges from a given template edge.
    • Field Detail

      • edgeTemplate

        protected java.lang.Object edgeTemplate
        Holds the edge to be used as a template for inserting new edges.
    • Constructor Detail

      • CustomGraph

        public CustomGraph()
        Custom graph that defines the alternate edge style to be used when the middle control point of edges is double clicked (flipped).
    • Method Detail

      • setEdgeTemplate

        public void setEdgeTemplate​(java.lang.Object template)
        Sets the edge template to be used to inserting edges.
      • getToolTipForCell

        public java.lang.String getToolTipForCell​(java.lang.Object cell)
        Prints out some useful information about the cell in the tooltip.
        Overrides:
        getToolTipForCell in class mxGraph
      • createEdge

        public java.lang.Object createEdge​(java.lang.Object parent,
                                           java.lang.String id,
                                           java.lang.Object value,
                                           java.lang.Object source,
                                           java.lang.Object target,
                                           java.lang.String style)
        Overrides the method to use the currently selected edge template for new edges.
        Overrides:
        createEdge in class mxGraph
        Parameters:
        graph -
        parent -
        id -
        value -
        source -
        target -
        style -
        Returns: