Package com.mxgraph.util

Examples of com.mxgraph.util.mxEventObject


          {
            executeLayout(getLayout(cells[i]), cells[i]);
          }
        }

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

     *
     */
    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

      }
    }

    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

      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

      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

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.