Examples of addCells()


Examples of com.mxgraph.view.mxGraph.addCells()

      if (isClone)
      {
        Object clone = graph.cloneCells(new Object[] { edge })[0];

        Object parent = model.getParent(edge);
        graph.addCells(new Object[] { clone }, parent);

        Object other = model.getTerminal(edge, !isSource);
        graph.connectCell(clone, other, !isSource);

        graph.setSelectionCell(clone);
View Full Code Here

Examples of com.mxgraph.view.mxGraph.addCells()

    mxIGraphModel model = graph.getModel();
    Object[] cells = model.cloneCells(aGraph.getChildCells(graph.getDefaultParent(), true, true), true);
    mxGraphModel modelCopy = new mxGraphModel();
    mxGraph graphCopy = new mxGraph(modelCopy);
    Object parentCopy = graphCopy.getDefaultParent();
    graphCopy.addCells(cells);
    //    mxAnalysisGraph aGraphCopy = new mxAnalysisGraph(graphCopy, aGraph.getGenerator(), aGraph.getProperties());
    mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
    aGraphCopy.setGraph(graphCopy);
    aGraphCopy.setGenerator(aGraph.getGenerator());
    aGraphCopy.setProperties(aGraph.getProperties());
View Full Code Here

Examples of com.mxgraph.view.mxGraph.addCells()

    mxIGraphModel model = graph.getModel();
    Object[] cells = model.cloneCells(aGraph.getChildCells(graph.getDefaultParent(), true, true), true);
    mxGraphModel modelCopy = new mxGraphModel();
    mxGraph graphCopy = new mxGraph(modelCopy);
    Object parentCopy = graphCopy.getDefaultParent();
    graphCopy.addCells(cells);
    mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
    aGraphCopy.setGraph(graphCopy);
    aGraphCopy.setGenerator(aGraph.getGenerator());
    aGraphCopy.setProperties(aGraph.getProperties());
View Full Code Here

Examples of com.mxgraph.view.mxGraph.addCells()

                else
                {
                  dropTarget = graph.getDefaultParent();
                }
 
                graph.addCells(new Object[] { vertex }, dropTarget);
              }
 
              // FIXME: Here we pre-create the state for the vertex to be
              // inserted in order to invoke update in the connectPreview.
              // This means we have a cell state which should be created
View Full Code Here

Examples of com.mxgraph.view.mxGraph.addCells()

    if (aGraph.getEdges(vertex, null, true, true, false, true).length >= 2)
    {
      Object[] cells = model.cloneCells(aGraph.getChildCells(graph.getDefaultParent(), true, true), true);
      mxGraphModel modelCopy = new mxGraphModel();
      mxGraph graphCopy = new mxGraph(modelCopy);
      graphCopy.addCells(cells);
      mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
      aGraphCopy.setGraph(graphCopy);
      aGraphCopy.setGenerator(aGraph.getGenerator());
      aGraphCopy.setProperties(aGraph.getProperties());
View Full Code Here

Examples of com.mxgraph.view.mxGraph.addCells()

    if (aGraph.getTerminal(edge, false) != null || aGraph.getTerminal(edge, true) != null)
    {
      Object[] cells = model.cloneCells(aGraph.getChildCells(graph.getDefaultParent(), true, true), true);
      mxGraphModel modelCopy = new mxGraphModel();
      mxGraph graphCopy = new mxGraph(modelCopy);
      graphCopy.addCells(cells);
      mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
      aGraphCopy.setGraph(graphCopy);
      aGraphCopy.setGenerator(aGraph.getGenerator());
      aGraphCopy.setProperties(aGraph.getProperties());
View Full Code Here

Examples of com.mxgraph.view.mxGraph.addCells()

              else
              {
                dropTarget = graph.getDefaultParent();
              }

              graph.addCells(new Object[] { vertex }, dropTarget);
            }

            double x = graph.snap(e.getX());
            double y = graph.snap(e.getY());
View Full Code Here

Examples of com.mxgraph.view.mxGraph.addCells()

      if (isClone)
      {
        Object clone = graph.cloneCells(new Object[] { edge })[0];

        Object parent = model.getParent(edge);
        graph.addCells(new Object[] { clone }, parent);

        Object other = model.getTerminal(edge, !isSource);
        graph.connectCell(clone, other, !isSource);

        graph.setSelectionCell(clone);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.