Package com.mxgraph.model

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


   */
  public Object labelChanged(Object cell, Object value, EventObject evt)
  {
    mxIGraphModel model = graph.getModel();

    model.beginUpdate();
    try
    {
      graph.cellLabelChanged(cell, value, graph.isAutoSizeCell(cell));
      eventSource.fireEvent(new mxEventObject(mxEvent.LABEL_CHANGED,
          "cell", cell, "value", value, "event", evt));
View Full Code Here


      parent = model.getParent(root);
     
      if (isBoundaryEvent(root)) {
        parent = model.getParent(parent);
      }
      model.beginUpdate();

      try {
        TreeNode node = dfs(root, parent, null);

        if (node != null) {
View Full Code Here

    }

    if (root != null)
    {
      parent = model.getParent(root);
      model.beginUpdate();

      try
      {
        TreeNode node = dfs(root, parent, null);
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

  {
    if (cells != null)
    {
      mxIGraphModel model = getGraph().getModel();

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

    }

    // Applies dimension to new child
    if (geo != null)
    {
      model.beginUpdate();
      try
      {
        resizeSwimlane(swimlane, geo.getWidth(), geo.getHeight());
      }
      finally
View Full Code Here

  {
    if (cells != null)
    {
      mxIGraphModel model = getGraph().getModel();

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

    if (geo != null)
    {
      double w = geo.getWidth();
      double h = geo.getHeight();

      model.beginUpdate();
      try
      {
        Object parent = model.getParent(swimlane);

        if (isSiblings())
View Full Code Here

   */
  public Object labelChanged(Object cell, Object value, EventObject evt)
  {
    mxIGraphModel model = graph.getModel();

    model.beginUpdate();
    try
    {
      graph.cellLabelChanged(cell, value, graph.isAutoSizeCell(cell));
      eventSource.fireEvent(new mxEventObject(mxEvent.LABEL_CHANGED,
          "cell", cell, "value", value, "event", evt));
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
    {
      // Gets all vertices inside the parent and finds
      // the maximum dimension of the largest vertex
      double max = 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.