@Test public void testNewConnectorControl() { assertEquals(connectorControl, tested.newConnectorControl(wiresConnector, wiresManager)); verify(connectorControl).setPointHandleDecorator(any(StunnerPointHandleDecorator.class)); }
@Override public WiresConnectorControl newConnectorControl(final WiresConnector connector, final WiresManager wiresManager) { final WiresConnectorControlImpl wiresConnectorControl = (WiresConnectorControlImpl) delegate.newConnectorControl(connector, wiresManager); wiresConnectorControl.setPointHandleDecorator(new StunnerPointHandleDecorator()); return wiresConnectorControl; }
StunnerWiresControlFactory implements WiresControlFactory { @Override public WiresConnectorControl newConnectorControl(final WiresConnector connector, final WiresManager wiresManager) { final WiresConnectorControlImpl wiresConnectorControl = (WiresConnectorControlImpl) delegate.newConnectorControl(connector, wiresManager); wiresConnectorControl.setPointHandleDecorator(new StunnerPointHandleDecorator()); return wiresConnectorControl; } }
StunnerWiresControlFactory implements WiresControlFactory { @Override public WiresConnectorControl newConnectorControl(final WiresConnector connector, final WiresManager wiresManager) { final WiresConnectorControlImpl wiresConnectorControl = (WiresConnectorControlImpl) delegate.newConnectorControl(connector, wiresManager); wiresConnectorControl.setPointHandleDecorator(new StunnerPointHandleDecorator()); return wiresConnectorControl; } @Inject  StunnerWiresControlFactory(final Event<CanvasUnhighlightEvent> unhighlightEvent);   StunnerWiresControlFactory(final WiresControlFactoryImpl delegate,
                               final Event<CanvasUnhighlightEvent> unhighlightEvent); }
StunnerWiresControlFactory implements WiresControlFactory { @Override public WiresConnectorControl newConnectorControl(final WiresConnector connector, final WiresManager wiresManager) { final WiresConnectorControlImpl wiresConnectorControl = (WiresConnectorControlImpl) delegate.newConnectorControl(connector, wiresManager); wiresConnectorControl.setPointHandleDecorator(new StunnerPointHandleDecorator()); return wiresConnectorControl; } @Inject  StunnerWiresControlFactory(final Event<CanvasUnhighlightEvent> unhighlightEvent);   StunnerWiresControlFactory(final WiresControlFactoryImpl delegate,
                               final Event<CanvasUnhighlightEvent> unhighlightEvent); @Override WiresShapeControl newShapeControl(final WiresShape shape,
                                             final WiresManager wiresManager); @Override WiresConnectorControl newConnectorControl(final WiresConnector connector,
                                                     final WiresManager wiresManager); @Override WiresConnectionControl newConnectionControl(final WiresConnector connector,
                                                       final boolean headNotTail,
                                                       final WiresManager wiresManager); @Override WiresCompositeControl newCompositeControl(final WiresCompositeControl.Context context,
                                                     final WiresManager wiresManager); @Override WiresShapeHighlight<PickerPart.ShapePart> newShapeHighlight(final WiresManager wiresManager); @Override WiresLayerIndex newIndex(final WiresManager manager); }
StunnerWiresControlFactory implements WiresControlFactory { @Override public WiresConnectorControl newConnectorControl(final WiresConnector connector, final WiresManager wiresManager) { final WiresConnectorControlImpl wiresConnectorControl = (WiresConnectorControlImpl) delegate.newConnectorControl(connector, wiresManager); wiresConnectorControl.setPointHandleDecorator(new StunnerPointHandleDecorator()); return wiresConnectorControl; } @Inject  StunnerWiresControlFactory(final Event<CanvasUnhighlightEvent> unhighlightEvent);   StunnerWiresControlFactory(final WiresControlFactoryImpl delegate,
                               final Event<CanvasUnhighlightEvent> unhighlightEvent); @Override WiresShapeControl newShapeControl(final WiresShape shape,
                                             final WiresManager wiresManager); @Override WiresConnectorControl newConnectorControl(final WiresConnector connector,
                                                     final WiresManager wiresManager); @Override WiresConnectionControl newConnectionControl(final WiresConnector connector,
                                                       final boolean headNotTail,
                                                       final WiresManager wiresManager); @Override WiresCompositeControl newCompositeControl(final WiresCompositeControl.Context context,
                                                     final WiresManager wiresManager); @Override WiresShapeHighlight<PickerPart.ShapePart> newShapeHighlight(final WiresManager wiresManager); @Override WiresLayerIndex newIndex(final WiresManager manager);  }