Revision 21100 branches/v2_0_0_prep/libraries/libFMap/src/org/gvsig/fmap/core/shapes/adapters/PointAdapter.java

View differences:

PointAdapter.java
43 43
import java.awt.Graphics2D;
44 44
import java.awt.geom.AffineTransform;
45 45

  
46
import org.gvsig.fmap.core.shapes.FPoint2D;
47
import org.gvsig.fmap.core.shapes.FShape;
48
import org.gvsig.fmap.core.shapes.GeneralPathX;
46
import org.gvsig.fmap.geom.Geometry;
47
import org.gvsig.fmap.geom.primitive.GeneralPathX;
48
import org.gvsig.fmap.geom.primitive.Point2D;
49 49
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
50 50

  
51 51

  
......
65 65
     * @param symbol DOCUMENT ME!
66 66
     */
67 67
    public void draw(Graphics2D g, AffineTransform at, ISymbol symbol) {
68
        GeneralPathX point = new GeneralPathX(getShape());
68
        GeneralPathX point = new GeneralPathX(getGeometry());
69 69
        point.transform(at);
70 70

  
71
        FShape shapeAux = new FPoint2D(point.getCurrentPoint());
71
        Geometry shapeAux = new Point2D(point.getCurrentPoint());
72 72
        symbol.draw(g,at,shapeAux, null);
73 73
        // FGraphicUtilities.DrawShape(g, at, shapeAux, symbol);
74 74
    }
......
78 78
     *
79 79
     * @return DOCUMENT ME!
80 80
     */
81
    public FShape getShape() {
82
        return new FPoint2D(getGPX().getCurrentPoint());
81
    public Geometry getGeometry() {
82
        return new Point2D(getGPX().getCurrentPoint());
83 83
    }
84 84
}

Also available in: Unified diff