Revision 3129 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/gui/Dialogs/GeoreferencingDialog.java

View differences:

GeoreferencingDialog.java
65 65
	private int normalWidth = 395;
66 66
	private int normalHeight = 250;
67 67
	private int enlargeHeight = 417;
68
	private int tmpWidth = normalWidth;
68 69
	
69 70
	private JButton bAceptar = null;
70 71
	private JPanel pGeneral = null;
......
466 467
		if(!enlarge){
467 468
			this.setPreferredSize(new Dimension(this.normalWidth, this.normalHeight));
468 469
			this.setSize(new Dimension(this.normalWidth, this.normalHeight));
469
			frame.setSize(new Dimension(this.normalWidth, this.normalHeight + 10));
470
			frame.setPreferredSize(new Dimension(this.normalWidth, this.normalHeight + 10));
470
			frame.setSize(new Dimension(this.normalWidth + 12, this.normalHeight + 10));
471
			frame.setPreferredSize(new Dimension(this.normalWidth + 12, this.normalHeight + 10));
471 472
			this.getConectorPanel().setCanvasVisible(false);
472 473
		}else{
473 474
			this.setPreferredSize(new Dimension(this.normalWidth, this.enlargeHeight));
474 475
			this.setSize(new Dimension(this.normalWidth, this.enlargeHeight));
475
			frame.setSize(new Dimension(this.normalWidth, this.enlargeHeight + 10));
476
			frame.setPreferredSize(new Dimension(this.normalWidth, this.enlargeHeight + 10));
476
			frame.setSize(new Dimension(this.normalWidth + 12, this.enlargeHeight + 10));
477
			frame.setPreferredSize(new Dimension(this.normalWidth + 12, this.enlargeHeight + 10));
477 478
			this.getConectorPanel().setCanvasVisible(true);
478 479
		}
479 480
		frame.pack();
......
502 503
		
503 504
		if(this.getConectorPanel().getDataPointsTabPanel().getTbPoints().getSelectedIndex() == 1)
504 505
			this.newFrameSize(frame.getWidth(), frame.getHeight() - 10);
505

  
506
		
507
		tmpWidth = frame.getWidth();
506 508
	}
507 509
	/* (non-Javadoc)
508 510
	 * @see java.awt.event.ComponentListener#componentShown(java.awt.event.ComponentEvent)
......
517 519
     */
518 520
    public void resetSize(){
519 521
    	if(!enlarge){
520
    		frame.setSize(this.normalWidth, this.normalHeight + 10);
522
    		frame.setSize(this.normalWidth + 12, this.normalHeight + 10);
521 523
    	}else{
522
    		frame.setSize(this.normalWidth, this.enlargeHeight + 10);
524
    		frame.setSize(this.normalWidth + 12, this.enlargeHeight + 10);
523 525
    	}
524 526
    	newFrameSize((int)Math.round(this.normalWidth / 0.98), this.normalHeight);
525 527
    }
......
537 539
        this.getConectorPanel().newFrameSize(newWidth, h);        
538 540
	}
539 541

  
542
	/**
543
	 * @return Returns the tmpWidth.
544
	 */
545
	public int getTmpWidth() {
546
		return tmpWidth;
547
	}
548
	/**
549
	 * @param tmpWidth The tmpWidth to set.
550
	 */
551
	public void setTmpWidth(int tmpWidth) {
552
		this.tmpWidth = tmpWidth;
553
	}
554
	/**
555
	 * @return Returns the enlargeHeight.
556
	 */
557
	public int getEnlargeHeight() {
558
		return enlargeHeight;
559
	}
560
	/**
561
	 * @return Returns the normalHeight.
562
	 */
563
	public int getNormalHeight() {
564
		return normalHeight;
565
	}
540 566
}  //  @jve:decl-index=0:visual-constraint="10,10"
541 567
 //  @jve:visual-info  decl-index=0 visual-constraint="10,10"
542 568
//  @jve:visual-info  decl-index=0 visual-constraint="10,10"

Also available in: Unified diff