Search in sources :

Example 1 with LanePropertyReader

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);
}
Also used : Documentation(org.kie.workbench.common.stunner.bpmn.definition.property.general.Documentation) Lane(org.kie.workbench.common.stunner.bpmn.definition.Lane) LanePropertyReader(org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.LanePropertyReader) BPMNGeneralSet(org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet) View(org.kie.workbench.common.stunner.core.graph.content.view.View) Edge(org.kie.workbench.common.stunner.core.graph.Edge) Name(org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)

Aggregations

LanePropertyReader (org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.LanePropertyReader)1 Lane (org.kie.workbench.common.stunner.bpmn.definition.Lane)1 BPMNGeneralSet (org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet)1 Documentation (org.kie.workbench.common.stunner.bpmn.definition.property.general.Documentation)1 Name (org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)1 Edge (org.kie.workbench.common.stunner.core.graph.Edge)1 View (org.kie.workbench.common.stunner.core.graph.content.view.View)1