Revision 27035 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/geometryadapters/PolygonAdapter.java
PolygonAdapter.java | ||
---|---|---|
46 | 46 |
|
47 | 47 |
import org.gvsig.fmap.geom.Geometry; |
48 | 48 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
49 |
import org.gvsig.fmap.geom.primitive.Surface2D;
|
|
49 |
import org.gvsig.fmap.geom.util.UtilFunctions;
|
|
50 | 50 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
51 | 51 |
|
52 | 52 |
|
... | ... | |
92 | 92 |
* @return DOCUMENT ME! |
93 | 93 |
*/ |
94 | 94 |
public Geometry getGeometry() { |
95 |
return new Surface2D(getGPX());
|
|
95 |
return UtilFunctions.createSurface(getGPX());
|
|
96 | 96 |
} |
97 | 97 |
|
98 | 98 |
/** |
... | ... | |
106 | 106 |
GeneralPathX rectangle = new GeneralPathX(getGeometry()); |
107 | 107 |
rectangle.transform(at); |
108 | 108 |
|
109 |
Geometry shapeAux = new Surface2D(rectangle);
|
|
109 |
Geometry shapeAux = UtilFunctions.createSurface(rectangle);
|
|
110 | 110 |
symbol.draw(g,at,shapeAux, null); |
111 | 111 |
} |
112 | 112 |
} |
Also available in: Unified diff