//
// Now check if (x,y) hit the overview axis
//
OverviewAxisPanel oaPanel = plot.getOverviewAxisPanel();
if (oaPanel != null && oaPanel.getLayer() != null) {
Bounds layerBounds = oaPanel.getLayer().getBounds();
Bounds oaPanelBounds = oaPanel.getBounds();
double viewOffsetX = layerBounds.x + oaPanel.getLayerOffsetX();
double viewOffsetY = layerBounds.y + oaPanel.getLayerOffsetY();
Bounds oaPanelAbsBounds = new Bounds(viewOffsetX, viewOffsetY,
oaPanelBounds.width, oaPanelBounds.height);
if (oaPanelAbsBounds.inside(x, y)) {
return oaPanel.getValueAxis();
}
}
return null;
}