Package org.freeplane.view.swing.map

Examples of org.freeplane.view.swing.map.MainView.repaint()


  public void dragExit(final DropTargetEvent e) {
    getNode(e).setMouseArea(MouseArea.OUT);
    stopUnfoldTimer();
    final MainView mainView = getNode(e);
    mainView.setDraggedOver(NodeView.DRAGGED_OVER_NO);
    mainView.repaint();
  }

  private MainView getNode(final DropTargetEvent e) {
      final Component draggedNode = e.getDropTargetContext().getComponent();
    final MainView mainView = (MainView) draggedNode;
View Full Code Here


    final int oldDraggedOver = draggedNode.getDraggedOver();
    draggedNode.setDraggedOver(dtde.getLocation());
    final int newDraggedOver = draggedNode.getDraggedOver();
    final boolean repaint = newDraggedOver != oldDraggedOver;
    if (repaint) {
      draggedNode.repaint();
    }
  }

  private void startUnfoldTimer(final MainView mainView) {
    if(timer == null){
View Full Code Here

        if (sourceAction.equals("COPY")) {
          dropAction = DnDConstants.ACTION_COPY;
        }
      }
      mainView.setDraggedOver(NodeView.DRAGGED_OVER_NO);
      mainView.repaint();
      if (dtde.isLocalTransfer() && (dropAction == DnDConstants.ACTION_MOVE) && !isDropAcceptable(dtde)) {
        dtde.rejectDrop();
        return;
      }
      final boolean dropAsSibling = mainView.dropAsSibling(dtde.getLocation().getX());
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.