@Test public void internalRenderCell() { assertNull(scenarioGridColumnRenderer.internalRenderCell(null, null, null, null)); assertNull(scenarioGridColumnRenderer.internalRenderCell(scenarioGridCell, null, null, null)); when(scenarioGridCell.getValue()).thenReturn(mock(GridCellValue.class)); assertNull(scenarioGridColumnRenderer.internalRenderCell(scenarioGridCell, null, null, null)); }
@Override protected Group internalRenderCell(final GridCell<String> cell, final GridBodyCellRenderContext context, final Text text, final String value) { if (value == null) { return null; } final GridRenderer renderer = context.getRenderer(); final ScenarioGridRendererTheme theme = (ScenarioGridRendererTheme) renderer.getTheme(); final Group g = new Group(); text.setText(value); text.setListening(false); text.setX(context.getCellWidth() / 2); text.setY(context.getCellHeight() / 2); applyBackgroundColor((ScenarioGridCell)cell, context, g, theme); g.add(text); return g; }
ScenarioGridColumnRenderer extends StringColumnRenderer { @Override protected Group internalRenderCell(final GridCell<String> cell, final GridBodyCellRenderContext context, final Text text, final String value) { if (value == null) { return null; } final GridRenderer renderer = context.getRenderer(); final ScenarioGridRendererTheme theme = (ScenarioGridRendererTheme) renderer.getTheme(); final Group g = new Group(); text.setText(value); text.setListening(false); text.setX(context.getCellWidth() / 2); text.setY(context.getCellHeight() / 2); applyBackgroundColor((ScenarioGridCell)cell, context, g, theme); g.add(text); return g; } }
ScenarioGridColumnRenderer extends StringColumnRenderer { @Override protected Group internalRenderCell(final GridCell<String> cell, final GridBodyCellRenderContext context, final Text text, final String value) { if (value == null) { return null; } final GridRenderer renderer = context.getRenderer(); final ScenarioGridRendererTheme theme = (ScenarioGridRendererTheme) renderer.getTheme(); final Group g = new Group(); text.setText(value); text.setListening(false); text.setX(context.getCellWidth() / 2); text.setY(context.getCellHeight() / 2); applyBackgroundColor((ScenarioGridCell)cell, context, g, theme); g.add(text); return g; }  }
ScenarioGridColumnRenderer extends StringColumnRenderer { @Override protected Group internalRenderCell(final GridCell<String> cell, final GridBodyCellRenderContext context, final Text text, final String value) { if (value == null) { return null; } final GridRenderer renderer = context.getRenderer(); final ScenarioGridRendererTheme theme = (ScenarioGridRendererTheme) renderer.getTheme(); final Group g = new Group(); text.setText(value); text.setListening(false); text.setX(context.getCellWidth() / 2); text.setY(context.getCellHeight() / 2); applyBackgroundColor((ScenarioGridCell)cell, context, g, theme); g.add(text); return g; }  @Override Group renderCell(final GridCell<String> cell,
                            final GridBodyCellRenderContext context); @Override List<GridRenderer.RendererCommand> renderColumn(GridColumn<?> column, GridBodyColumnRenderContext context, BaseGridRendererHelper rendererHelper, BaseGridRendererHelper.RenderingInformation renderingInformation, BiFunction<Boolean, GridColumn<?>, Boolean> columnRenderingConstraint); }
ScenarioGridColumnRenderer extends StringColumnRenderer { @Override protected Group internalRenderCell(final GridCell<String> cell, final GridBodyCellRenderContext context, final Text text, final String value) { if (value == null) { return null; } final GridRenderer renderer = context.getRenderer(); final ScenarioGridRendererTheme theme = (ScenarioGridRendererTheme) renderer.getTheme(); final Group g = new Group(); text.setText(value); text.setListening(false); text.setX(context.getCellWidth() / 2); text.setY(context.getCellHeight() / 2); applyBackgroundColor((ScenarioGridCell)cell, context, g, theme); g.add(text); return g; }  @Override Group renderCell(final GridCell<String> cell,
                            final GridBodyCellRenderContext context); @Override List<GridRenderer.RendererCommand> renderColumn(GridColumn<?> column, GridBodyColumnRenderContext context, BaseGridRendererHelper rendererHelper, BaseGridRendererHelper.RenderingInformation renderingInformation, BiFunction<Boolean, GridColumn<?>, Boolean> columnRenderingConstraint);  }