public class StripeHitTester extends Object
Constructor and Description |
---|
StripeHitTester(ITable table,
TableRenderingOrder tableRenderingOrder)
Create a new instance for a specific table instance that use the order specified by
tableRenderingOrder to
determine the order of the hit test results. |
Modifier and Type | Method and Description |
---|---|
IEnumerable<StripeSubregion> |
enumerateHits(IInputModeContext context,
PointD location,
INode node)
Return a collection of hits at
location . |
TableRenderingOrder |
getTableRenderingOrder()
Return the hit test order that is currently used by this instance.
|
public StripeHitTester(ITable table, TableRenderingOrder tableRenderingOrder)
tableRenderingOrder
to
determine the order of the hit test results.table
- The table to usetableRenderingOrder
- The hit test order. This determines the order in which stripes are returned by
enumerateHits(IInputModeContext, PointD, INode)
public final IEnumerable<StripeSubregion> enumerateHits(IInputModeContext context, PointD location, INode node)
location
.
This implementation returns the hits in the following order:
IRow
s or IColumn
s at the given location, in the order specified by the TableRenderingOrder
property.
StripeSubregionTypes.NEAR_BORDER
,
StripeSubregionTypes.FAR_BORDER
, StripeSubregionTypes.LEADING_HEADER
,
StripeSubregionTypes.TRAILING_HEADER
,StripeSubregionTypes.STRIPE
, e.g. a header hit is always
returned before a hit on the whole stripe.
context
- The input mode context to use.location
- The location in absolute coordinates.node
- The node where the table instance is currently bound to.StripeSubregion
s at location
public final TableRenderingOrder getTableRenderingOrder()