Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

com.smartgwt.client.widgets.drawing.DrawItem.isInB ounds(int, int)

$
0
0
Doesn't always return the correct result:

Code:

System.out.println(xy[0] + ":" + xy[1] + ", " + Arrays.toString(item.getBoundingBox()) + ", " + item.isInBounds(xy[0], xy[1]));
Output
Code:

242:316, [156, 222, 156, 222], false
242:316, [156, 222, 245, 301], false
242:316, [156, 222, 348, 429], true
242:316, [156, 222, 399, 499], true
242:316, [156, 222, 400, 501], true
242:316, [376, 420, 185, 258], false //should be true 376>242>185  && 420>316>258
242:316, [376, 420, 183, 255], false


Viewing all articles
Browse latest Browse all 4756

Trending Articles