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;