Package org.freeplane.view.swing.map

Examples of org.freeplane.view.swing.map.MainView


  @Override
  public void mouseClicked(final MouseEvent e) {
    if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2
        && doubleClickTimer.getDelay() > 0) {
      final MainView mainView = (MainView) e.getComponent();
      if (mainView.getMouseArea().equals(MouseArea.MOTION)) {
        final Controller controller = Controller.getCurrentController();
        MLocationController locationController = (MLocationController) LocationController
            .getController(controller.getModeController());
        if (e.getModifiersEx() == 0) {
          final NodeView nodeV = getNodeView(e);
View Full Code Here


  @Override
    public void mouseMoved(final MouseEvent e) {
    if (isDragActive())
      return;
    final MainView v = (MainView) e.getSource();
    if (v.isInDragRegion(e.getPoint())) {
      v.setMouseArea(MouseArea.MOTION);
      v.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));
      return;
    }
    super.mouseMoved(e);
  }
View Full Code Here

          NodeModel node = null;
          if (e.getSource().getClass() == LatexViewer.class) {
            final LatexViewer lv = (LatexViewer) e.getSource();
            for (int i = 0; i < lv.getParent().getComponentCount(); i++) {
              if (lv.getParent().getComponent(i) instanceof MainView) {
                final MainView mv = (MainView) lv.getParent().getComponent(i);
                node = mv.getNodeView().getModel();
                break;
              }
            }
            if (node == null) {
              node = Controller.getCurrentModeController().getMapController().getSelectedNode();
View Full Code Here

    return false;
  }

  @Override
  protected void createStart() {
    final MainView startMainView = getSource().getMainView();
    start = new Point(startMainView.getWidth(), startMainView.getHeight() / 2);
    final MainView targetMainView = getTarget().getMainView();
    end = new Point(targetMainView.getWidth(), targetMainView.getHeight() / 2);
  }
View Full Code Here

TOP

Related Classes of org.freeplane.view.swing.map.MainView

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.