@Test public void addWiresShape() { final CaseManagementShapeView shape = new CaseManagementShapeView("mockCaseMgmtShapeView", new SVGPrimitiveShape(new Rectangle(0d, 0d)), 0d, 0d, false); final String uuid = shape.uuid(); shape.setUUID(uuid); view.add(shape); final WiresShape registeredShape = wiresManager.getShape(uuid); assertNotNull(registeredShape); assertEquals(shape, registeredShape); }
@Override public WiresCanvasView add(final ShapeView<?> shapeView) { if (WiresUtils.isWiresShape(shapeView)) { WiresShape wiresShape = (WiresShape) shapeView; getLayer().getWiresManager().register(wiresShape, false); WiresUtils.assertShapeGroup(wiresShape.getGroup(), WiresCanvas.WIRES_CANVAS_GROUP_ID); } else if (WiresUtils.isWiresConnector(shapeView)) { } else { super.add(shapeView); } return this; }
CaseManagementCanvasView extends WiresCanvasView { @Override public WiresCanvasView add(final ShapeView<?> shapeView) { if (WiresUtils.isWiresShape(shapeView)) { WiresShape wiresShape = (WiresShape) shapeView; getLayer().getWiresManager().register(wiresShape, false); WiresUtils.assertShapeGroup(wiresShape.getGroup(), WiresCanvas.WIRES_CANVAS_GROUP_ID); } else if (WiresUtils.isWiresConnector(shapeView)) { } else { super.add(shapeView); } return this; } }
CaseManagementCanvasView extends WiresCanvasView { @Override public WiresCanvasView add(final ShapeView<?> shapeView) { if (WiresUtils.isWiresShape(shapeView)) { WiresShape wiresShape = (WiresShape) shapeView; getLayer().getWiresManager().register(wiresShape, false); WiresUtils.assertShapeGroup(wiresShape.getGroup(), WiresCanvas.WIRES_CANVAS_GROUP_ID); } else if (WiresUtils.isWiresConnector(shapeView)) { } else { super.add(shapeView); } return this; } @Inject  CaseManagementCanvasView(final WiresLayer layer); }
CaseManagementCanvasView extends WiresCanvasView { @Override public WiresCanvasView add(final ShapeView<?> shapeView) { if (WiresUtils.isWiresShape(shapeView)) { WiresShape wiresShape = (WiresShape) shapeView; getLayer().getWiresManager().register(wiresShape, false); WiresUtils.assertShapeGroup(wiresShape.getGroup(), WiresCanvas.WIRES_CANVAS_GROUP_ID); } else if (WiresUtils.isWiresConnector(shapeView)) { } else { super.add(shapeView); } return this; } @Inject  CaseManagementCanvasView(final WiresLayer layer); @Override WiresCanvasView add(final ShapeView<?> shapeView); WiresCanvasView addChildShape(final ShapeView<?> parent, final ShapeView<?> child, final int index); }
CaseManagementCanvasView extends WiresCanvasView { @Override public WiresCanvasView add(final ShapeView<?> shapeView) { if (WiresUtils.isWiresShape(shapeView)) { WiresShape wiresShape = (WiresShape) shapeView; getLayer().getWiresManager().register(wiresShape, false); WiresUtils.assertShapeGroup(wiresShape.getGroup(), WiresCanvas.WIRES_CANVAS_GROUP_ID); } else if (WiresUtils.isWiresConnector(shapeView)) { } else { super.add(shapeView); } return this; } @Inject  CaseManagementCanvasView(final WiresLayer layer); @Override WiresCanvasView add(final ShapeView<?> shapeView); WiresCanvasView addChildShape(final ShapeView<?> parent, final ShapeView<?> child, final int index);  }