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

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.fmap.core.FPolyline2D
      extended byes.prodevelop.gvsig.mobile.fmap.core.FPolygon2D
          extended byes.prodevelop.gvsig.mobile.fmap.core.FCircle2D
All Implemented Interfaces:
FShape, java.io.Serializable, java.awt.Shape

public class FCircle2D
extends FPolygon2D

Author:
Vicente Caballero Navarro
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface es.prodevelop.gvsig.mobile.fmap.core.FShape
ARC, CIRCLE, ELLIPSE, LINE, MULTI, MULTIPOINT, NULL, POINT, POLYGON, TEXT, Z
 
Constructor Summary
FCircle2D(GeneralPathX gpx, java.awt.geom.Point2D c, double r)
           
 
Method Summary
 FShape cloneFShape()
          Clona FPolygon2D.
 java.awt.geom.Point2D getCenter()
           
 double getRadio()
           
 Handler[] getSelectHandlers()
          Returns the hanlers they utilized to select the geometries.
 int getShapeType()
          Obtiene el tipo de shape que contiene.
 Handler[] getStretchingHandlers()
          Returns the handlers they utilized to stretch the geometries.
 boolean intersects(java.awt.geom.Rectangle2D r)
          El método intersects de java.awt.Shape que define la intersección entre una polilínea y un Rectangle2D considera la polilínea como un Shape genérico y se producen errores en la selección de polilíneas.
 void transform(java.awt.geom.AffineTransform at)
           
 
Methods inherited from class es.prodevelop.gvsig.mobile.fmap.core.FPolyline2D
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, reProject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FCircle2D

public FCircle2D(GeneralPathX gpx,
                 java.awt.geom.Point2D c,
                 double r)
Parameters:
gpx -
Method Detail

getCenter

public java.awt.geom.Point2D getCenter()

getRadio

public double getRadio()

cloneFShape

public FShape cloneFShape()
Description copied from class: FPolygon2D
Clona FPolygon2D.

Specified by:
cloneFShape in interface FShape
Overrides:
cloneFShape in class FPolygon2D
Returns:
FShape clonado.

getShapeType

public int getShapeType()
Description copied from interface: FShape
Obtiene el tipo de shape que contiene. Puede ser una de las constantes POINT, LINE o POLYGON

Specified by:
getShapeType in interface FShape
Overrides:
getShapeType in class FPolygon2D
See Also:
com.iver.cit.gvsig.fmap.core.FShape#getShapeType()

transform

public void transform(java.awt.geom.AffineTransform at)
Specified by:
transform in interface FShape
Overrides:
transform in class FPolyline2D
Parameters:
at -

getStretchingHandlers

public Handler[] getStretchingHandlers()
Description copied from interface: FShape
Returns the handlers they utilized to stretch the geometries.

Specified by:
getStretchingHandlers in interface FShape
Overrides:
getStretchingHandlers in class FPolyline2D

getSelectHandlers

public Handler[] getSelectHandlers()
Description copied from interface: FShape
Returns the hanlers they utilized to select the geometries.

Specified by:
getSelectHandlers in interface FShape
Overrides:
getSelectHandlers in class FPolyline2D

intersects

public boolean intersects(java.awt.geom.Rectangle2D r)
Description copied from class: FPolyline2D
El método intersects de java.awt.Shape que define la intersección entre una polilínea y un Rectangle2D considera la polilínea como un Shape genérico y se producen errores en la selección de polilíneas. Por este motivo se ha modificado este método intersect() de FPolyline2D para que realize la intersección estricta entre el Rectangle2D y la polilínea en cuestión. El precio es un incremento de tiempo máximo del 50%.

Specified by:
intersects in interface FShape
Overrides:
intersects in class FPolygon2D