Package com.mxgraph.util

Examples of com.mxgraph.util.mxEventObject


      placeholder = getPlaceholderBounds(startState).getRectangle();
      initialPlaceholder = new Rectangle(placeholder);
      graphComponent.getGraphControl().repaint(placeholder);
    }

    fireEvent(new mxEventObject(mxEvent.START, "event", e, "state",
        startState));
  }
View Full Code Here


    if (isHideSelectionHandler())
    {
      graphComponent.getSelectionCellsHandler().setVisible(false);
    }

    fireEvent(new mxEventObject(mxEvent.CONTINUE, "event", e, "dx", dx,
        "dy", dy));
  }
View Full Code Here

        double s = graph.getView().getScale();
        cells = graph.moveCells(cells, dx / s, dy / s, clone, target,
            e.getPoint());
      }

      fireEvent(new mxEventObject(mxEvent.STOP, "event", e, "commit",
          commit));
    }
    finally
    {
      graph.getModel().endUpdate();
View Full Code Here

          graphComponent.getGraphControl().add(this);
        }
      }

      repaint();
      eventSource.fireEvent(new mxEventObject(mxEvent.MARK, "state",
          markedState));
    }
  }
View Full Code Here

  {
    if (getParent() != null)
    {
      setVisible(false);
      getParent().remove(this);
      eventSource.fireEvent(new mxEventObject(mxEvent.MARK));
    }
  }
View Full Code Here

    sourceState = startState;
    startPoint = transformScreenPoint(startState.getCenterX(),
        startState.getCenterY());
    previewState = graph.getView().getState(createCell(startState, style),
        true);
    fireEvent(new mxEventObject(mxEvent.START, "event", e, "state",
        previewState));
  }
View Full Code Here

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

    revalidate(graph.getView().getState(graph.getDefaultParent()),
        previewState.getCell());
    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

          }
        }

      }

      fireEvent(new mxEventObject(mxEvent.ROOT));
    }
    else if (change instanceof mxChildChange)
    {
      mxChildChange cc = (mxChildChange) change;
View Full Code Here

              resetEdges(new Object[] { cells[i] });
            }
          }
        }

        fireEvent(new mxEventObject(mxEvent.ALIGN_CELLS, "cells",
            cells, "align", align));
      }
      finally
      {
        model.endUpdate();
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.