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

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

public class FArc2D
extends FPolyline2D

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
FArc2D(GeneralPathX gpx, java.awt.geom.Point2D i, java.awt.geom.Point2D c, java.awt.geom.Point2D e)
           
 
Method Summary
 FShape cloneFShape()
          Clona FShape.
 java.awt.geom.Point2D getCenter()
           
 java.awt.geom.Point2D getEnd()
           
 java.awt.geom.Point2D getInit()
           
 java.awt.geom.Point2D getMid()
           
 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

FArc2D

public FArc2D(GeneralPathX gpx,
              java.awt.geom.Point2D i,
              java.awt.geom.Point2D c,
              java.awt.geom.Point2D e)
Parameters:
gpx -
Method Detail

getInit

public java.awt.geom.Point2D getInit()

getEnd

public java.awt.geom.Point2D getEnd()

getCenter

public java.awt.geom.Point2D getCenter()

getMid

public java.awt.geom.Point2D getMid()

cloneFShape

public FShape cloneFShape()
Description copied from interface: FShape
Clona FShape.

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

transform

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

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 FPolyline2D
See Also:
com.iver.cit.gvsig.fmap.core.FShape#getShapeType()

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 FPolyline2D
Parameters:
r - Rectángulo.
Returns:
True si intersecta con el rectangulo que se pasa como parámetro.