Revision 12148 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/InternalPolygonCADTool.java

View differences:

InternalPolygonCADTool.java
171 171
    	gpx.lineTo(x,y);
172 172
    	gpx.closePath();
173 173
    	gpx1.closePath();
174
    	if (ps.length==1){
175
    		IGeometry geom=ShapeFactory.createPolyline2D(gpx);
176
        	geom.drawInts((Graphics2D)g,CADExtension.getEditionManager().getMapControl().getViewPort(),DefaultCADTool.geometrySelectSymbol);
177
    	}
174 178
    	IGeometry geom=ShapeFactory.createPolygon2D(gpx);
175 179
    	IGeometry geom1=ShapeFactory.createPolygon2D(gpx1);
176
    	geom1.draw((Graphics2D)g,CADExtension.getEditionManager().getMapControl().getViewPort(),DefaultCADTool.selectionSymbol);
177
    	geom.draw((Graphics2D)g,CADExtension.getEditionManager().getMapControl().getViewPort(),DefaultCADTool.geometrySelectSymbol);
180
    	geom1.drawInts((Graphics2D)g,CADExtension.getEditionManager().getMapControl().getViewPort(),DefaultCADTool.selectionSymbol);
181
    	geom.drawInts((Graphics2D)g,CADExtension.getEditionManager().getMapControl().getViewPort(),DefaultCADTool.geometrySelectSymbol);
178 182
    	}
183
    	DefaultRowEdited[] rows=(DefaultRowEdited[])getSelectedRows().toArray(new DefaultRowEdited[0]);
184
    	for (int i=0;i<rows.length;i++){
185
    		((IFeature)rows[i].getLinkedRow()).getGeometry().drawInts((Graphics2D)g,CADExtension.getEditionManager().getMapControl().getViewPort(),DefaultCADTool.selectionSymbol);
186
    	}
179 187
    }
180 188

  
181 189
    /**

Also available in: Unified diff