protected class TooltipDisplayer implements MouseMotionListener{
@Override
public void mouseMoved(final MouseEvent e) {
boolean again = true;
ToolTipable tooltipable;
final IPoint pt = LCanvas.this.convertToOrigin(ShapeFactory.createPoint(e.getX(), e.getY()));
final Point2D pos = LCanvas.this.getZoomedPoint(pt.getX(), pt.getY());
final double x = pos.getX();
final double y = pos.getY();
for(int i=0, size=tooltipableView.size(); i<size && again; i++) {
tooltipable = tooltipableView.get(i);
if(tooltipable.isToolTipVisible(x, y)) {
final String text = tooltipable.getToolTip();
setToolTipText(text==null || text.isEmpty() ? null : text);
again = false;
}
}