public interface IHitTestable
CanvasControl
,
ICanvasObjectDescriptor
,
ICanvasObject
Modifier and Type | Field and Description |
---|---|
static IHitTestable |
ALWAYS
An
IHitTestable that always returns true. |
static IHitTestable |
NEVER
An
IHitTestable that always returns false. |
Modifier and Type | Method and Description |
---|---|
static IHitTestable |
create(IHitTestableHandler handler)
Wrap a handler into an interface.
|
boolean |
isHit(IInputModeContext context,
PointD location)
Determines if something has been hit at the given coordinates in the world coordinate system.
|
static final IHitTestable ALWAYS
IHitTestable
that always returns true.static final IHitTestable NEVER
IHitTestable
that always returns false.static IHitTestable create(IHitTestableHandler handler)
boolean isHit(IInputModeContext context, PointD location)
Implementations should inspect the HitTestRadius
and
take the value into account when performing hit tests. This allows the user to hit elements even if the zoom level is
very small and allows for accurate hit tests at greater zoom levels.
context
- the context the hit test is performed inlocation
- the coordinates in world coordinate system