@Test public void testNewShapeControl() { final WiresShapeControl wiresShapeControl = tested.newShapeControl(wiresShape, wiresManager); assertNotNull(wiresShapeControl); assertTrue(wiresShapeControl instanceof StunnerWiresShapeControl); }
@Override public WiresShapeControl newShapeControl(final WiresShape shape, final WiresManager wiresManager) { return new StunnerWiresShapeControl(new WiresShapeControlImpl(shape)); }
StunnerWiresControlFactory implements WiresControlFactory { @Override public WiresShapeControl newShapeControl(final WiresShape shape, final WiresManager wiresManager) { return new StunnerWiresShapeControl(new WiresShapeControlImpl(shape)); } }
StunnerWiresControlFactory implements WiresControlFactory { @Override public WiresShapeControl newShapeControl(final WiresShape shape, final WiresManager wiresManager) { return new StunnerWiresShapeControl(new WiresShapeControlImpl(shape)); } @Inject  StunnerWiresControlFactory(final Event<CanvasUnhighlightEvent> unhighlightEvent);   StunnerWiresControlFactory(final WiresControlFactoryImpl delegate,
                               final Event<CanvasUnhighlightEvent> unhighlightEvent); }
StunnerWiresControlFactory implements WiresControlFactory { @Override public WiresShapeControl newShapeControl(final WiresShape shape, final WiresManager wiresManager) { return new StunnerWiresShapeControl(new WiresShapeControlImpl(shape)); } @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 WiresShapeControl newShapeControl(final WiresShape shape, final WiresManager wiresManager) { return new StunnerWiresShapeControl(new WiresShapeControlImpl(shape)); } @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);  }