DroidDiagram Programmer's Guide
DiagramItem.hitTest Method
See Also
 






Returns the diagram item that contains the specified point.

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

 Syntax

Java  Copy Code

public DiagramItem hitTest (
    PointF point,
    float threshold,
    boolean onlyNodes,
    boolean onlyInteractive
)

 Parameters

point

PointF value specifying the logical coordinates of a diagram point.

threshold

Specifies the size of the area around the item outlines where the point is still considered inside the item.

onlyNodes

true to exclude child links from the search.

onlyInteractive

true to exclude locked items from the search.

 Return Value

The item that contains the specified point.

 Remarks

This method performs recursive search if items contain child items.

 See Also

DiagramItem Members
DiagramItem Class
com.mindfusion.diagramming Namespace
containsPoint Method