|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.symbol.FConverter
Clase con varios métodos estáticos utilizados para pasar de java2d a jts y viceversa.
Field Summary | |
static com.vividsolutions.jts.algorithm.CGAlgorithms |
cga
|
static double |
FLATNESS
Es la máxima distancia que permitimos que el trazo aproximado difiera del trazo real. |
static com.vividsolutions.jts.geom.GeometryFactory |
geomFactory
¿QUÉ PODEMOS HACER CON LOS MULTIPOINT??? |
Constructor Summary | |
FConverter()
|
Method Summary | |
static java.awt.geom.Rectangle2D |
convertEnvelopeToRectangle2D(com.vividsolutions.jts.geom.Envelope jtsR)
|
static com.vividsolutions.jts.geom.Envelope |
convertRectangle2DtoEnvelope(java.awt.geom.Rectangle2D r)
|
static FPoint2D |
coordinate2FPoint2D(com.vividsolutions.jts.geom.Coordinate coord)
|
static IGeometry |
getExteriorPolygon(com.vividsolutions.jts.geom.Coordinate[] coordinates)
Return a correct polygon (no hole) |
static java.awt.Shape |
getExteriorPolygon(GeneralPathX gp)
|
static IGeometry |
getHole(com.vividsolutions.jts.geom.Coordinate[] coordinates)
Return a hole (CCW ordered points) |
static IGeometry |
getNotHolePolygon(FPolygon2D pol)
Use it ONLY for NOT multipart polygons. |
static boolean |
isCCW(FPolygon2D pol)
|
static boolean |
isCCW(java.awt.geom.Point2D[] points)
|
static GeneralPathX |
toShape(com.vividsolutions.jts.geom.Geometry geometry)
Convierte una Geometry de JTS a GeneralPathX. |
static GeneralPathX |
transformToInts(GeneralPathX gp,
java.awt.geom.AffineTransform at)
|
static FShape |
transformToInts(IGeometry gp,
java.awt.geom.AffineTransform at)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final com.vividsolutions.jts.geom.GeometryFactory geomFactory
public static com.vividsolutions.jts.algorithm.CGAlgorithms cga
public static double FLATNESS
Constructor Detail |
public FConverter()
Method Detail |
public static FPoint2D coordinate2FPoint2D(com.vividsolutions.jts.geom.Coordinate coord)
coord
-
public static GeneralPathX toShape(com.vividsolutions.jts.geom.Geometry geometry) throws java.awt.geom.NoninvertibleTransformException
geometry
- Geometry a convertir.
java.awt.geom.NoninvertibleTransformException
java.lang.IllegalArgumentException
public static GeneralPathX transformToInts(GeneralPathX gp, java.awt.geom.AffineTransform at)
public static FShape transformToInts(IGeometry gp, java.awt.geom.AffineTransform at)
public static java.awt.geom.Rectangle2D convertEnvelopeToRectangle2D(com.vividsolutions.jts.geom.Envelope jtsR)
public static com.vividsolutions.jts.geom.Envelope convertRectangle2DtoEnvelope(java.awt.geom.Rectangle2D r)
public static IGeometry getExteriorPolygon(com.vividsolutions.jts.geom.Coordinate[] coordinates)
coordinates
-
public static boolean isCCW(java.awt.geom.Point2D[] points)
public static boolean isCCW(FPolygon2D pol)
public static IGeometry getHole(com.vividsolutions.jts.geom.Coordinate[] coordinates)
coordinates
-
public static java.awt.Shape getExteriorPolygon(GeneralPathX gp)
public static IGeometry getNotHolePolygon(FPolygon2D pol)
pol
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |