org.gvsig.fmap.geom.operation.perpendicular
Class Perpendicular

java.lang.Object
  extended by org.gvsig.fmap.geom.operation.GeometryOperation
      extended by org.gvsig.fmap.geom.operation.perpendicular.Perpendicular

public class Perpendicular
extends GeometryOperation

Gets a couple of points that defines a line that is perpendicular to other line and intersects with a point.

Version:
$Id$
Author:
gvSIG Team

Field Summary
static int CODE
           
static String NAME
           
 
Fields inherited from class org.gvsig.fmap.geom.operation.GeometryOperation
OPERATION_CONTAINS_CODE, OPERATION_CONTAINS_NAME, OPERATION_INTERSECTS_CODE, OPERATION_INTERSECTS_NAME
 
Constructor Summary
Perpendicular()
           
 
Method Summary
 int getOperationIndex()
          Returns the constant value that identifies this operation and that was obtained upon registering it.
 Object invoke(Geometry geom, GeometryOperationContext ctx)
          Invokes this operation given the geometry and context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

CODE

public static final int CODE
Constructor Detail

Perpendicular

public Perpendicular()
Method Detail

invoke

public Object invoke(Geometry geom,
                     GeometryOperationContext ctx)
              throws GeometryOperationException
Description copied from class: GeometryOperation
Invokes this operation given the geometry and context

Specified by:
invoke in class GeometryOperation
Parameters:
geom - Geometry to which apply this operation
ctx - Parameter container
Returns:
Place-holder object that may contain any specific return value.
Throws:
GeometryOperationException - The implementation is responsible to throw this exception when needed.

getOperationIndex

public int getOperationIndex()
Description copied from class: GeometryOperation
Returns the constant value that identifies this operation and that was obtained upon registering it.

Specified by:
getOperationIndex in class GeometryOperation
Returns:
operation unique index


Copyright © 2004-2012 gvSIG. All Rights Reserved.