I

ILassoTestable

Interface that is used to test whether a rendered item is deemed to be inside a lasso selection path.
Inheritance Hierarchy

Members

No filters for this type

Methods

Returns true if the corresponding item is considered to intersect the given path.

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.

abstract

Parameters

context: IInputModeContext
the current input mode context
lassoPath: GeneralPath
the path describing the lasso selection bounds

Return Value

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

static

Parameters

isInPath: function(IInputModeContext, GeneralPath): boolean

Return Value

ILassoTestable
Creates an implementation of the ILassoTestable interface that tests if the orientedRectangle intersects the area of the lasso path.
static

Parameters

orientedRectangle: IOrientedRectangle
The oriented rectangle to check.

Return Value

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

Parameters

point: IPoint
The point to check.

Return Value

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

Parameters

rectangle: IRectangle
The rectangle to check.

Return Value

ILassoTestable
An implementation of ILassoTestable for the rectangle.