@Override public boolean isInThing(IBNAView view, ICoordinateMapper cm, ICoordinate location) { if (control != null) { Point local = location.getLocalPoint(); local.x += cm.getLocalOrigin().x; local.y += cm.getLocalOrigin().y; return control.getBounds().contains(local.x, local.y); } return false; }
protected Rectangle getBounds(C control, IBNAView view, ICoordinateMapper cm) { return cm.worldToLocal(t.getBoundingBox()); }