Examples of mxEventObject


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

Examples of com.mxgraph.util.mxEventObject

   * 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

Examples of com.mxgraph.util.mxEventObject

    {
      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

Examples of com.mxgraph.util.mxEventObject

      {
        revalidate();
      }
    }

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

Examples of com.mxgraph.util.mxEventObject

      {
        revalidate();
      }
    }

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

Examples of com.mxgraph.util.mxEventObject

      {
        revalidate();
      }
    }

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

Examples of com.mxgraph.util.mxEventObject

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

Examples of com.mxgraph.util.mxEventObject

      }
    }

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

Examples of com.mxgraph.util.mxEventObject

    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

Examples of com.mxgraph.util.mxEventObject

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

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

    return overlay;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.