public interface IMarqueeTestable
Modifier and Type | Field and Description |
---|---|
static IMarqueeTestable |
ALWAYS
An implementation that always yields
true . |
static IMarqueeTestable |
NEVER
An implementation that always yields
false . |
Modifier and Type | Method and Description |
---|---|
boolean |
isInBox(IInputModeContext context,
RectD rectangle)
This callback returns
true if the corresponding item is considered to intersect the given rectangular box. |
static final IMarqueeTestable ALWAYS
true
.static final IMarqueeTestable NEVER
false
.boolean isInBox(IInputModeContext context, RectD rectangle)
true
if the corresponding item is considered to intersect the given rectangular box.
This method may return false
if the item cannot be selected using a selection marquee or optionally if the item
is only partially contained within the box.
Implementations should respect the HitTestRadius
if
marquee selections should behave differently on different zoom levels.
context
- the current input mode contextrectangle
- the box describing the marquee's boundstrue
if the item is considered to be captured by the marquee