Search in sources :

Example 1 with BpmnLabelStyle

use of org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabelStyle in project camunda-bpmn-model by camunda.

the class BpmnLabelStyleImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(BpmnLabelStyle.class, BPMNDI_ELEMENT_BPMN_LABEL_STYLE).namespaceUri(BPMNDI_NS).extendsType(Style.class).instanceProvider(new ModelTypeInstanceProvider<BpmnLabelStyle>() {

        public BpmnLabelStyle newInstance(ModelTypeInstanceContext instanceContext) {
            return new BpmnLabelStyleImpl(instanceContext);
        }
    });
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    fontChild = sequenceBuilder.element(Font.class).required().build();
    typeBuilder.build();
}
Also used : SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) Style(org.camunda.bpm.model.bpmn.instance.di.Style) BpmnLabelStyle(org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabelStyle) BpmnLabelStyle(org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabelStyle) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) Font(org.camunda.bpm.model.bpmn.instance.dc.Font)

Aggregations

BpmnLabelStyle (org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnLabelStyle)1 Font (org.camunda.bpm.model.bpmn.instance.dc.Font)1 Style (org.camunda.bpm.model.bpmn.instance.di.Style)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)1