Revision 21732 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/Curve2D.java

View differences:

Curve2D.java
46 46

  
47 47
/**
48 48
 * DOCUMENT ME!
49
 * 
49
 *
50 50
 * @author Fernando Gonz�lez Cort�s
51 51
 */
52 52
public class Curve2D extends OrientableCurve2D implements Curve {
......
54 54
	private static final long serialVersionUID = 1L;
55 55

  
56 56
	private GeneralPathX generalpathx=null;
57
	
57

  
58 58
	private static GeometryType geomType = GeometryManager.getInstance()
59
			.registerGeometryType(Curve2D.class);
59
			.registerBasicGeometryType(Curve2D.class,null,TYPES.CURVE);
60 60

  
61
	public static int CODE = TYPES.CURVE;//geomType.getType();
62
	
61
	public static int CODE = geomType.getType();
62

  
63 63
	public Curve2D(String id, IProjection projection, GeneralPathX gpx) {
64 64
		super(id, projection, gpx);
65 65
		generalpathx=gpx;
......
72 72

  
73 73
	/*
74 74
	 * (non-Javadoc)
75
	 * 
75
	 *
76 76
	 * @see com.iver.cit.gvsig.fmap.core.FShape#getShapeType()
77 77
	 */
78 78
	public int getShapeType() {
......
81 81

  
82 82
	/*
83 83
	 * (non-Javadoc)
84
	 * 
84
	 *
85 85
	 * @see com.iver.cit.gvsig.fmap.core.FShape#cloneFShape()
86 86
	 */
87 87
	public FShape cloneFShape() {
......
95 95
	public GeometryType getGeometryType() {
96 96
		return geomType;
97 97
	}
98
	
98

  
99 99
	public int getType() {
100 100
		return CODE;
101 101
	}
......
104 104
		// TODO Auto-generated method stub
105 105
		return generalpathx;
106 106
	}
107
	
107

  
108 108
}

Also available in: Unified diff