當前位置: 首頁>>代碼示例>>Java>>正文


Java Bounds類代碼示例

本文整理匯總了Java中org.eclipse.dd.dc.Bounds的典型用法代碼示例。如果您正苦於以下問題:Java Bounds類的具體用法?Java Bounds怎麽用?Java Bounds使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Bounds類屬於org.eclipse.dd.dc包,在下文中一共展示了Bounds類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: notifyChanged

import org.eclipse.dd.dc.Bounds; //導入依賴的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(Bounds.class)) {
	case DcPackage.BOUNDS__HEIGHT:
	case DcPackage.BOUNDS__WIDTH:
	case DcPackage.BOUNDS__X:
	case DcPackage.BOUNDS__Y:
		fireNotifyChanged(new ViewerNotification(notification,
				notification.getNotifier(), false, true));
		return;
	}
	super.notifyChanged(notification);
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:23,代碼來源:BoundsItemProvider.java

示例2: basicSetBounds

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetBounds(Bounds newBounds,
		NotificationChain msgs) {
	Bounds oldBounds = bounds;
	bounds = newBounds;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this,
				Notification.SET, DiPackage.LABEL__BOUNDS, oldBounds,
				newBounds);
		if (msgs == null)
			msgs = notification;
		else
			msgs.add(notification);
	}
	return msgs;
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:21,代碼來源:LabelImpl.java

示例3: setBounds

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBounds(Bounds newBounds) {
	if (newBounds != bounds) {
		NotificationChain msgs = null;
		if (bounds != null)
			msgs = ((InternalEObject) bounds).eInverseRemove(this,
					EOPPOSITE_FEATURE_BASE - DiPackage.LABEL__BOUNDS, null,
					msgs);
		if (newBounds != null)
			msgs = ((InternalEObject) newBounds).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - DiPackage.LABEL__BOUNDS, null,
					msgs);
		msgs = basicSetBounds(newBounds, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET,
				DiPackage.LABEL__BOUNDS, newBounds, newBounds));
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:24,代碼來源:LabelImpl.java

示例4: basicSetBounds

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetBounds(Bounds newBounds,
		NotificationChain msgs) {
	Bounds oldBounds = bounds;
	bounds = newBounds;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this,
				Notification.SET, DiPackage.SHAPE__BOUNDS, oldBounds,
				newBounds);
		if (msgs == null)
			msgs = notification;
		else
			msgs.add(notification);
	}
	return msgs;
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:21,代碼來源:ShapeImpl.java

示例5: setBounds

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBounds(Bounds newBounds) {
	if (newBounds != bounds) {
		NotificationChain msgs = null;
		if (bounds != null)
			msgs = ((InternalEObject) bounds).eInverseRemove(this,
					EOPPOSITE_FEATURE_BASE - DiPackage.SHAPE__BOUNDS, null,
					msgs);
		if (newBounds != null)
			msgs = ((InternalEObject) newBounds).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - DiPackage.SHAPE__BOUNDS, null,
					msgs);
		msgs = basicSetBounds(newBounds, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET,
				DiPackage.SHAPE__BOUNDS, newBounds, newBounds));
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:24,代碼來源:ShapeImpl.java

示例6: eUnset

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID) {
	switch (featureID) {
	case DcPackage.DOCUMENT_ROOT__MIXED:
		getMixed().clear();
		return;
	case DcPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
		getXMLNSPrefixMap().clear();
		return;
	case DcPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
		getXSISchemaLocation().clear();
		return;
	case DcPackage.DOCUMENT_ROOT__BOUNDS:
		setBounds((Bounds) null);
		return;
	case DcPackage.DOCUMENT_ROOT__FONT:
		setFont((Font) null);
		return;
	case DcPackage.DOCUMENT_ROOT__POINT:
		setPoint((Point) null);
		return;
	}
	super.eUnset(featureID);
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:30,代碼來源:DocumentRootImpl.java

示例7: setBounds

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBounds(Bounds newBounds) {
    if (newBounds != bounds) {
        NotificationChain msgs = null;
        if (bounds != null)
            msgs = ((InternalEObject) bounds).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
                    - DiPackage.LABEL__BOUNDS, null, msgs);
        if (newBounds != null)
            msgs = ((InternalEObject) newBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
                    - DiPackage.LABEL__BOUNDS, null, msgs);
        msgs = basicSetBounds(newBounds, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, DiPackage.LABEL__BOUNDS,
                newBounds, newBounds));
}
 
開發者ID:fixteam,項目名稱:fixflow,代碼行數:22,代碼來源:LabelImpl.java

示例8: setBounds

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBounds(Bounds newBounds) {
    if (newBounds != bounds) {
        NotificationChain msgs = null;
        if (bounds != null)
            msgs = ((InternalEObject) bounds).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
                    - DiPackage.SHAPE__BOUNDS, null, msgs);
        if (newBounds != null)
            msgs = ((InternalEObject) newBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
                    - DiPackage.SHAPE__BOUNDS, null, msgs);
        msgs = basicSetBounds(newBounds, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, DiPackage.SHAPE__BOUNDS,
                newBounds, newBounds));
}
 
