Revision 21100 branches/v2_0_0_prep/libraries/libFMap/src/org/gvsig/fmap/core/shapes/adapters/PolygonAdapter.java
PolygonAdapter.java | ||
---|---|---|
44 | 44 |
import java.awt.geom.AffineTransform; |
45 | 45 |
import java.awt.geom.Point2D; |
46 | 46 |
|
47 |
import org.gvsig.fmap.core.shapes.FPolygon2D;
|
|
48 |
import org.gvsig.fmap.core.shapes.FShape;
|
|
49 |
import org.gvsig.fmap.core.shapes.GeneralPathX;
|
|
47 |
import org.gvsig.fmap.geom.Geometry;
|
|
48 |
import org.gvsig.fmap.geom.primitive.GeneralPathX;
|
|
49 |
import org.gvsig.fmap.geom.primitive.Surface2D;
|
|
50 | 50 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
51 | 51 |
|
52 | 52 |
|
... | ... | |
91 | 91 |
* |
92 | 92 |
* @return DOCUMENT ME! |
93 | 93 |
*/ |
94 |
public FShape getShape() {
|
|
95 |
return new FPolygon2D(getGPX());
|
|
94 |
public Geometry getGeometry() {
|
|
95 |
return new Surface2D(getGPX());
|
|
96 | 96 |
} |
97 | 97 |
|
98 | 98 |
/** |
... | ... | |
103 | 103 |
* @param symbol DOCUMENT ME! |
104 | 104 |
*/ |
105 | 105 |
public void draw(Graphics2D g, AffineTransform at, ISymbol symbol) { |
106 |
GeneralPathX rectangle = new GeneralPathX(getShape());
|
|
106 |
GeneralPathX rectangle = new GeneralPathX(getGeometry());
|
|
107 | 107 |
rectangle.transform(at); |
108 | 108 |
|
109 |
FShape shapeAux = new FPolygon2D(rectangle);
|
|
109 |
Geometry shapeAux = new Surface2D(rectangle);
|
|
110 | 110 |
symbol.draw(g,at,shapeAux, null); |
111 | 111 |
} |
112 | 112 |
} |
Also available in: Unified diff