Package com.mxgraph.model

Examples of com.mxgraph.model.mxIGraphModel.beginUpdate()


    }

    this.roots = roots;
    mxIGraphModel model = graph.getModel();

    model.beginUpdate();
    try
    {
      run(parent);
     
      if (isResizeParent() &&
View Full Code Here


      // Convert from vertex center points to top left points
      result[i][0] = v[i].x - bounds.getWidth() / 2;
      result[i][1] = v[i].y - bounds.getHeight() / 2;
    }

    model.beginUpdate();
    try
    {
      for (int i = 0; i < vertices.length; i++)
      {
        setVertexLocation(vertices[i], result[i][0], result[i][1]);
View Full Code Here

    mxIGraphModel model = graphComponent.getGraph().getModel();
    mxGeometry geometry = model.getGeometry(edge);

    if (geometry != null)
    {
      model.beginUpdate();
      try
      {
        geometry = (mxGeometry) geometry.clone();

        if (isSource(index) || isTarget(index))
View Full Code Here

      boolean isClone)
  {
    mxGraph graph = graphComponent.getGraph();
    mxIGraphModel model = graph.getModel();

    model.beginUpdate();
    try
    {
      if (isClone)
      {
        Object clone = graph.cloneCells(new Object[] { edge })[0];
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.