Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.di/src/org/eclipse/papyrus/di/impl/EllipseImpl.java')
-rw-r--r--deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.di/src/org/eclipse/papyrus/di/impl/EllipseImpl.java478
1 files changed, 0 insertions, 478 deletions
diff --git a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.di/src/org/eclipse/papyrus/di/impl/EllipseImpl.java b/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.di/src/org/eclipse/papyrus/di/impl/EllipseImpl.java
deleted file mode 100644
index 11c6ee40cad..00000000000
--- a/deprecated/deprecated-plugins/core.deprecated/org.eclipse.papyrus.di/src/org/eclipse/papyrus/di/impl/EllipseImpl.java
+++ /dev/null
@@ -1,478 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2008 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) Patrick.Tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.di.impl;
-
-import org.eclipse.draw2d.geometry.Point;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.di.DiPackage;
-import org.eclipse.papyrus.di.Ellipse;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Ellipse</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.di.impl.EllipseImpl#getCenter <em>Center</em>}</li>
- * <li>{@link org.eclipse.papyrus.di.impl.EllipseImpl#getRadiusX <em>Radius X</em>}</li>
- * <li>{@link org.eclipse.papyrus.di.impl.EllipseImpl#getRadiusY <em>Radius Y</em>}</li>
- * <li>{@link org.eclipse.papyrus.di.impl.EllipseImpl#getRotation <em>Rotation</em>}</li>
- * <li>{@link org.eclipse.papyrus.di.impl.EllipseImpl#getStartAngle <em>Start Angle</em>}</li>
- * <li>{@link org.eclipse.papyrus.di.impl.EllipseImpl#getEndAngle <em>End Angle</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class EllipseImpl extends GraphicPrimitiveImpl implements Ellipse {
-
- /**
- * The default value of the '{@link #getCenter() <em>Center</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getCenter()
- * @generated
- * @ordered
- */
- protected static final Point CENTER_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getCenter() <em>Center</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getCenter()
- * @generated
- * @ordered
- */
- protected Point center = CENTER_EDEFAULT;
-
- /**
- * The default value of the '{@link #getRadiusX() <em>Radius X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRadiusX()
- * @generated
- * @ordered
- */
- protected static final double RADIUS_X_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getRadiusX() <em>Radius X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRadiusX()
- * @generated
- * @ordered
- */
- protected double radiusX = RADIUS_X_EDEFAULT;
-
- /**
- * The default value of the '{@link #getRadiusY() <em>Radius Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRadiusY()
- * @generated
- * @ordered
- */
- protected static final double RADIUS_Y_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getRadiusY() <em>Radius Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRadiusY()
- * @generated
- * @ordered
- */
- protected double radiusY = RADIUS_Y_EDEFAULT;
-
- /**
- * The default value of the '{@link #getRotation() <em>Rotation</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRotation()
- * @generated
- * @ordered
- */
- protected static final double ROTATION_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getRotation() <em>Rotation</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRotation()
- * @generated
- * @ordered
- */
- protected double rotation = ROTATION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getStartAngle() <em>Start Angle</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getStartAngle()
- * @generated
- * @ordered
- */
- protected static final double START_ANGLE_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getStartAngle() <em>Start Angle</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getStartAngle()
- * @generated
- * @ordered
- */
- protected double startAngle = START_ANGLE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getEndAngle() <em>End Angle</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getEndAngle()
- * @generated
- * @ordered
- */
- protected static final double END_ANGLE_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getEndAngle() <em>End Angle</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getEndAngle()
- * @generated
- * @ordered
- */
- protected double endAngle = END_ANGLE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected EllipseImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DiPackage.Literals.ELLIPSE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Point getCenter() {
- return center;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setCenter(Point newCenter) {
- Point oldCenter = center;
- center = newCenter;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DiPackage.ELLIPSE__CENTER, oldCenter, center));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public double getRadiusX() {
- return radiusX;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setRadiusX(double newRadiusX) {
- double oldRadiusX = radiusX;
- radiusX = newRadiusX;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DiPackage.ELLIPSE__RADIUS_X, oldRadiusX, radiusX));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public double getRadiusY() {
- return radiusY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setRadiusY(double newRadiusY) {
- double oldRadiusY = radiusY;
- radiusY = newRadiusY;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DiPackage.ELLIPSE__RADIUS_Y, oldRadiusY, radiusY));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public double getRotation() {
- return rotation;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setRotation(double newRotation) {
- double oldRotation = rotation;
- rotation = newRotation;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DiPackage.ELLIPSE__ROTATION, oldRotation, rotation));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public double getStartAngle() {
- return startAngle;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setStartAngle(double newStartAngle) {
- double oldStartAngle = startAngle;
- startAngle = newStartAngle;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DiPackage.ELLIPSE__START_ANGLE, oldStartAngle, startAngle));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public double getEndAngle() {
- return endAngle;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setEndAngle(double newEndAngle) {
- double oldEndAngle = endAngle;
- endAngle = newEndAngle;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DiPackage.ELLIPSE__END_ANGLE, oldEndAngle, endAngle));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case DiPackage.ELLIPSE__CENTER:
- return getCenter();
- case DiPackage.ELLIPSE__RADIUS_X:
- return getRadiusX();
- case DiPackage.ELLIPSE__RADIUS_Y:
- return getRadiusY();
- case DiPackage.ELLIPSE__ROTATION:
- return getRotation();
- case DiPackage.ELLIPSE__START_ANGLE:
- return getStartAngle();
- case DiPackage.ELLIPSE__END_ANGLE:
- return getEndAngle();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case DiPackage.ELLIPSE__CENTER:
- setCenter((Point)newValue);
- return;
- case DiPackage.ELLIPSE__RADIUS_X:
- setRadiusX((Double)newValue);
- return;
- case DiPackage.ELLIPSE__RADIUS_Y:
- setRadiusY((Double)newValue);
- return;
- case DiPackage.ELLIPSE__ROTATION:
- setRotation((Double)newValue);
- return;
- case DiPackage.ELLIPSE__START_ANGLE:
- setStartAngle((Double)newValue);
- return;
- case DiPackage.ELLIPSE__END_ANGLE:
- setEndAngle((Double)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case DiPackage.ELLIPSE__CENTER:
- setCenter(CENTER_EDEFAULT);
- return;
- case DiPackage.ELLIPSE__RADIUS_X:
- setRadiusX(RADIUS_X_EDEFAULT);
- return;
- case DiPackage.ELLIPSE__RADIUS_Y:
- setRadiusY(RADIUS_Y_EDEFAULT);
- return;
- case DiPackage.ELLIPSE__ROTATION:
- setRotation(ROTATION_EDEFAULT);
- return;
- case DiPackage.ELLIPSE__START_ANGLE:
- setStartAngle(START_ANGLE_EDEFAULT);
- return;
- case DiPackage.ELLIPSE__END_ANGLE:
- setEndAngle(END_ANGLE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case DiPackage.ELLIPSE__CENTER:
- return CENTER_EDEFAULT == null ? center != null : !CENTER_EDEFAULT.equals(center);
- case DiPackage.ELLIPSE__RADIUS_X:
- return radiusX != RADIUS_X_EDEFAULT;
- case DiPackage.ELLIPSE__RADIUS_Y:
- return radiusY != RADIUS_Y_EDEFAULT;
- case DiPackage.ELLIPSE__ROTATION:
- return rotation != ROTATION_EDEFAULT;
- case DiPackage.ELLIPSE__START_ANGLE:
- return startAngle != START_ANGLE_EDEFAULT;
- case DiPackage.ELLIPSE__END_ANGLE:
- return endAngle != END_ANGLE_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if(eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (center: ");
- result.append(center);
- result.append(", radiusX: ");
- result.append(radiusX);
- result.append(", radiusY: ");
- result.append(radiusY);
- result.append(", rotation: ");
- result.append(rotation);
- result.append(", startAngle: ");
- result.append(startAngle);
- result.append(", endAngle: ");
- result.append(endAngle);
- result.append(')');
- return result.toString();
- }
-
-} //EllipseImpl

Back to the top