Package com.mxgraph.model

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


    if (cells.length > 0)
    {
      // Invokes the layouts while removing duplicates
      mxIGraphModel model = getGraph().getModel();

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


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

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

            - geo.getY() * scale;

        double fx = 1 - geo.getWidth() * scale / state.getWidth();
        double fy = 1 - geo.getHeight() * scale / state.getHeight();

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

      mxIGraphModel model = graph.getModel();
      mxGeometry geo = model.getGeometry(cell);

      if (geo != null)
      {
        model.beginUpdate();
        try
        {
          if (isShiftRightwards())
          {
            if (state.getX() >= right)
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 (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, boolean parentHorizontal)
  {
    mxIGraphModel model = getGraph().getModel();

    model.beginUpdate();
    try
    {
      boolean horizontal = this.isCellHorizontal(swimlane);
     
      if (!this.isSwimlaneIgnored(swimlane))
View Full Code Here

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

      }
    }

    this.roots = roots;

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

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