Package com.mxgraph.util

Examples of com.mxgraph.util.mxEventObject


      if (comp.getParent() != null)
      {
        comp.setVisible(false);
        comp.getParent().remove(comp);
        eventSource.fireEvent(new mxEventObject(mxEvent.REMOVE_OVERLAY,
            "cell", cell, "overlay", overlay));
      }
    }
  }
View Full Code Here


    return new mxUndoableEdit(this)
    {
      public void dispatch()
      {
        // LATER: Remove changes property (deprecated)
        ((mxGraphModel) source).fireEvent(new mxEventObject(
            mxEvent.CHANGE, "edit", this, "changes", changes));
      }
    };
  }
View Full Code Here

  public void execute(mxAtomicGraphModelChange change)
  {
    change.execute();
    beginUpdate();
    currentEdit.add(change);
    fireEvent(new mxEventObject(mxEvent.EXECUTE, "change", change));
    endUpdate();
  }
View Full Code Here

   * @see com.mxgraph.model.mxIGraphModel#beginUpdate()
   */
  public void beginUpdate()
  {
    updateLevel++;
    fireEvent(new mxEventObject(mxEvent.BEGIN_UPDATE));
  }
View Full Code Here

    updateLevel--;

    if (!endingUpdate)
    {
      endingUpdate = updateLevel == 0;
      fireEvent(new mxEventObject(mxEvent.END_UPDATE, "edit", currentEdit));

      try
      {
        if (endingUpdate && !currentEdit.isEmpty())
        {
          fireEvent(new mxEventObject(mxEvent.BEFORE_UNDO, "edit",
              currentEdit));
          mxUndoableEdit tmp = currentEdit;
          currentEdit = createUndoableEdit();
          tmp.dispatch();
          fireEvent(new mxEventObject(mxEvent.UNDO, "edit", tmp));
        }
      }
      finally
      {
        endingUpdate = false;
View Full Code Here

      mxSelectionChange change = new mxSelectionChange(this, added,
          removed);
      change.execute();
      mxUndoableEdit edit = new mxUndoableEdit(this, false);
      edit.add(change);
      fireEvent(new mxEventObject(mxEvent.UNDO, "edit", edit));
    }
  }
View Full Code Here

      }

      Collection<Object> tmp = added;
      added = removed;
      removed = tmp;
      model.fireEvent(new mxEventObject(mxEvent.CHANGE, "added", added,
          "removed", removed));
    }
View Full Code Here

              graphComponent.isSignificant(dx, dy), e);

          if (cell != null)
          {
            graphComponent.getGraph().setSelectionCell(cell);
            eventSource.fireEvent(new mxEventObject(mxEvent.CONNECT,
                "cell", cell, "event", e, "target", dropTarget));
          }

          e.consume();
        }
View Full Code Here

     *
     */
    public void paint(Graphics g)
    {
      g.translate(translate.x, translate.y);
      eventSource.fireEvent(new mxEventObject(mxEvent.BEFORE_PAINT, "g",
          g));
      super.paint(g);
      eventSource
          .fireEvent(new mxEventObject(mxEvent.AFTER_PAINT, "g", g));
      g.translate(-translate.x, -translate.y);
    }
View Full Code Here

          // Restores the graphics state
          g2.setRenderingHints(tmp);
        }
      }

      eventSource.fireEvent(new mxEventObject(mxEvent.PAINT, "g", g));
    }
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.