es.prodevelop.gvsig.mobile.fmap.core
Class FMultiPoint2D

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.fmap.core.FMultiPoint2D
All Implemented Interfaces:
IGeometry, java.io.Serializable, java.awt.Shape
Direct Known Subclasses:
FMultipoint3D

public class FMultiPoint2D
extends java.lang.Object
implements IGeometry

Multipunto 2D.

Author:
Vicente Caballero Navarro
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface es.prodevelop.gvsig.mobile.fmap.core.IGeometry
BEST, E, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
 
Constructor Summary
FMultiPoint2D(double[] x, double[] y)
          Crea un nuevo MultiPoint2D.
FMultiPoint2D(FPoint2D[] points)
           
 
Method Summary
 IGeometry cloneGeometry()
          Clona la Geometría.
 boolean contains(double x, double y)
           
 boolean contains(double x, double y, double w, double h)
           
 boolean contains(java.awt.geom.Point2D p)
           
 boolean contains(java.awt.geom.Rectangle2D r)
           
 void draw(java.awt.Graphics2D g, ViewPort vp, FSymbol symbol, java.awt.geom.AffineTransform at)
          Dibuja la geometría sobre el Graphics2D que se pasa como parámetro.
 void drawInts(java.awt.Graphics2D g, ViewPort vp, FSymbol symbol, java.awt.geom.AffineTransform at)
          You can use this function if you are going to draw into a bitmap.
 boolean fastIntersects(double x, double y, double w, double h)
           
 java.awt.Rectangle getBounds()
           
 java.awt.geom.Rectangle2D getBounds2D()
          Devuelve el Rectángulo que ocupa la geometría.
 int getGeometryType()
          Obtiene el tipo de la geometría
 Handler[] getHandlers(int type)
          It returns the handlers of the geomety, these they can be of two types is straightening and of seleccion.
 java.awt.Shape getInternalShape()
          Useful to have the real shape behind the scenes.
 int getNumPoints()
           
 java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
          Devuelve el GeneralPathXIterator con la información relativa a la geometría.
 java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at, double flatness)
           
 FPoint2D getPoint(int i)
           
 boolean intersects(double x, double y, double w, double h)
           
 boolean intersects(java.awt.geom.Rectangle2D r)
          Devuelve true si la geometría intersecta con el rectángulo que se pasa como parámetro.
 void reProject(ICoordTrans ct)
          Reproyecta la geometría a partir del transformador de coordenadas.
 com.vividsolutions.jts.geom.Geometry toJTSGeometry()
           
 void transform(java.awt.geom.AffineTransform at)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FMultiPoint2D

public FMultiPoint2D(double[] x,
                     double[] y)
Crea un nuevo MultiPoint2D.

Parameters:
x -
y -

FMultiPoint2D

public FMultiPoint2D(FPoint2D[] points)
Method Detail

draw

public void draw(java.awt.Graphics2D g,
                 ViewPort vp,
                 FSymbol symbol,
                 java.awt.geom.AffineTransform at)
Description copied from interface: IGeometry
Dibuja la geometría sobre el Graphics2D que se pasa como parámetro.

Specified by:
draw in interface IGeometry
Parameters:
g - Graphics2D.
vp - ViewPort.
symbol - Símbolo.
See Also:
com.iver.cit.gvsig.fmap.core.IGeometry#draw(java.awt.Graphics2D, ViewPort, FStyle2D)

toJTSGeometry

public com.vividsolutions.jts.geom.Geometry toJTSGeometry()
See Also:
com.iver.cit.gvsig.fmap.core.IGeometry#toJTSGeometry()

intersects

public boolean intersects(java.awt.geom.Rectangle2D r)
Description copied from interface: IGeometry
Devuelve true si la geometría intersecta con el rectángulo que se pasa como parámetro.

Specified by:
intersects in interface IGeometry
Parameters:
r - Rectángulo.
Returns:
True, si intersecta.
See Also:
com.iver.cit.gvsig.fmap.core.IGeometry#createLabels(int, boolean)

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()
Description copied from interface: IGeometry
Devuelve el Rectángulo que ocupa la geometría.

Specified by:
getBounds2D in interface IGeometry
Returns:
Rectángulo.

getGeometryType

public int getGeometryType()
Description copied from interface: IGeometry
Obtiene el tipo de la geometría

Specified by:
getGeometryType in interface IGeometry
Returns:
una de las constantes de FShape: POINT, LINE, POLIGON
See Also:
com.iver.cit.gvsig.fmap.core.IGeometry#getGeometryType()

cloneGeometry

public IGeometry cloneGeometry()
Description copied from interface: IGeometry
Clona la Geometría.

Specified by:
cloneGeometry in interface IGeometry
Returns:
Geometría clonada.

reProject

public void reProject(ICoordTrans ct)
Description copied from interface: IGeometry
Reproyecta la geometría a partir del transformador de coordenadas.

Specified by:
reProject in interface IGeometry
Parameters:
ct - Coordinate Transformer.

getNumPoints

public int getNumPoints()

getPoint

public FPoint2D getPoint(int i)

getPathIterator

public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
Description copied from interface: IGeometry
Devuelve el GeneralPathXIterator con la información relativa a la geometría.

Specified by:
getPathIterator in interface IGeometry
Parameters:
at - TODO
Returns:
PathIterator.
See Also:
com.iver.cit.gvsig.fmap.core.IGeometry#getPathIterator(AffineTransform)

fastIntersects

public boolean fastIntersects(double x,
                              double y,
                              double w,
                              double h)

drawInts

public void drawInts(java.awt.Graphics2D g,
                     ViewPort vp,
                     FSymbol symbol,
                     java.awt.geom.AffineTransform at)
Description copied from interface: IGeometry
You can use this function if you are going to draw into a bitmap. (With ints coords). It will do a decimation, drawing a shape with less coords (faster draw)

Specified by:
drawInts in interface IGeometry
Parameters:
g -
vp -
symbol -

getHandlers

public Handler[] getHandlers(int type)
Description copied from interface: IGeometry
It returns the handlers of the geomety, these they can be of two types is straightening and of seleccion.

Specified by:
getHandlers in interface IGeometry
Parameters:
type - Type of handlers
Returns:
Handlers.

transform

public void transform(java.awt.geom.AffineTransform at)
Specified by:
transform in interface IGeometry

getPathIterator

public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
                                                  double flatness)
Specified by:
getPathIterator in interface IGeometry

contains

public boolean contains(double x,
                        double y)
Specified by:
contains in interface java.awt.Shape

contains

public boolean contains(double x,
                        double y,
                        double w,
                        double h)
Specified by:
contains in interface java.awt.Shape

intersects

public boolean intersects(double x,
                          double y,
                          double w,
                          double h)
Specified by:
intersects in interface java.awt.Shape

getBounds

public java.awt.Rectangle getBounds()
Specified by:
getBounds in interface java.awt.Shape

contains

public boolean contains(java.awt.geom.Point2D p)
Specified by:
contains in interface java.awt.Shape

contains

public boolean contains(java.awt.geom.Rectangle2D r)
Specified by:
contains in interface java.awt.Shape

getInternalShape

public java.awt.Shape getInternalShape()
Description copied from interface: IGeometry
Useful to have the real shape behind the scenes. May be uses to edit it knowing it it is a Circle, Ellipse, etc

Specified by:
getInternalShape in interface IGeometry
Returns: