org.gvsig.fmap.geom.primitive.impl
Class EllipticArc2D

java.lang.Object
  extended by org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
      extended by org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D
          extended by org.gvsig.fmap.geom.primitive.impl.OrientableCurve2D
              extended by org.gvsig.fmap.geom.primitive.impl.DefaultCurve
                  extended by org.gvsig.fmap.geom.primitive.impl.Curve2D
                      extended by org.gvsig.fmap.geom.primitive.impl.EllipticArc2D
All Implemented Interfaces:
Shape, Serializable, Comparable, Geometry, Curve, EllipticArc, FShape, OrientableCurve, OrientablePrimitive, OrientableSurface, Primitive, Surface
Direct Known Subclasses:
EllipticArc2DZ

public class EllipticArc2D
extends Curve2D
implements EllipticArc

DOCUMENT ME!

Author:
Vicente Caballero Navarro
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES
 
Field Summary
 
Fields inherited from class org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D
gp
 
Fields inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
geometryType, geomManager, id, projection
 
Fields inherited from interface org.gvsig.fmap.geom.Geometry
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
 
Constructor Summary
EllipticArc2D(GeometryType geometryType)
          The constructor with the GeometryType like and argument is used by the GeometryType#create() to create the geometry
 
Method Summary
 double getAngExt()
           
 double getAngSt()
           
 Point getAxis1End()
          Returns the point where the first axis ends.
 Point getAxis1Start()
          Returns the point where the first axis starts.
 double getAxis2Dist()
           
 Handler[] getSelectHandlers()
          Returns the handlers used to select the geometries.
 int getShapeType()
          Gets the geometry type of this shape.
 Handler[] getStretchingHandlers()
          Returns the handlers they utilized to stretch the geometries.
 SurfaceAppearance getSurfaceAppearance()
          Gets surface appearance
 boolean intersects(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 setGeneralPath(GeneralPathX generalPathX)
          Sets all the coordinates of the curve
 void setPoints(Point axis1Start, Point axis1End, double semiAxis2Length, double angSt, double angExt)
          Sets the values to define a ellipticArc
 void setSurfaceAppearance(SurfaceAppearance app)
          Sets the appearance of the Surface
 void transform(AffineTransform at)
          DOCUMENT ME!
 
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.Curve2D
cloneFShape, setPoints
 
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D
addMoveToVertex, addVertex, addVertexes, closePrimitive, contains, contains, contains, contains, getBounds, getBounds2D, getCoordinateAt, getDimension, getEnvelope, getGeneralPath, getGeneralPathX, getNumVertices, getPathIterator, getPathIterator, getVertex, insertVertex, intersects, removeVertex, reProject, setCoordinateAt, setVertex
 
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
area, buffer, centroid, cloneGeometry, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInternalShape, getShape, getShape, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isSimple, moveGeom, overlaps, perimeter, rotateGeom, scaleGeom, toString, touches, transform, union, within
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive
addMoveToVertex, addVertex, addVertexes, closePrimitive, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setVertex
 
Methods inherited from interface org.gvsig.fmap.geom.Geometry
area, buffer, centroid, cloneGeometry, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, invokeOperation, invokeOperation, isSimple, overlaps, perimeter, reProject, touches, union, within
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, intersects
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

EllipticArc2D

public EllipticArc2D(GeometryType geometryType)
The constructor with the GeometryType like and argument is used by the GeometryType#create() to create the geometry

Parameters:
type - The geometry type
Method Detail

getAxis1Start

public Point getAxis1Start()
Description copied from interface: EllipticArc
Returns the point where the first axis starts.

Specified by:
getAxis1Start in interface EllipticArc
Returns:
The point where the first axis starts.

getAxis1End

public Point getAxis1End()
Description copied from interface: EllipticArc
Returns the point where the first axis ends.

Specified by:
getAxis1End in interface EllipticArc
Returns:
The point where the first axis ends.

getAxis2Dist

public double getAxis2Dist()
Specified by:
getAxis2Dist in interface EllipticArc

getAngSt

public double getAngSt()
Specified by:
getAngSt in interface EllipticArc

getAngExt

public double getAngExt()
Specified by:
getAngExt in interface EllipticArc

transform

public void transform(AffineTransform at)
Description copied from class: OrientablePrimitive2D
DOCUMENT ME!

Specified by:
transform in interface Geometry
Specified by:
transform in interface FShape
Overrides:
transform in class OrientablePrimitive2D
Parameters:
at - DOCUMENT ME!
See Also:
AffineTransform

getShapeType

public int getShapeType()
Description copied from interface: FShape
Gets the geometry type of this shape.

Specified by:
getShapeType in interface FShape
Overrides:
getShapeType in class Curve2D
Returns:
int the geometry type of this shape.

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 OrientablePrimitive2D
Returns:
Handlers the handlers used to stretch the geometries

getSelectHandlers

public Handler[] getSelectHandlers()
Description copied from interface: FShape
Returns the handlers used to select the geometries.

Specified by:
getSelectHandlers in interface FShape
Overrides:
getSelectHandlers in class OrientablePrimitive2D
Returns:
Handlers the handlers used to select the geometries

intersects

public boolean intersects(Rectangle2D r)
Description copied from class: OrientablePrimitive2D
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 Shape
Specified by:
intersects in interface Geometry
Overrides:
intersects in class OrientablePrimitive2D
Parameters:
r - Rect�ngulo.
Returns:
True si intersecta con el rectangulo que se pasa como par�metro.

setPoints

public void setPoints(Point axis1Start,
                      Point axis1End,
                      double semiAxis2Length,
                      double angSt,
                      double angExt)
Description copied from interface: EllipticArc
Sets the values to define a ellipticArc

Specified by:
setPoints in interface EllipticArc
Parameters:
axis1Start - The point where the first axis starts.
axis1End - The point where the first axis ends.

setGeneralPath

public void setGeneralPath(GeneralPathX generalPathX)
Description copied from interface: OrientablePrimitive
Sets all the coordinates of the curve

Specified by:
setGeneralPath in interface OrientablePrimitive
Overrides:
setGeneralPath in class OrientablePrimitive2D
Parameters:
generalPathX - The generalPath that contains all the coordinates

getSurfaceAppearance

public SurfaceAppearance getSurfaceAppearance()
Description copied from interface: Surface
Gets surface appearance

Specified by:
getSurfaceAppearance in interface Surface
Returns:
the surface appearance

setSurfaceAppearance

public void setSurfaceAppearance(SurfaceAppearance app)
Description copied from interface: Surface
Sets the appearance of the Surface

Specified by:
setSurfaceAppearance in interface Surface
Parameters:
app - The appearance of the surface


Copyright © 2004-2012 gvSIG. All Rights Reserved.