Package com.mxgraph.model

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


          editorPane.select(start, ende);
        }
        else
        {
          mxIGraphModel model = graphComponent.getGraph().getModel();
          model.beginUpdate();
          try
          {
            graphComponent.stopEditing(false);
            graphComponent.getGraph().toggleCellStyleFlags(
                mxConstants.STYLE_FONTSTYLE,
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

    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

      else
      {
        parentsChanged = null;
      }

      model.beginUpdate();

      try
      {
        TreeNode node = dfs(root, parent, null);
View Full Code Here

          editorPane.select(start, ende);
        }
        else
        {
          mxIGraphModel model = graphComponent.getGraph().getModel();
          model.beginUpdate();
          try
          {
            graphComponent.stopEditing(false);
            graphComponent.getGraph().toggleCellStyleFlags(
                mxConstants.STYLE_FONTSTYLE,
View Full Code Here

    mxIGraphModel model = graph.getModel();

    // Moves the vertices to build a circle. Makes sure the
    // radius is large enough for the vertices to not
    // overlap
    model.beginUpdate();
    try
    {
      for (int i = 0; i < e.length; i++)
      {
        mxCellState edge = (mxCellState) e[i];
View Full Code Here

      mxRectangle size = graph.getStartSize(parent);
      fillValue -= (horizontal) ? size.getHeight() : size.getWidth();
      double x0 = this.x0 + size.getWidth() + border;
      double y0 = this.y0 + size.getHeight() + border;

      model.beginUpdate();
      try
      {
        double tmp = 0;
        mxGeometry last = null;
        int childCount = model.getChildCount(parent);
View Full Code Here

        // Avoids negative values, that is values where the sum of the
        // spacing plus the border is larger then the available space
        if (value > 0)
        {
          model.beginUpdate();
          try
          {
            for (int i = 0; i < n; i++)
            {
              Object child = children.get(i);
View Full Code Here

      if (graph != null && !graph.isSelectionEmpty())
      {
        Object[] cells = graph.getSelectionCells();
        mxIGraphModel model = graph.getModel();

        model.beginUpdate();
        try
        {
          for (int i = 0; i < cells.length; i++)
          {
            graph.updateCellSize(cells[i]);
View Full Code Here

      radiusSquared[i] = radius[i] * radius[i];
    }

    // Moves cell location back to top-left from center locations used in
    // algorithm, resetting the edge points is part of the transaction
    model.beginUpdate();
    try
    {
      for (int i = 0; i < n; i++)
      {
        dispX[i] = 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.