Interface that is used to test whether a rendered item is deemed to be inside a lasso selection path.
Type Details
- yFiles module
- view
Methods
Returns true
if the corresponding item is considered to intersect the given path.
Remarks
This method may return false
if the item cannot be selected using a lasso selection or optionally if the item is only partially contained within the path.
Implementations should respect the hitTestRadius if lasso selections should behave differently on different zoom levels.
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- the current input mode context
- lassoPath - GeneralPath
- the path describing the lasso selection bounds
Returns
- ↪boolean
true
if the item is considered to be captured by the lasso
Constants
An implementation that always yields true
.
An implementation that always yields false
.
Static Methods
Creates an implementation of the ILassoTestable interface that tests if the orientedRectangle
intersects the area of the lasso path.
Parameters
A map of options to pass to the method.
- orientedRectangle - IOrientedRectangle
- The oriented rectangle to check.
Returns
- ↪ILassoTestable
- An implementation of ILassoTestable for the oriented rectangle.
Creates an implementation of the ILassoTestable interface that tests if the point
is contained in the lasso path.
Parameters
A map of options to pass to the method.
- point - IPoint
- The point to check.
Returns
- ↪ILassoTestable
- An implementation of ILassoTestable for the point.
Creates an implementation of the ILassoTestable interface that tests if the rectangle
intersects the area of the lasso path.
Parameters
A map of options to pass to the method.
- rectangle - IRectangle
- The rectangle to check.
Returns
- ↪ILassoTestable
- An implementation of ILassoTestable for the rectangle.