当前位置: 首页>>代码示例>>Java>>正文


Java BPMNDiagram类代码示例

本文整理汇总了Java中org.eclipse.bpmn2.di.BPMNDiagram的典型用法代码示例。如果您正苦于以下问题:Java BPMNDiagram类的具体用法?Java BPMNDiagram怎么用?Java BPMNDiagram使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


BPMNDiagram类属于org.eclipse.bpmn2.di包,在下文中一共展示了BPMNDiagram类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: orderDiagramElements

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
private void orderDiagramElements(Definitions def) {
    if (zOrderEnabled) {
        if (def.getDiagrams() != null) {
            for (BPMNDiagram diagram : def.getDiagrams()) {
                if (diagram != null) {
                    _logger.debug("Sorting diagram elements using DIZorderComparator");
                    BPMNPlane plane = diagram.getPlane();
                    List<DiagramElement> unsortedElements = new ArrayList<DiagramElement>(plane.getPlaneElement());
                    plane.getPlaneElement().clear();
                    Collections.sort(unsortedElements,
                                     new DIZorderComparator());
                    plane.getPlaneElement().addAll(unsortedElements);
                    diagram.setPlane(plane);
                }
            }
        }
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:19,代码来源:Bpmn2JsonUnmarshaller.java

示例2: getText

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * This returns the label text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String getText(Object object) {
	String label = ((BPMNDiagram) object).getName();
	return label == null || label.length() == 0 ? getString("_UI_BPMNDiagram_type")
			: getString("_UI_BPMNDiagram_type") + " " + label;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:13,代码来源:BPMNDiagramItemProvider.java

示例3: notifyChanged

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification) {
	updateChildren(notification);

	switch (notification.getFeatureID(BPMNDiagram.class)) {
	case BpmnDiPackage.BPMN_DIAGRAM__PLANE:
	case BpmnDiPackage.BPMN_DIAGRAM__LABEL_STYLE:
		fireNotifyChanged(new ViewerNotification(notification,
				notification.getNotifier(), true, false));
		return;
	}
	super.notifyChanged(notification);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:21,代码来源:BPMNDiagramItemProvider.java

示例4: basicSetBPMNDiagram

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetBPMNDiagram(BPMNDiagram newBPMNDiagram,
		NotificationChain msgs) {
	return ((FeatureMap.Internal) getMixed()).basicAdd(
			BpmnDiPackage.Literals.DOCUMENT_ROOT__BPMN_DIAGRAM,
			newBPMNDiagram, msgs);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:12,代码来源:DocumentRootImpl.java

示例5: eSet

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue) {
	switch (featureID) {
	case BpmnDiPackage.DOCUMENT_ROOT__MIXED:
		((FeatureMap.Internal) getMixed()).set(newValue);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
		((EStructuralFeature.Setting) ((EMap.InternalMapView<String, String>) getXMLNSPrefixMap())
				.eMap()).set(newValue);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
		((EStructuralFeature.Setting) ((EMap.InternalMapView<String, String>) getXSISchemaLocation())
				.eMap()).set(newValue);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_DIAGRAM:
		setBPMNDiagram((BPMNDiagram) newValue);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_EDGE:
		setBPMNEdge((BPMNEdge) newValue);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL:
		setBPMNLabel((BPMNLabel) newValue);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL_STYLE:
		setBPMNLabelStyle((BPMNLabelStyle) newValue);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_PLANE:
		setBPMNPlane((BPMNPlane) newValue);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_SHAPE:
		setBPMNShape((BPMNShape) newValue);
		return;
	}
	super.eSet(featureID, newValue);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:41,代码来源:DocumentRootImpl.java

示例6: eUnset

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID) {
	switch (featureID) {
	case BpmnDiPackage.DOCUMENT_ROOT__MIXED:
		getMixed().clear();
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
		getXMLNSPrefixMap().clear();
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
		getXSISchemaLocation().clear();
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_DIAGRAM:
		setBPMNDiagram((BPMNDiagram) null);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_EDGE:
		setBPMNEdge((BPMNEdge) null);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL:
		setBPMNLabel((BPMNLabel) null);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL_STYLE:
		setBPMNLabelStyle((BPMNLabelStyle) null);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_PLANE:
		setBPMNPlane((BPMNPlane) null);
		return;
	case BpmnDiPackage.DOCUMENT_ROOT__BPMN_SHAPE:
		setBPMNShape((BPMNShape) null);
		return;
	}
	super.eUnset(featureID);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:39,代码来源:DocumentRootImpl.java

示例7: getDiagrams

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public List<BPMNDiagram> getDiagrams() {
	if (diagrams == null) {
		diagrams = new EObjectContainmentEList<BPMNDiagram>(
				BPMNDiagram.class, this, Bpmn2Package.DEFINITIONS__DIAGRAMS);
	}
	return diagrams;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:13,代码来源:DefinitionsImpl.java

示例8: eSet

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue) {
    switch (featureID) {
    case BpmnDiPackage.DOCUMENT_ROOT__MIXED:
        ((FeatureMap.Internal) getMixed()).set(newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
        ((EStructuralFeature.Setting) ((EMap.InternalMapView<String, String>) getXMLNSPrefixMap())
                .eMap()).set(newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
        ((EStructuralFeature.Setting) ((EMap.InternalMapView<String, String>) getXSISchemaLocation())
                .eMap()).set(newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_DIAGRAM:
        setBPMNDiagram((BPMNDiagram) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_EDGE:
        setBPMNEdge((BPMNEdge) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL:
        setBPMNLabel((BPMNLabel) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL_STYLE:
        setBPMNLabelStyle((BPMNLabelStyle) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_PLANE:
        setBPMNPlane((BPMNPlane) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_SHAPE:
        setBPMNShape((BPMNShape) newValue);
        return;
    }
    super.eSet(featureID, newValue);
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:41,代码来源:DocumentRootImpl.java

示例9: eUnset

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID) {
    switch (featureID) {
    case BpmnDiPackage.DOCUMENT_ROOT__MIXED:
        getMixed().clear();
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
        getXMLNSPrefixMap().clear();
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
        getXSISchemaLocation().clear();
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_DIAGRAM:
        setBPMNDiagram((BPMNDiagram) null);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_EDGE:
        setBPMNEdge((BPMNEdge) null);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL:
        setBPMNLabel((BPMNLabel) null);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL_STYLE:
        setBPMNLabelStyle((BPMNLabelStyle) null);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_PLANE:
        setBPMNPlane((BPMNPlane) null);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_SHAPE:
        setBPMNShape((BPMNShape) null);
        return;
    }
    super.eUnset(featureID);
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:39,代码来源:DocumentRootImpl.java

示例10: getDiagrams

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public List<BPMNDiagram> getDiagrams() {
    if (diagrams == null) {
        diagrams = new EObjectContainmentEList<BPMNDiagram>(BPMNDiagram.class, this,
                Bpmn2Package.DEFINITIONS__DIAGRAMS);
    }
    return diagrams;
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:13,代码来源:DefinitionsImpl.java

示例11: testProcessDefinitionQuery

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
@Deployment(resources = { "com/founder/fix/fixflow/test/bpmn/bpmndiagram/bpmndiagram.bpmn" })
@SuppressWarnings("unused")
public void testProcessDefinitionQuery() {
	
	ProcessDefinitionBehavior processDefinition = modelService.createProcessDefinitionQuery().processDefinitionKey("bpmndiagramTest")
			.singleResult();

	List<BPMNDiagram> BPMNDiagramList=processDefinition.getDefinitions().getDiagrams();
	assertNotNull(processDefinition);
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:11,代码来源:BPMNDiagramQueryTest.java

示例12: marshallProcess

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
protected void marshallProcess(Process process,
                               Definitions def,
                               JsonGenerator generator,
                               String preProcessingData) throws JsonGenerationException, IOException {
    BPMNPlane plane = null;
    for (BPMNDiagram d : def.getDiagrams()) {
        if (d != null) {
            BPMNPlane p = d.getPlane();
            if (p != null) {
                if (p.getBpmnElement() == process) {
                    plane = p;
                    break;
                }
            }
        }
    }
    if (plane == null) {
        throw new IllegalArgumentException("Could not find BPMNDI information");
    }
    generator.writeArrayFieldStart("childShapes");
    List<String> laneFlowElementsIds = new ArrayList<String>();
    for (LaneSet laneSet : process.getLaneSets()) {
        for (Lane lane : laneSet.getLanes()) {
            // we only want to marshall lanes if we have the bpmndi info for them!
            if (findDiagramElement(plane,
                                   lane) != null) {
                laneFlowElementsIds.addAll(marshallLanes(lane,
                                                         plane,
                                                         generator,
                                                         0,
                                                         0,
                                                         preProcessingData,
                                                         def));
            }
        }
    }
    for (FlowElement flowElement : process.getFlowElements()) {
        if (!laneFlowElementsIds.contains(flowElement.getId())) {
            marshallFlowElement(flowElement,
                                plane,
                                generator,
                                0,
                                0,
                                preProcessingData,
                                def);
        }
    }
    for (Artifact artifact : process.getArtifacts()) {
        marshallArtifact(artifact,
                         plane,
                         generator,
                         0,
                         0,
                         preProcessingData,
                         def);
    }
    generator.writeEndArray();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:59,代码来源:Bpmn2JsonMarshaller.java

示例13: setBPMNDiagram

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBPMNDiagram(BPMNDiagram newBPMNDiagram) {
	((FeatureMap.Internal) getMixed()).set(
			BpmnDiPackage.Literals.DOCUMENT_ROOT__BPMN_DIAGRAM,
			newBPMNDiagram);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:11,代码来源:DocumentRootImpl.java

示例14: eSet

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
	switch (featureID) {
	case Bpmn2Package.DEFINITIONS__IMPORTS:
		getImports().clear();
		getImports().addAll((Collection<? extends Import>) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__EXTENSIONS:
		getExtensions().clear();
		getExtensions().addAll((Collection<? extends Extension>) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__ROOT_ELEMENTS:
		getRootElements().clear();
		getRootElements().addAll(
				(Collection<? extends RootElement>) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__DIAGRAMS:
		getDiagrams().clear();
		getDiagrams().addAll((Collection<? extends BPMNDiagram>) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__RELATIONSHIPS:
		getRelationships().clear();
		getRelationships().addAll(
				(Collection<? extends Relationship>) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__EXPORTER:
		setExporter((String) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__EXPORTER_VERSION:
		setExporterVersion((String) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__EXPRESSION_LANGUAGE:
		setExpressionLanguage((String) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__NAME:
		setName((String) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__TARGET_NAMESPACE:
		setTargetNamespace((String) newValue);
		return;
	case Bpmn2Package.DEFINITIONS__TYPE_LANGUAGE:
		setTypeLanguage((String) newValue);
		return;
	}
	super.eSet(featureID, newValue);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:53,代码来源:DefinitionsImpl.java

示例15: caseBPMNDiagram

import org.eclipse.bpmn2.di.BPMNDiagram; //导入依赖的package包/类
@Override
public Adapter caseBPMNDiagram(BPMNDiagram object) {
    return createBPMNDiagramAdapter();
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:5,代码来源:BpmnDiAdapterFactory.java


注:本文中的org.eclipse.bpmn2.di.BPMNDiagram类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。