開發者ID:fixteam,項目名稱:fixflow,代碼行數:22,代碼來源:ShapeImpl.java

示例9: validate

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * Calls <code>validateXXX</code> for the corresponding classifier of the model.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics,
        Map<Object, Object> context) {
    switch (classifierID) {
    case DcPackage.DOCUMENT_ROOT:
        return validateDocumentRoot((DocumentRoot) value, diagnostics, context);
    case DcPackage.BOUNDS:
        return validateBounds((Bounds) value, diagnostics, context);
    case DcPackage.FONT:
        return validateFont((Font) value, diagnostics, context);
    case DcPackage.POINT:
        return validatePoint((Point) value, diagnostics, context);
    default:
        return true;
    }
}
 
開發者ID:fixteam,項目名稱:fixflow,代碼行數:23,代碼來源:DcValidator.java

示例10: eUnset

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID) {
    switch (featureID) {
    case DcPackage.DOCUMENT_ROOT__MIXED:
        getMixed().clear();
        return;
    case DcPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
        getXMLNSPrefixMap().clear();
        return;
    case DcPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
        getXSISchemaLocation().clear();
        return;
    case DcPackage.DOCUMENT_ROOT__BOUNDS:
        setBounds((Bounds) null);
        return;
    case DcPackage.DOCUMENT_ROOT__FONT:
        setFont((Font) null);
        return;
    case DcPackage.DOCUMENT_ROOT__POINT:
        setPoint((Point) null);
        return;
    }
    super.eUnset(featureID);
}
 
開發者ID:fixteam,項目名稱:fixflow,代碼行數:30,代碼來源:DocumentRootImpl.java

示例11: updateShapeBoundsInSubprocessInLanes

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
public void updateShapeBoundsInSubprocessInLanes(BPMNPlane plane,
                                                 BaseElement ele,
                                                 SubProcess sub,
                                                 float parentX,
                                                 float parentY) {
    for (FlowElement subEle : sub.getFlowElements()) {
        Bounds subEleBounds = getBoundsForElement(subEle,
                                                  plane);
        if (subEleBounds != null) {
            subEleBounds.setX(subEleBounds.getX() + parentX);
            subEleBounds.setY(subEleBounds.getY() + parentY);
        }
        if (subEle instanceof SubProcess) {
            updateShapeBoundsInSubprocessInLanes(plane,
                                                 ele,
                                                 (SubProcess) subEle,
                                                 subEleBounds.getX(),
                                                 subEleBounds.getY());
        }
    }
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:22,代碼來源:Bpmn2JsonUnmarshaller.java

示例12: createBpmnEdgeForAssociation

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
private void createBpmnEdgeForAssociation(BpmnDiFactory factory,
                                          BPMNPlane plane,
                                          Association association) {
    BPMNEdge edge = factory.createBPMNEdge();
    edge.setBpmnElement(association);
    DcFactory dcFactory = DcFactory.eINSTANCE;
    Point point = dcFactory.createPoint();
    Bounds sourceBounds = _bounds.get(association.getSourceRef().getId());
    point.setX(sourceBounds.getX() + (sourceBounds.getWidth() / 2));
    point.setY(sourceBounds.getY() + (sourceBounds.getHeight() / 2));
    edge.getWaypoint().add(point);
    List<Point> dockers = _dockers.get(association.getId());
    for (int i = 1; i < dockers.size() - 1; i++) {
        edge.getWaypoint().add(dockers.get(i));
    }
    point = dcFactory.createPoint();
    Bounds targetBounds = _bounds.get(association.getTargetRef().getId());
    point.setX(targetBounds.getX() + (targetBounds.getWidth() / 2));
    point.setY(targetBounds.getY() + (targetBounds.getHeight() / 2));
    edge.getWaypoint().add(point);
    plane.getPlaneElement().add(edge);
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:23,代碼來源:Bpmn2JsonUnmarshaller.java

示例13: eSet

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue) {
	switch (featureID) {
	case DiPackage.LABEL__BOUNDS:
		setBounds((Bounds) newValue);
		return;
	}
	super.eSet(featureID, newValue);
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:15,代碼來源:LabelImpl.java

示例14: eUnset

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID) {
	switch (featureID) {
	case DiPackage.LABEL__BOUNDS:
		setBounds((Bounds) null);
		return;
	}
	super.eUnset(featureID);
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:15,代碼來源:LabelImpl.java

示例15: eSet

import org.eclipse.dd.dc.Bounds; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue) {
	switch (featureID) {
	case DiPackage.SHAPE__BOUNDS:
		setBounds((Bounds) newValue);
		return;
	}
	super.eSet(featureID, newValue);
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:15,代碼來源:ShapeImpl.java


注:本文中的org.eclipse.dd.dc.Bounds類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。