Search
DiagramItem.containsPoint Method (Point2D, float)
See Also
 

Determines whether this item contains the specified point.

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

 Syntax

Java  Copy Code

public abstract boolean containsPoint (
    Point2D point,
    float threshold
)

 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.

 Return Value

true it this item contains the specified point; otherwise, false.

 Remarks

This method is used during hit-testing to determine if the pointer is inside an item.

 See Also