*/
protected RenderElement getBestElementNear(final Point documentPoint) {
final Set<String> ids = this.renderElements.keySet();
double distance = Double.MAX_VALUE;
RenderElement bestGuess = null;
for (final String id : ids) {
final RenderElement renderElement = this.renderElements.get(id);
// Currently we only care for text elements
if (!(renderElement instanceof TextualRenderElement)) {
continue;
}
final Rectangle geometry = renderElement.getGeometry(CoordinatesType.DOCUMENT_BASED);
// Elements too large dont give enough information for interesting points ... We alo
// dont care about the width, as we currently want to displace y-wise only ...
// TODO: A bit harsh this limit ...
if (geometry.height > 30) {