Package | com.yworks.graph.drawing |
Class | public class StripeHitTestIterator |
Inheritance | StripeHitTestIterator Object |
Method | Defined By | ||
---|---|---|---|
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. | StripeHitTestIterator | ||
iterateHits(context:ICanvasContext, x:Number, y:Number, node:INode, subregion:StripeSubregion = null):Iterator
Return an iterator over the hits at the given location. | StripeHitTestIterator |
StripeHitTestIterator | () | Constructor |
public function StripeHitTestIterator(table:ITable, 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.
table:ITable — The table to use.
| |
tableRenderingOrder:TableRenderingOrder — The drawing order.
|
iterateHits | () | method |
public function iterateHits(context:ICanvasContext, x:Number, y:Number, node:INode, subregion:StripeSubregion = null):Iterator
Return an iterator over the hits at the given 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.StripeSubregion.NEAR_BORDER
, StripeSubregion.FAR_BORDER
,
StripeSubregion.LEADING_HEADER
, StripeSubregion.TRAILING_HEADER
,
StripeSubregion.STRIPE
, e.g. a header hit is always returned before a hit
on the whole stripe.Parameters
context:ICanvasContext — The canvas context to use.
| |
x:Number — The x coordinate of the location in absolute coordinates.
| |
y:Number — The y coordinate of the location in absolute coordinates.
| |
node:INode — The node where the table instance is currently bound to.
| |
subregion:StripeSubregion (default = null ) — One or a combined subregion to which the hit tests are restricted.
Specifying only the subregions of interest can improve the performance considerably.
By default all subregions are tested.
|
Iterator — A collection of StripeSubregionDescriptor s at the given location.
|