DroidDiagram Programmer's Guide
Diagram.getNearestNode Method
See Also
 






Returns the nearest node whose bounding rectangle is intersected by the circle, defined by origin point and radius.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public DiagramNode getNearestNode (
    Point2D point,
    float maxDistance,
    DiagramNode ignored
)

 Parameters

point

A Point2D object specifying where to look for nodes.

maxDistance

The maximum distance from point where to look for nodes.

ignored

Exclude this node from the search.

 Return Value

The DiagramNode closest to point if one is found within the specified distance.

 Remarks

The last argument is useful when calling this method from nodeCreated and nodeModified handlers and the affected node should not be included in the search.

 See Also

Diagram Members
Diagram Class
com.mindfusion.diagramming Namespace