@Before public void setup() { doReturn(gridRenderer).when(gridWidget).getRenderer(); doReturn(gridRendererHelper).when(gridWidget).getRendererHelper(); doReturn(ri).when(gridRendererHelper).getRenderingInformation(); doReturn(HEADER_HEIGHT).when(gridRenderer).getHeaderHeight(); doReturn(HEADER_ROW_HEIGHT).when(gridRenderer).getHeaderRowHeight(); doReturn(floatingBlockInformation).when(ri).getFloatingBlockInformation(); doReturn(0.0).when(floatingBlockInformation).getX(); doReturn(0.0).when(floatingBlockInformation).getWidth(); doReturn(mock(Viewport.class)).when(gridWidget).getViewport(); doReturn(new BaseGridData()).when(gridWidget).getModel(); }
@Before public void setup() { doReturn(gridRenderer).when(gridWidget).getRenderer(); doReturn(gridRendererHelper).when(gridWidget).getRendererHelper(); doReturn(ri).when(gridRendererHelper).getRenderingInformation(); doReturn(HEADER_HEIGHT).when(gridRenderer).getHeaderHeight(); doReturn(HEADER_ROW_HEIGHT).when(gridRenderer).getHeaderRowHeight(); doReturn(floatingBlockInformation).when(ri).getFloatingBlockInformation(); doReturn(0.0).when(floatingBlockInformation).getX(); doReturn(0.0).when(floatingBlockInformation).getWidth(); doReturn(mock(Viewport.class)).when(gridWidget).getViewport(); doReturn(new BaseGridData()).when(gridWidget).getModel(); }
@Before public void setup() { super.setup(); doReturn(gridRenderer).when(scenarioGridMock).getRenderer(); doReturn(gridRendererHelper).when(scenarioGridMock).getRendererHelper(); doReturn(ri).when(gridRendererHelper).getRenderingInformation(); doReturn(HEADER_HEIGHT).when(gridRenderer).getHeaderHeight(); doReturn(HEADER_ROW_HEIGHT).when(gridRenderer).getHeaderRowHeight(); doReturn(floatingBlockInformation).when(ri).getFloatingBlockInformation(); doReturn(0.0).when(floatingBlockInformation).getX(); doReturn(0.0).when(floatingBlockInformation).getWidth(); doReturn(mock(Viewport.class)).when(scenarioGridMock).getViewport(); when(scenarioGridMock.getModel()).thenReturn(scenarioGridModelMock); final ScenarioHeaderMetaData clickedScenarioHeaderMetadataMock = mock(ScenarioHeaderMetaData.class); scenarioGridColumnOne = mockGridColumn(100.0, Collections.singletonList(clickedScenarioHeaderMetadataMock), columnOneTitle, columnGroup); scenarioGridColumnTwo = mockGridColumn(100.0, Collections.singletonList(clickedScenarioHeaderMetadataMock), columnTwoTitle, columnGroup); gridColumns.add(scenarioGridColumnOne); gridColumns.add(scenarioGridColumnTwo); }
final double floatingWidth = floatingBlockInformation.getWidth();
final double floatingWidth = floatingBlockInformation.getWidth();
final double floatingWidth = floatingBlockInformation.getWidth(); final double clipMinX = gridWidget.getAbsoluteX() + floatingX + floatingWidth; final double clipMinY = gridWidget.getAbsoluteY();
final List<GridColumn<?>> floatingColumns = floatingBlockInformation.getColumns(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();
final double bodyX = bodyBlockInformation.getX(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();
final List<GridColumn<?>> floatingColumns = floatingBlockInformation.getColumns(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();
final double bodyX = bodyBlockInformation.getX(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();
final double bodyX = bodyBlockInformation.getX(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();
final double bodyX = bodyBlockInformation.getX(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();
final double floatingWidth = floatingBlockInformation.getWidth(); final double clipMinX = gridWidget.getAbsoluteX() + floatingX + floatingWidth; final double clipMinY = gridWidget.getAbsoluteY();
final double floatingWidth = floatingBlockInformation.getWidth();
final BaseGridRendererHelper.RenderingBlockInformation floatingBlockInformation = renderingInformation.getFloatingBlockInformation(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();
final double floatingWidth = floatingBlockInformation.getWidth();
final BaseGridRendererHelper.RenderingBlockInformation floatingBlockInformation = renderingInformation.getFloatingBlockInformation(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();
final BaseGridRendererHelper.RenderingBlockInformation floatingBlockInformation = renderingInformation.getFloatingBlockInformation(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();
final BaseGridRendererHelper.RenderingBlockInformation floatingBlockInformation = renderingInformation.getFloatingBlockInformation(); final double floatingX = floatingBlockInformation.getX(); final double floatingWidth = floatingBlockInformation.getWidth();