use of org.kie.workbench.common.stunner.shapes.client.view.AbstractConnectorView in project kie-wb-common by kiegroup.
the class BasicShapesFactory method newConnector.
@SuppressWarnings("unchecked")
private Shape<ShapeView> newConnector(final Object instance, final BasicShapeDef shapeDef) {
final ConnectorShapeDef cShapeDef = (ConnectorShapeDef) shapeDef;
final AbstractConnectorView view = shapeViewFactory.connector(0, 0, 100, 100);
return new BasicConnectorShape(cShapeDef, view);
}
use of org.kie.workbench.common.stunner.shapes.client.view.AbstractConnectorView in project kie-wb-common by kiegroup.
the class CaseManagementCanvasViewTest method addWiresConnector.
@Test
public void addWiresConnector() {
final AbstractConnectorView connector = new PolylineConnectorView(0.0, 0.0);
final String uuid = connector.uuid();
connector.setUUID(uuid);
view.addShape(connector);
final WiresShape registeredConnector = view.getWiresManager().getShape(uuid);
assertNull(registeredConnector);
}
Aggregations