Revision 4496 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFrameView.java

View differences:

FFrameView.java
109 109
	private double scaleAnt;
110 110
	private boolean refresh=false;
111 111
	private FFrameView fframeAux;
112
	
112

  
113 113
    /**
114 114
     * Creates a new FFrameView object.
115 115
     */
......
205 205
     * @param v Modelo de la vista.
206 206
     */
207 207
    public void setView(ProjectView v) {
208
        view = v;
208
        if (view!=null)return;
209
    	view = v;
209 210

  
210 211
        ViewPort vp = v.getMapContext().getViewPort().cloneViewPort();
211 212

  
......
269 270

  
270 271
        /*
271 272
           m_fmap = v.getMapContext();
272
        
273

  
273 274
           v.getMapContext().getViewPort();
274 275
           ViewPort vp = new ViewPort();
275 276
           vp.setExtent(v.getMapContext().getViewPort().getExtent());
......
348 349

  
349 350
                    if (getQuality() == PRESENTACION) {
350 351
                        if (rv.intersects(r)) {
351
                        	
352
                         
353 352

  
353

  
354

  
354 355
                                ViewPort viewPort = this.getFMap().getViewPort();
355 356
                                Color theBackColor = viewPort.getBackColor();
356 357

  
......
369 370
                                            r.getX(), r.getY()));
370 371
                                	getFMap().getViewPort().setImageSize(new Dimension(
371 372
                                            (int) r.getWidth(), (int) r.getHeight()));
372
                                	
373

  
373 374
                                	BufferedImage image=new BufferedImage((int)cliprectLayoutpixels.getWidth(),
374 375
                                            (int) cliprectLayoutpixels.getHeight(),
375 376
                                            BufferedImage.TYPE_INT_ARGB);
376
                                    
377

  
377 378
                                	Graphics2D gimg=(Graphics2D) image.getGraphics();
378 379
                                	gimg.translate(-r.getX(),-r.getY());
379 380
                                	getFMap().draw(image,gimg,getScale());
......
418 419
        if (getRotation()!=0)
419 420
        g.rotate(Math.toRadians(-getRotation()), r.x + (r.width / 2),
420 421
            r.y + (r.height / 2));
421
        
422

  
422 423
        setATMap((AffineTransform) getFMap()
423 424
        .getViewPort()
424 425
        .getAffineTransform()
......
914 915
	private FLayoutFunctions functions=new FLayoutFunctions(layout);
915 916
	public Rectangle2D getRectView(Point2D p1,Point2D p2){
916 917
		//if (cliprect==null){
917
		
918

  
918 919
		cliprectLayout=FLayoutUtilities.toSheetRect(new Rectangle2D.Double(p1.getX(),p1.getY(),p2.getX()-p1.getX(),p2.getY()-p1.getY()),layout.getAT());
919 920
		//setZoomIn(layout.getFirstPoint(),layout.getLastPoint());
920 921
		Point2D point1=functions.toMapPoint(new Point2D.Double(p1.getX(),p1.getY()),getATMap());
......
1017 1018
					layout.getAT()));
1018 1019
		}
1019 1020
		cliprectLayoutpixels=rScreen;
1020
		
1021

  
1021 1022
	}*/
1023

  
1024
	public void fullExtent() throws DriverException {
1025
		setNewExtent(getFMap().getFullExtent());
1026
	}
1022 1027
}

Also available in: Unified diff