org.eclipse.dd.dc.impl.FontImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Kie Workbench - Common - Stunner - BPMN Definition Set - GWT Support for Eclipse EMF/XMI
/**
*
*
* Copyright (c) 2010 SAP AG.
* 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:
* Reiner Hille-Doering (SAP AG) - initial API and implementation and/or initial documentation
*
*
*/
package org.eclipse.dd.dc.impl;
import com.google.gwt.user.client.rpc.GwtTransient;
import java.util.Map;
import org.eclipse.dd.dc.DcPackage;
import org.eclipse.dd.dc.Font;
import org.eclipse.dd.dc.util.DcValidator;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.BasicDiagnostic;
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.eclipse.emf.ecore.util.EObjectValidator;
/**
*
* An implementation of the model object 'Font'.
*
*
* The following features are implemented:
*
*
* - {@link org.eclipse.dd.dc.impl.FontImpl#isIsBold Is Bold}
* - {@link org.eclipse.dd.dc.impl.FontImpl#isIsItalic Is Italic}
* - {@link org.eclipse.dd.dc.impl.FontImpl#isIsStrikeThrough Is Strike Through}
* - {@link org.eclipse.dd.dc.impl.FontImpl#isIsUnderline Is Underline}
* - {@link org.eclipse.dd.dc.impl.FontImpl#getName Name}
* - {@link org.eclipse.dd.dc.impl.FontImpl#getSize Size}
*
*
* @generated
*/
public class FontImpl extends EObjectImpl implements Font {
/**
* The default value of the '{@link #isIsBold() Is Bold}' attribute.
*
*
* @see #isIsBold()
* @generated
* @ordered
*/
protected static final boolean IS_BOLD_EDEFAULT = false;
/**
* The cached value of the '{@link #isIsBold() Is Bold}' attribute.
*
*
* @see #isIsBold()
* @generated
* @ordered
*/
@GwtTransient
protected boolean isBold = IS_BOLD_EDEFAULT;
/**
* The default value of the '{@link #isIsItalic() Is Italic}' attribute.
*
*
* @see #isIsItalic()
* @generated
* @ordered
*/
protected static final boolean IS_ITALIC_EDEFAULT = false;
/**
* The cached value of the '{@link #isIsItalic() Is Italic}' attribute.
*
*
* @see #isIsItalic()
* @generated
* @ordered
*/
@GwtTransient
protected boolean isItalic = IS_ITALIC_EDEFAULT;
/**
* The default value of the '{@link #isIsStrikeThrough() Is Strike Through}' attribute.
*
*
* @see #isIsStrikeThrough()
* @generated
* @ordered
*/
protected static final boolean IS_STRIKE_THROUGH_EDEFAULT = false;
/**
* The cached value of the '{@link #isIsStrikeThrough() Is Strike Through}' attribute.
*
*
* @see #isIsStrikeThrough()
* @generated
* @ordered
*/
@GwtTransient
protected boolean isStrikeThrough = IS_STRIKE_THROUGH_EDEFAULT;
/**
* The default value of the '{@link #isIsUnderline() Is Underline}' attribute.
*
*
* @see #isIsUnderline()
* @generated
* @ordered
*/
protected static final boolean IS_UNDERLINE_EDEFAULT = false;
/**
* The cached value of the '{@link #isIsUnderline() Is Underline}' attribute.
*
*
* @see #isIsUnderline()
* @generated
* @ordered
*/
@GwtTransient
protected boolean isUnderline = IS_UNDERLINE_EDEFAULT;
/**
* The default value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
@GwtTransient
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getSize() Size}' attribute.
*
*
* @see #getSize()
* @generated
* @ordered
*/
protected static final float SIZE_EDEFAULT = 0.0F;
/**
* The cached value of the '{@link #getSize() Size}' attribute.
*
*
* @see #getSize()
* @generated
* @ordered
*/
@GwtTransient
protected float size = SIZE_EDEFAULT;
/**
*
*
* @generated
*/
protected FontImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return DcPackage.Literals.FONT;
}
/**
*
*
* @generated
*/
@Override
public boolean isIsBold() {
return isBold;
}
/**
*
*
* @generated
*/
@Override
public void setIsBold(boolean newIsBold) {
boolean oldIsBold = isBold;
isBold = newIsBold;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DcPackage.FONT__IS_BOLD, oldIsBold, isBold));
}
/**
*
*
* @generated
*/
@Override
public boolean isIsItalic() {
return isItalic;
}
/**
*
*
* @generated
*/
@Override
public void setIsItalic(boolean newIsItalic) {
boolean oldIsItalic = isItalic;
isItalic = newIsItalic;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DcPackage.FONT__IS_ITALIC, oldIsItalic, isItalic));
}
/**
*
*
* @generated
*/
@Override
public boolean isIsStrikeThrough() {
return isStrikeThrough;
}
/**
*
*
* @generated
*/
@Override
public void setIsStrikeThrough(boolean newIsStrikeThrough) {
boolean oldIsStrikeThrough = isStrikeThrough;
isStrikeThrough = newIsStrikeThrough;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DcPackage.FONT__IS_STRIKE_THROUGH, oldIsStrikeThrough,
isStrikeThrough));
}
/**
*
*
* @generated
*/
@Override
public boolean isIsUnderline() {
return isUnderline;
}
/**
*
*
* @generated
*/
@Override
public void setIsUnderline(boolean newIsUnderline) {
boolean oldIsUnderline = isUnderline;
isUnderline = newIsUnderline;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DcPackage.FONT__IS_UNDERLINE, oldIsUnderline,
isUnderline));
}
/**
*
*
* @generated
*/
@Override
public String getName() {
return name;
}
/**
*
*
* @generated
*/
@Override
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DcPackage.FONT__NAME, oldName, name));
}
/**
*
*
* @generated
*/
@Override
public float getSize() {
return size;
}
/**
*
*
* @generated
*/
@Override
public void setSize(float newSize) {
float oldSize = size;
size = newSize;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DcPackage.FONT__SIZE, oldSize, size));
}
/**
*
*
* @generated
*/
@Override
public boolean non_negative_size(DiagnosticChain diagnostics, Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy