MindFusion.Java Package Programmer's Guide
ContainerNode.hitTest Method
See Also
 






DiagramItem.hitTest override.

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

 Syntax

Java  Copy Code

public DiagramItem hitTest (
    Point2D point,
    float threshold,
    boolean onlyNodes,
    boolean onlyInteractive,
    boolean includeHandles,
    boolean includeLabels
)

 Parameters

point

Point2D 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.

includeHandles

true to also consider adjustment handle locations (possibly outside of item's bounds).

includeLabels

true to also consider item label locations (possibly outside of item's bounds).

 Return Value

The item that contains the specified point.

 Remarks

This method performs recursive search if items contain child items.

 See Also

ContainerNode Members
ContainerNode Class
com.mindfusion.diagramming Namespace