Package com.mxgraph.util

Examples of com.mxgraph.util.mxEventObject


        if (isResetEdgesOnConnect())
        {
          resetEdge(edge);
        }

        fireEvent(new mxEventObject(mxEvent.CELL_CONNECTED, "edge",
            edge, "terminal", terminal, "source", source,
            "previous", previous));
      }
      finally
      {
View Full Code Here


   * Fires a repaint event. The optional region is the rectangle that needs
   * to be repainted.
   */
  public void repaint(mxRectangle region)
  {
    fireEvent(new mxEventObject(mxEvent.REPAINT, "region", region));
  }
View Full Code Here

    {
      mxCurrentRootChange change = new mxCurrentRootChange(this, root);
      change.execute();
      mxUndoableEdit edit = new mxUndoableEdit(this, false);
      edit.add(change);
      fireEvent(new mxEventObject(mxEvent.UNDO, "edit", edit));
    }

    return root;
  }
View Full Code Here

      {
        revalidate();
      }
    }

    fireEvent(new mxEventObject(mxEvent.SCALE_AND_TRANSLATE, "scale",
        scale, "previousScale", previousScale, "translate", translate,
        "previousTranslate", previousTranslate));
  }
View Full Code Here

      {
        revalidate();
      }
    }

    fireEvent(new mxEventObject(mxEvent.SCALE, "scale", scale,
        "previousScale", previousScale));
  }
View Full Code Here

      {
        revalidate();
      }
    }

    fireEvent(new mxEventObject(mxEvent.TRANSLATE, "translate", translate,
        "previousTranslate", previousTranslate));
  }
View Full Code Here

      // Removes all existing cell states and revalidates
      view.reload();
      up = !up;

      String eventName = (up) ? mxEvent.UP : mxEvent.DOWN;
      view.fireEvent(new mxEventObject(eventName, "root",
          view.currentRoot, "previous", previous));
    }
View Full Code Here

      }
    }

    if (cell != null)
    {
      eventSource.fireEvent(new mxEventObject(mxEvent.START_EDITING,
          "cell", cell, "event", evt));
      cellEditor.startEditing(cell, evt);
    }
  }
View Full Code Here

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

    if (state != null)
    {
      updateCellOverlayComponent(state, overlay);
    }

    eventSource.fireEvent(new mxEventObject(mxEvent.ADD_OVERLAY, "cell",
        cell, "overlay", overlay));

    return overlay;
  }
View Full Code Here

TOP

Related Classes of com.mxgraph.util.mxEventObject

Copyright © 2018 www.massapicom. 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.