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

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.fmap.core.FNullGeometry
All Implemented Interfaces:
IGeometry, java.io.Serializable, java.awt.Shape

public class FNullGeometry
extends java.lang.Object
implements IGeometry

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
FNullGeometry()
           
 
Method Summary
 IGeometry cloneGeometry()
          Clona la Geometría.
 boolean contains(double arg0, double arg1)
           
 boolean contains(double arg0, double arg1, double arg2, double arg3)
           
 boolean contains(java.awt.geom.Point2D arg0)
           
 boolean contains(java.awt.geom.Rectangle2D arg0)
           
 void draw(java.awt.Graphics2D g, ViewPort vp, FSymbol symbol)
           
 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)
           
 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.
 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)
           
 boolean intersects(double arg0, double arg1, double arg2, double arg3)
           
 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()
           
 byte[] toWKB()
           
 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

FNullGeometry

public FNullGeometry()
Method Detail

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()

draw

public void draw(java.awt.Graphics2D g,
                 ViewPort vp,
                 FSymbol symbol)

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.

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)

toWKB

public byte[] toWKB()
             throws java.io.IOException
Throws:
java.io.IOException
See Also:
com.iver.cit.gvsig.fmap.core.IGeometry#toWKB()

drawInts

public void drawInts(java.awt.Graphics2D g,
                     ViewPort vp,
                     FSymbol 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 arg0,
                        double arg1)
Specified by:
contains in interface java.awt.Shape

contains

public boolean contains(double arg0,
                        double arg1,
                        double arg2,
                        double arg3)
Specified by:
contains in interface java.awt.Shape

intersects

public boolean intersects(double arg0,
                          double arg1,
                          double arg2,
                          double arg3)
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 arg0)
Specified by:
contains in interface java.awt.Shape

contains

public boolean contains(java.awt.geom.Rectangle2D arg0)
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:

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.

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 -