diff options
Diffstat (limited to 'plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef/src/org/eclipse/papyrus/gmf/gmfgraph/impl/BasicFontImpl.java')
-rw-r--r-- | plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef/src/org/eclipse/papyrus/gmf/gmfgraph/impl/BasicFontImpl.java | 287 |
1 files changed, 0 insertions, 287 deletions
diff --git a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef/src/org/eclipse/papyrus/gmf/gmfgraph/impl/BasicFontImpl.java b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef/src/org/eclipse/papyrus/gmf/gmfgraph/impl/BasicFontImpl.java deleted file mode 100644 index 44c5623a94a..00000000000 --- a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef/src/org/eclipse/papyrus/gmf/gmfgraph/impl/BasicFontImpl.java +++ /dev/null @@ -1,287 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2020 Borland Software Corporation, CEA LIST, ARTAL - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Borland - initial API and implementation - * Aurelien Didier (ARTAL) - aurelien.didier51@gmail.com - Bug 569174 - ******************************************************************************/ -/** - * <copyright> - * </copyright> - * - * $Id$ - */ -package org.eclipse.papyrus.gmf.gmfgraph.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.papyrus.gmf.gmfgraph.BasicFont; -import org.eclipse.papyrus.gmf.gmfgraph.FontStyle; -import org.eclipse.papyrus.gmf.gmfgraph.GMFGraphPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Basic Font</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.papyrus.gmf.gmfgraph.impl.BasicFontImpl#getFaceName <em>Face Name</em>}</li> - * <li>{@link org.eclipse.papyrus.gmf.gmfgraph.impl.BasicFontImpl#getHeight <em>Height</em>}</li> - * <li>{@link org.eclipse.papyrus.gmf.gmfgraph.impl.BasicFontImpl#getStyle <em>Style</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class BasicFontImpl extends EObjectImpl implements BasicFont { - /** - * The default value of the '{@link #getFaceName() <em>Face Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFaceName() - * @generated - * @ordered - */ - protected static final String FACE_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFaceName() <em>Face Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFaceName() - * @generated - * @ordered - */ - protected String faceName = FACE_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getHeight() <em>Height</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHeight() - * @generated - * @ordered - */ - protected static final int HEIGHT_EDEFAULT = 9; - - /** - * The cached value of the '{@link #getHeight() <em>Height</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getHeight() - * @generated - * @ordered - */ - protected int height = HEIGHT_EDEFAULT; - - /** - * The default value of the '{@link #getStyle() <em>Style</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getStyle() - * @generated - * @ordered - */ - protected static final FontStyle STYLE_EDEFAULT = FontStyle.NORMAL_LITERAL; - - /** - * The cached value of the '{@link #getStyle() <em>Style</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getStyle() - * @generated - * @ordered - */ - protected FontStyle style = STYLE_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected BasicFontImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return GMFGraphPackage.eINSTANCE.getBasicFont(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getFaceName() { - return faceName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFaceName(String newFaceName) { - String oldFaceName = faceName; - faceName = newFaceName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.BASIC_FONT__FACE_NAME, oldFaceName, faceName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getHeight() { - return height; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setHeight(int newHeight) { - int oldHeight = height; - height = newHeight; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.BASIC_FONT__HEIGHT, oldHeight, height)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FontStyle getStyle() { - return style; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setStyle(FontStyle newStyle) { - FontStyle oldStyle = style; - style = newStyle == null ? STYLE_EDEFAULT : newStyle; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GMFGraphPackage.BASIC_FONT__STYLE, oldStyle, style)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case GMFGraphPackage.BASIC_FONT__FACE_NAME: - return getFaceName(); - case GMFGraphPackage.BASIC_FONT__HEIGHT: - return getHeight(); - case GMFGraphPackage.BASIC_FONT__STYLE: - return getStyle(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case GMFGraphPackage.BASIC_FONT__FACE_NAME: - setFaceName((String)newValue); - return; - case GMFGraphPackage.BASIC_FONT__HEIGHT: - setHeight((Integer)newValue); - return; - case GMFGraphPackage.BASIC_FONT__STYLE: - setStyle((FontStyle)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case GMFGraphPackage.BASIC_FONT__FACE_NAME: - setFaceName(FACE_NAME_EDEFAULT); - return; - case GMFGraphPackage.BASIC_FONT__HEIGHT: - setHeight(HEIGHT_EDEFAULT); - return; - case GMFGraphPackage.BASIC_FONT__STYLE: - setStyle(STYLE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case GMFGraphPackage.BASIC_FONT__FACE_NAME: - return FACE_NAME_EDEFAULT == null ? faceName != null : !FACE_NAME_EDEFAULT.equals(faceName); - case GMFGraphPackage.BASIC_FONT__HEIGHT: - return height != HEIGHT_EDEFAULT; - case GMFGraphPackage.BASIC_FONT__STYLE: - return style != STYLE_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(" (faceName: "); - result.append(faceName); - result.append(", height: "); - result.append(height); - result.append(", style: "); - result.append(style); - result.append(')'); - return result.toString(); - } - -} //BasicFontImpl |