net.refractions.udig.tools.edit.support
Class ClosestEdge

java.lang.Object
  extended by net.refractions.udig.tools.edit.support.ClosestEdge

public class ClosestEdge
extends java.lang.Object

Describes the relationship between an arbitrary point to an edge in a EditGeom

Since:
1.1.0
Author:
jones

Constructor Summary
ClosestEdge(double distanceToEdge, int indexOfPrevious, Point pointOnLine, PrimitiveShape part)
           
 
Method Summary
 Coordinate getAddedCoord()
           
 double getDistanceToEdge()
           
 EditGeom getGeom()
           
 int getIndexOfPrevious()
           
 PrimitiveShape getPart()
           
 Point getPointOnLine()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClosestEdge

public ClosestEdge(double distanceToEdge,
                   int indexOfPrevious,
                   Point pointOnLine,
                   PrimitiveShape part)
Method Detail

getDistanceToEdge

public double getDistanceToEdge()
Returns:
Returns the distanceToEdge.

getIndexOfPrevious

public int getIndexOfPrevious()
Returns:
Returns the indexOfPrevious.

getPart

public PrimitiveShape getPart()
Returns:
Returns the part.

getPointOnLine

public Point getPointOnLine()
Returns:
Returns the pointOnLine.

getAddedCoord

public Coordinate getAddedCoord()
Returns:
Returns the coordinate the will/has been added.

getGeom

public EditGeom getGeom()
Returns:
Returns the shape.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object