use of org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.LanePropertyReader in project kie-wb-common by kiegroup.
the class LaneConverter method convert.
public BpmnNode convert(org.eclipse.bpmn2.Lane lane) {
Node<View<Lane>, Edge> node = typedFactoryManager.newNode(lane.getId(), Lane.class);
Lane definition = node.getContent().getDefinition();
LanePropertyReader p = propertyReaderFactory.of(lane);
definition.setGeneral(new BPMNGeneralSet(new Name(lane.getName()), new Documentation(p.getDocumentation())));
node.getContent().setBounds(p.getBounds());
definition.setDimensionsSet(p.getRectangleDimensionsSet());
definition.setFontSet(p.getFontSet());
definition.setBackgroundSet(p.getBackgroundSet());
return BpmnNode.of(node);
}
Aggregations