Revision 23074 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameGraphics.java

View differences:

FFrameGraphics.java
66 66
import com.iver.cit.gvsig.fmap.core.adapter.RectangleAdapter;
67 67
import com.iver.cit.gvsig.fmap.core.symbols.IMarkerSymbol;
68 68
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol;
69
import com.iver.cit.gvsig.fmap.core.symbols.SimpleFillSymbol;
69 70
import com.iver.cit.gvsig.project.documents.exceptions.SaveException;
70 71
import com.iver.cit.gvsig.project.documents.layout.fframes.gui.dialogs.FFrameGraphicsDialog;
71 72
import com.iver.cit.gvsig.project.documents.layout.fframes.gui.dialogs.IFFrameDialog;
......
199 200
            break;
200 201
        }
201 202
        m_symbol = SymbologyFactory.createDefaultSymbolByShapeType(shapeType);
202

  
203
        if (shapeType==FShape.POLYGON){
204
        	((SimpleFillSymbol)m_symbol).setFillColor(null);
205
        }
203 206
    }
204 207

  
205 208
    /**
......
672 675
	public IFFrameDialog getPropertyDialog() {
673 676
		return new FFrameGraphicsDialog(getLayout(),this);
674 677
	}
678
	 public int getShapeType(){
679
	    	int shapeType=0;
680
	    	switch (m_type) {
681
	        case (POINT):
682
	        	shapeType = FShape.POINT;
683
	            break;
675 684

  
685
	        case (RECTANGLE):
686
	        case (POLYGON):
687
	        case (CIRCLE):
688
	        	shapeType = FShape.POLYGON;
689
	            break;
690

  
691
	        case (LINE):
692
	        case (POLYLINE):
693
	        	shapeType = FShape.LINE;
694
	            break;
695
	        }
696
	    	return shapeType;
697
	    }
676 698
	public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet printingProperties) throws ReadDriverException {
677 699
		 Rectangle2D.Double rect = getBoundingBox(at);
678 700
	     g.rotate(Math.toRadians(getRotation()), rect.x + (rect.width / 2),

Also available in: Unified diff