@Test public void testSetupGridWidgetPanControl() { verify(mousePanMediator).setTransformMediator(transformMediatorArgumentCaptor.capture()); final TransformMediator transformMediator = transformMediatorArgumentCaptor.getValue(); verify(mousePanMediator).setBatchDraw(true); verify(gridLayer).setDefaultTransformMediator(eq(transformMediator)); verify(viewportMediators).push(eq(mousePanMediator)); }
protected void setupGridWidgetPanControl() { final TransformMediator defaultTransformMediator = new BoundaryTransformMediator(expressionContainerGrid); mousePanMediator.setTransformMediator(defaultTransformMediator); mousePanMediator.setBatchDraw(true); gridLayer.setDefaultTransformMediator(defaultTransformMediator); gridPanel.getViewport().getMediators().push(mousePanMediator); }
ExpressionEditorViewImpl implements ExpressionEditorView { protected void setupGridWidgetPanControl() { final TransformMediator defaultTransformMediator = new BoundaryTransformMediator(expressionContainerGrid); mousePanMediator.setTransformMediator(defaultTransformMediator); mousePanMediator.setBatchDraw(true); gridLayer.setDefaultTransformMediator(defaultTransformMediator); gridPanel.getViewport().getMediators().push(mousePanMediator); } }
ExpressionEditorViewImpl implements ExpressionEditorView { protected void setupGridWidgetPanControl() { final TransformMediator defaultTransformMediator = new BoundaryTransformMediator(expressionContainerGrid); mousePanMediator.setTransformMediator(defaultTransformMediator); mousePanMediator.setBatchDraw(true); gridLayer.setDefaultTransformMediator(defaultTransformMediator); gridPanel.getViewport().getMediators().push(mousePanMediator); } ExpressionEditorViewImpl(); @Inject  ExpressionEditorViewImpl(final Anchor returnToLink,
                                    final Span expressionName,
                                    final Span expressionType,
                                    final @DMNEditor DMNGridPanelContainer gridPanelContainer,
                                    final TranslationService translationService,
                                    final ListSelectorView.Presenter listSelector,
                                    final SessionManager sessionManager,
                                    final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                    final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                    final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                    final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
                                    final Event<DomainObjectSelectionEvent> domainObjectSelectionEvent); }
ExpressionEditorViewImpl implements ExpressionEditorView { protected void setupGridWidgetPanControl() { final TransformMediator defaultTransformMediator = new BoundaryTransformMediator(expressionContainerGrid); mousePanMediator.setTransformMediator(defaultTransformMediator); mousePanMediator.setBatchDraw(true); gridLayer.setDefaultTransformMediator(defaultTransformMediator); gridPanel.getViewport().getMediators().push(mousePanMediator); } ExpressionEditorViewImpl(); @Inject  ExpressionEditorViewImpl(final Anchor returnToLink,
                                    final Span expressionName,
                                    final Span expressionType,
                                    final @DMNEditor DMNGridPanelContainer gridPanelContainer,
                                    final TranslationService translationService,
                                    final ListSelectorView.Presenter listSelector,
                                    final SessionManager sessionManager,
                                    final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                    final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                    final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                    final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
                                    final Event<DomainObjectSelectionEvent> domainObjectSelectionEvent); @Override void init(final ExpressionEditorView.Presenter presenter); @Override void bind(final DMNSession session); @Override void setReturnToLinkText(final String text); @Override void setExpression(final String nodeUUID,
                              final HasExpression hasExpression,
                              final Optional<HasName> hasName,
                              final boolean isOnlyVisualChangeAllowed); ExpressionContainerGrid getExpressionContainerGrid(); @Override void setExpressionNameText(final Optional<HasName> hasName); @Override void setExpressionTypeText(final Optional<Expression> expression); @Override void onResize(); @Override void refresh(); @Override void setFocus(); }
ExpressionEditorViewImpl implements ExpressionEditorView { protected void setupGridWidgetPanControl() { final TransformMediator defaultTransformMediator = new BoundaryTransformMediator(expressionContainerGrid); mousePanMediator.setTransformMediator(defaultTransformMediator); mousePanMediator.setBatchDraw(true); gridLayer.setDefaultTransformMediator(defaultTransformMediator); gridPanel.getViewport().getMediators().push(mousePanMediator); } ExpressionEditorViewImpl(); @Inject  ExpressionEditorViewImpl(final Anchor returnToLink,
                                    final Span expressionName,
                                    final Span expressionType,
                                    final @DMNEditor DMNGridPanelContainer gridPanelContainer,
                                    final TranslationService translationService,
                                    final ListSelectorView.Presenter listSelector,
                                    final SessionManager sessionManager,
                                    final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                    final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                    final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                    final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
                                    final Event<DomainObjectSelectionEvent> domainObjectSelectionEvent); @Override void init(final ExpressionEditorView.Presenter presenter); @Override void bind(final DMNSession session); @Override void setReturnToLinkText(final String text); @Override void setExpression(final String nodeUUID,
                              final HasExpression hasExpression,
                              final Optional<HasName> hasName,
                              final boolean isOnlyVisualChangeAllowed); ExpressionContainerGrid getExpressionContainerGrid(); @Override void setExpressionNameText(final Optional<HasName> hasName); @Override void setExpressionTypeText(final Optional<Expression> expression); @Override void onResize(); @Override void refresh(); @Override void setFocus();  }