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

MouseMoveEvent and Legend rectangle

$
0
0
Is there a way to check if a MouseMoveEvent's coordinates are in the Legend rectangle?

For example, something like...

[CODE]
addMouseMoveHandler(new MouseMoveHandler() {
@Override
public void onMouseMove(MouseMoveEvent event) {
if (legendDrawRect.isInBounds(event.getX(), event.getY())) {
// DO SOMETHING
}
}
});
[\CODE]

Thanks

SmartClient Version: v9.1p_2014-08-19/Pro Deployment (built 2014-08-19)

Viewing all articles
Browse latest Browse all 4756

Trending Articles