Revision 42982 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.operation/src/main/java/org/gvsig/fmap/geom/operation/DrawInts.java
DrawInts.java | ||
---|---|---|
27 | 27 |
import java.awt.geom.AffineTransform; |
28 | 28 |
import java.awt.geom.PathIterator; |
29 | 29 |
|
30 |
import org.slf4j.Logger; |
|
31 |
import org.slf4j.LoggerFactory; |
|
32 |
|
|
30 | 33 |
import org.gvsig.fmap.geom.Geometry; |
34 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
31 | 35 |
import org.gvsig.fmap.geom.GeometryLocator; |
32 | 36 |
import org.gvsig.fmap.geom.GeometryManager; |
33 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
34 | 37 |
import org.gvsig.fmap.geom.exception.CreateGeometryException; |
35 | 38 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
36 | 39 |
import org.gvsig.fmap.geom.type.GeometryType; |
... | ... | |
38 | 41 |
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport; |
39 | 42 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
40 | 43 |
import org.gvsig.tools.task.Cancellable; |
41 |
import org.slf4j.Logger; |
|
42 |
import org.slf4j.LoggerFactory; |
|
43 | 44 |
|
45 |
/** |
|
46 |
* @author gvSIG Team |
|
47 |
* |
|
48 |
*/ |
|
44 | 49 |
public class DrawInts extends GeometryOperation { |
45 | 50 |
private static final GeometryManager geomManager = GeometryLocator.getGeometryManager(); |
46 | 51 |
public static final String NAME = "drawInts"; |
... | ... | |
162 | 167 |
|
163 | 168 |
if(geometryType.isTypeOf(Geometry.TYPES.POINT)){ |
164 | 169 |
geom = geomManager.createPoint(ptDst.getX(), ptDst.getY(), SUBTYPES.GEOM2D); |
170 |
} else if(geometryType.isTypeOf(Geometry.TYPES.MULTIPOINT)){ |
|
171 |
geom = geomManager.createMultiPoint(newGp, SUBTYPES.GEOM2D); |
|
165 | 172 |
} else if(geometryType.isTypeOf(Geometry.TYPES.CURVE)){ |
166 | 173 |
geom = geomManager.createCurve(newGp, SUBTYPES.GEOM2D); |
174 |
} else if(geometryType.isTypeOf(Geometry.TYPES.MULTICURVE)){ |
|
175 |
geom = geomManager.createMultiCurve(newGp, SUBTYPES.GEOM2D); |
|
167 | 176 |
} else if(geometryType.isTypeOf(Geometry.TYPES.SURFACE)){ |
168 | 177 |
geom = geomManager.createSurface(newGp, SUBTYPES.GEOM2D); |
178 |
} else if(geometryType.isTypeOf(Geometry.TYPES.MULTISURFACE)){ |
|
179 |
geom = geomManager.createMultiSurface(newGp, SUBTYPES.GEOM2D); |
|
169 | 180 |
} |
170 | 181 |
return geom; |
171 | 182 |
} |
172 | 183 |
|
184 |
/** |
|
185 |
* |
|
186 |
*/ |
|
173 | 187 |
public static void register() { |
174 | 188 |
|
175 | 189 |
GeometryManager gm = GeometryLocator.getGeometryManager(); |
Also available in: Unified diff