Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/CubicCurveToImpl.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/CubicCurveToImpl.java198
1 files changed, 70 insertions, 128 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/CubicCurveToImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/CubicCurveToImpl.java
index 75162e62f87..f868e1aa819 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/CubicCurveToImpl.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd/src/org/eclipse/papyrus/dd/dg/impl/CubicCurveToImpl.java
@@ -30,23 +30,19 @@ import org.eclipse.papyrus.dd.dg.DGPackage;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.CubicCurveToImpl#getStartControl
- * <em>Start Control</em>}</li>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.CubicCurveToImpl#getEndControl <em>
- * End Control</em>}</li>
- * <li>{@link org.eclipse.papyrus.dd.dg.impl.CubicCurveToImpl#getPoint <em>Point
- * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.CubicCurveToImpl#getStartControl <em>Start Control</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.CubicCurveToImpl#getEndControl <em>End Control</em>}</li>
+ * <li>{@link org.eclipse.papyrus.dd.dg.impl.CubicCurveToImpl#getPoint <em>Point</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
/**
- * The cached value of the '{@link #getStartControl()
- * <em>Start Control</em>}' containment reference. <!-- begin-user-doc -->
+ * The cached value of the '{@link #getStartControl() <em>Start Control</em>}' containment reference.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getStartControl()
* @generated
* @ordered
@@ -54,9 +50,8 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
protected Point startControl;
/**
- * The cached value of the '{@link #getEndControl() <em>End Control</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The cached value of the '{@link #getEndControl() <em>End Control</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see #getEndControl()
* @generated
* @ordered
@@ -64,9 +59,8 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
protected Point endControl;
/**
- * The cached value of the '{@link #getPoint() <em>Point</em>}' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The cached value of the '{@link #getPoint() <em>Point</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see #getPoint()
* @generated
* @ordered
@@ -75,7 +69,6 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
protected CubicCurveToImpl() {
@@ -84,7 +77,6 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -94,7 +86,6 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public Point getPoint() {
@@ -103,7 +94,6 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetPoint(Point newPoint,
@@ -111,44 +101,32 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
Point oldPoint = point;
point = newPoint;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, DGPackage.CUBIC_CURVE_TO__POINT,
- oldPoint, newPoint);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DGPackage.CUBIC_CURVE_TO__POINT, oldPoint, newPoint);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setPoint(Point newPoint) {
if (newPoint != point) {
NotificationChain msgs = null;
if (point != null)
- msgs = ((InternalEObject) point).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - DGPackage.CUBIC_CURVE_TO__POINT, null, msgs);
+ msgs = ((InternalEObject)point).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DGPackage.CUBIC_CURVE_TO__POINT, null, msgs);
if (newPoint != null)
- msgs = ((InternalEObject) newPoint).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - DGPackage.CUBIC_CURVE_TO__POINT, null, msgs);
+ msgs = ((InternalEObject)newPoint).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DGPackage.CUBIC_CURVE_TO__POINT, null, msgs);
msgs = basicSetPoint(newPoint, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- DGPackage.CUBIC_CURVE_TO__POINT, newPoint, newPoint));
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.CUBIC_CURVE_TO__POINT, newPoint, newPoint));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public Point getStartControl() {
@@ -157,7 +135,6 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetStartControl(Point newStartControl,
@@ -165,47 +142,32 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
Point oldStartControl = startControl;
startControl = newStartControl;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, DGPackage.CUBIC_CURVE_TO__START_CONTROL,
- oldStartControl, newStartControl);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DGPackage.CUBIC_CURVE_TO__START_CONTROL, oldStartControl, newStartControl);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setStartControl(Point newStartControl) {
if (newStartControl != startControl) {
NotificationChain msgs = null;
if (startControl != null)
- msgs = ((InternalEObject) startControl).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - DGPackage.CUBIC_CURVE_TO__START_CONTROL,
- null, msgs);
+ msgs = ((InternalEObject)startControl).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DGPackage.CUBIC_CURVE_TO__START_CONTROL, null, msgs);
if (newStartControl != null)
- msgs = ((InternalEObject) newStartControl).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - DGPackage.CUBIC_CURVE_TO__START_CONTROL,
- null, msgs);
+ msgs = ((InternalEObject)newStartControl).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DGPackage.CUBIC_CURVE_TO__START_CONTROL, null, msgs);
msgs = basicSetStartControl(newStartControl, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- DGPackage.CUBIC_CURVE_TO__START_CONTROL, newStartControl,
- newStartControl));
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.CUBIC_CURVE_TO__START_CONTROL, newStartControl, newStartControl));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public Point getEndControl() {
@@ -214,7 +176,6 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetEndControl(Point newEndControl,
@@ -222,137 +183,118 @@ public class CubicCurveToImpl extends PathCommandImpl implements CubicCurveTo {
Point oldEndControl = endControl;
endControl = newEndControl;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, DGPackage.CUBIC_CURVE_TO__END_CONTROL,
- oldEndControl, newEndControl);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DGPackage.CUBIC_CURVE_TO__END_CONTROL, oldEndControl, newEndControl);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setEndControl(Point newEndControl) {
if (newEndControl != endControl) {
NotificationChain msgs = null;
if (endControl != null)
- msgs = ((InternalEObject) endControl).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - DGPackage.CUBIC_CURVE_TO__END_CONTROL, null,
- msgs);
+ msgs = ((InternalEObject)endControl).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DGPackage.CUBIC_CURVE_TO__END_CONTROL, null, msgs);
if (newEndControl != null)
- msgs = ((InternalEObject) newEndControl).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - DGPackage.CUBIC_CURVE_TO__END_CONTROL, null,
- msgs);
+ msgs = ((InternalEObject)newEndControl).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DGPackage.CUBIC_CURVE_TO__END_CONTROL, null, msgs);
msgs = basicSetEndControl(newEndControl, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- DGPackage.CUBIC_CURVE_TO__END_CONTROL, newEndControl,
- newEndControl));
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, DGPackage.CUBIC_CURVE_TO__END_CONTROL, newEndControl, newEndControl));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID, NotificationChain msgs) {
switch (featureID) {
- case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
- return basicSetStartControl(null, msgs);
- case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
- return basicSetEndControl(null, msgs);
- case DGPackage.CUBIC_CURVE_TO__POINT:
- return basicSetPoint(null, msgs);
+ case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
+ return basicSetStartControl(null, msgs);
+ case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
+ return basicSetEndControl(null, msgs);
+ case DGPackage.CUBIC_CURVE_TO__POINT:
+ return basicSetPoint(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
- return getStartControl();
- case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
- return getEndControl();
- case DGPackage.CUBIC_CURVE_TO__POINT:
- return getPoint();
+ case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
+ return getStartControl();
+ case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
+ return getEndControl();
+ case DGPackage.CUBIC_CURVE_TO__POINT:
+ return getPoint();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
- setStartControl((Point) newValue);
- return;
- case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
- setEndControl((Point) newValue);
- return;
- case DGPackage.CUBIC_CURVE_TO__POINT:
- setPoint((Point) newValue);
- return;
+ case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
+ setStartControl((Point)newValue);
+ return;
+ case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
+ setEndControl((Point)newValue);
+ return;
+ case DGPackage.CUBIC_CURVE_TO__POINT:
+ setPoint((Point)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
- setStartControl((Point) null);
- return;
- case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
- setEndControl((Point) null);
- return;
- case DGPackage.CUBIC_CURVE_TO__POINT:
- setPoint((Point) null);
- return;
+ case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
+ setStartControl((Point)null);
+ return;
+ case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
+ setEndControl((Point)null);
+ return;
+ case DGPackage.CUBIC_CURVE_TO__POINT:
+ setPoint((Point)null);
+ return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
- return startControl != null;
- case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
- return endControl != null;
- case DGPackage.CUBIC_CURVE_TO__POINT:
- return point != null;
+ case DGPackage.CUBIC_CURVE_TO__START_CONTROL:
+ return startControl != null;
+ case DGPackage.CUBIC_CURVE_TO__END_CONTROL:
+ return endControl != null;
+ case DGPackage.CUBIC_CURVE_TO__POINT:
+ return point != null;
}
return super.eIsSet(featureID);
}

Back to the top