Skip to content
Snippets Groups Projects
Commit ca354d3c authored by cramakri's avatar cramakri
Browse files

LMS-2438 Improve hiding of tooltips in play layout view.

SVN: 22494
parent 36dff9ab
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,7 @@ public class PlateLayouter
public void updateTooltip(int rowIx, int colIx, String tooltipOrNull)
{
hideAllToolTipsExcept(rowIx, colIx);
Component wellComponent = getWellComponent(rowIx, colIx);
if (tooltipOrNull != null)
{
......@@ -165,7 +166,7 @@ public class PlateLayouter
wellComponent.setToolTip(preparedText);
} else
{
wellComponent.removeToolTip();
wellComponent.hideToolTip();
}
}
......@@ -197,6 +198,24 @@ public class PlateLayouter
Component wellComponent = renderedWells[rowIx][colIx];
return wellComponent;
}
private void hideAllToolTipsExcept(int rowIx, int colIx)
{
for (int row = 0; row < renderedWells.length; ++row)
{
for (int col = 0; col < renderedWells[row].length; ++col)
{
if (row == rowIx && col == colIx)
{
// Do not do anything
} else
{
renderedWells[row][col].hideToolTip();
}
}
}
}
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment