Revision 26866 branches/v2_0_0_prep/libraries/libFMap_geometries/src-test/org/gvsig/fmap/geom/primitive/CurveTest.java
CurveTest.java | ||
---|---|---|
36 | 36 |
import org.gvsig.fmap.geom.GeometryLibrary; |
37 | 37 |
import org.gvsig.fmap.geom.GeometryLocator; |
38 | 38 |
import org.gvsig.fmap.geom.GeometryManager; |
39 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
40 |
import org.gvsig.fmap.geom.Geometry.TYPES; |
|
39 | 41 |
import org.slf4j.Logger; |
40 | 42 |
import org.slf4j.LoggerFactory; |
41 | 43 |
|
... | ... | |
62 | 64 |
} |
63 | 65 |
|
64 | 66 |
public void testCreateCurve2D() throws InstantiationException, IllegalAccessException{ |
65 |
Curve curve = (Curve)manager.create(Curve2D.CODE);
|
|
67 |
Curve curve = (Curve)manager.create(TYPES.CURVE, SUBTYPES.GEOM2D);
|
|
66 | 68 |
GeneralPathX generalPathX = new GeneralPathX(); |
67 | 69 |
generalPathX.moveTo(0, 0); |
68 | 70 |
generalPathX.lineTo(1, 1); |
... | ... | |
99 | 101 |
} |
100 | 102 |
|
101 | 103 |
public void testCreateCurve2DZ() throws InstantiationException, IllegalAccessException{ |
102 |
Curve curve = (Curve)manager.create(Curve2DZ.CODE);
|
|
104 |
Curve curve = (Curve)manager.create(TYPES.CURVE, SUBTYPES.GEOM2DZ);
|
|
103 | 105 |
GeneralPathX generalPathX = new GeneralPathX(); |
104 | 106 |
generalPathX.moveTo(0, 0); |
105 | 107 |
generalPathX.lineTo(1, 1); |
Also available in: Unified diff