Revision 3575

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/EventsHandler.java
77 77
    private ArrayList lastSelect = new ArrayList();
78 78
    private FLayoutFunctions events = null;
79 79
    private FLayoutZooms zooms = null;
80
    private IFFrame[] selectFFrames;
80
    private static IFFrame[] selectFFrames;
81 81
    private int difX;
82 82
    private int difY;
83 83
    /**
......
181 181
     * @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)
182 182
     */
183 183
    public void mouseClicked(MouseEvent E) {
184
        if ((E.getClickCount() == 2) &&
184
    	if ((E.getClickCount() == 2) &&
185 185
                ((layout.getTool() == Layout.POLYLINE) ||
186 186
                (layout.getTool() == Layout.POLYGON))) {
187
    		delLastPoint();
187 188
            endGraphic();
188
            
189 189
        } else {
190 190
            if (E.getButton() == MouseEvent.BUTTON1) {
191 191
                if (layout.getTool() == Layout.SELECT) {
......
456 456
            			}
457 457
            		}
458 458
            	}
459
            	//layout.refresh();
459
            	layout.refresh();
460
            } else if (layout.getTool() == Layout.PAN) {
461
                layout.refresh();
460 462
            }
461
            layout.refresh();
463
            ///layout.refresh();
462 464
            layout.setCancelDrawing(false);
463 465
        } else if (E.getButton() == MouseEvent.BUTTON3) {
464 466
        }
465 467

  
466 468
      
467 469
    }
468

  
470
    private void delLastPoint(){
471
    	layout.getGeometryAdapter().delLastPoint();
472
    }
469 473
    /**
470 474
     * DOCUMENT ME!
471 475
     */
......
548 552
				layout.getEFS().endComplexCommand();
549 553
				layout.refresh();
550 554
				break;
555
			case KeyEvent.VK_Z:
556
				layout.getEFS().undo();
557
				layout.updateFFrames();
558
				layout.refresh();
559
				PluginServices.getMainFrame().enableControls();
560
				break;
561
			case KeyEvent.VK_Y:
562
				layout.getEFS().redo();
563
				layout.updateFFrames();
564
				layout.refresh();
565
				PluginServices.getMainFrame().enableControls();
566
				break;
551 567
			}
552 568
		}else{
553 569
			switch (arg0.getKeyCode()) {

Also available in: Unified diff