GridHighlightHelper { double calculateColumnOffset(final int column) { final double offset = getRendererHelper().getColumnOffset(column); final double x = getGridWidget().getX() + offset; return -(x - getPaddingX()); } GridHighlightHelper(final GridLienzoPanel gridPanel,
                               final GridWidget gridWidget); void highlight(final int row,
                          final int column); void clearSelections(); void clearHighlight(); GridHighlightHelper withPaddingX(final double paddingX); GridHighlightHelper withPaddingY(final double paddingY); GridHighlightHelper withPinnedGrid();  }
@Test public void testCalculateColumnOffset() { final double widgetX = -67; final double paddingX = 12; final double expected = -(widgetX + columnOffset - paddingX); when(highlightHelper.getPaddingX()).thenReturn(paddingX); when(gridWidget.getX()).thenReturn(widgetX); final double actual = highlightHelper.calculateColumnOffset(column); assertEquals(expected, actual, 0.01d); }