Package com.mxgraph.util

Examples of com.mxgraph.util.mxEventObject


    {
      selectedEntry.setBorder(ShadowBorder.getSharedInstance());
      selectedEntry.setOpaque(true);
    }

    eventSource.fireEvent(new mxEventObject(mxEvent.SELECT, "entry",
        selectedEntry, "transferable", t, "previous", previous));
  }
View Full Code Here


    {
      selectedEntry.setBorder(ShadowBorder.getSharedInstance());
      selectedEntry.setOpaque(true);
    }

    eventSource.fireEvent(new mxEventObject(mxEvent.SELECT, "entry",
        selectedEntry, "transferable", t, "previous", previous));
  }
View Full Code Here

        startState.getCenterY());
    Object cell = createCell(startState, style);
    graph.getView().validateCell(cell);
    previewState = graph.getView().getState(cell);
   
    fireEvent(new mxEventObject(mxEvent.START, "event", e, "state",
        previewState));
  }
View Full Code Here

    geo.setTerminalPoint(startPoint, true);
    geo.setTerminalPoint(transformScreenPoint(x, y), false);

    revalidate(previewState);
    fireEvent(new mxEventObject(mxEvent.CONTINUE, "event", e, "x", x, "y",
        y));

    // Repaints the dirty region
    // TODO: Cache the new dirty region for next repaint
    Rectangle tmp = getDirtyRect(dirty);
View Full Code Here

        if (commit)
        {
          result = graph.addCell(cell, null, null, src, trg);
        }

        fireEvent(new mxEventObject(mxEvent.STOP, "event", e, "commit",
            commit, "cell", (commit) ? result : null));

        // Clears the state before the model commits
        if (previewState != null)
        {
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

      current.setY(current.getY() / scale - tr.getY());
      current.setWidth(current.getWidth() / scale);
      current.setHeight(current.getHeight() / scale);

      Object cell = insertCell(current);
      eventSource.fireEvent(new mxEventObject(mxEvent.INSERT, "cell",
          cell));
      e.consume();
    }

    reset();
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

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.