Package com.mxgraph.model

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


  {
    if (cells != null)
    {
      mxIGraphModel model = this.getGraph().getModel();
     
      model.beginUpdate();
      try
      {
        // Finds the top-level swimlanes and adds offsets
        for (int i = 0; i < cells.length; i++)
        {
View Full Code Here


   */
  protected void resizeSwimlane(Object swimlane, double w, double h)
  {
    mxIGraphModel model = getGraph().getModel();

    model.beginUpdate();
    try
    {
      if (!this.isSwimlaneIgnored(swimlane))
      {
        mxGeometry geo = model.getGeometry(swimlane);
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

    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

    }

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

    model.beginUpdate();
    try
    {
      run(parent);

      if (isResizeParent() && !graph.isCellCollapsed(parent))
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

    }

    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 (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

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.