/**
* <copyright>
* </copyright>
*
* $Id$
*/
package at.bestsolution.efxclipse.formats.fxg.fxg.impl;
import at.bestsolution.efxclipse.formats.fxg.fxg.BlendMode;
import at.bestsolution.efxclipse.formats.fxg.fxg.Fill;
import at.bestsolution.efxclipse.formats.fxg.fxg.Filter;
import at.bestsolution.efxclipse.formats.fxg.fxg.FxgPackage;
import at.bestsolution.efxclipse.formats.fxg.fxg.Group;
import at.bestsolution.efxclipse.formats.fxg.fxg.Path;
import at.bestsolution.efxclipse.formats.fxg.fxg.Stroke;
import at.bestsolution.efxclipse.formats.fxg.fxg.Transform;
import at.bestsolution.efxclipse.formats.fxg.fxg.Winding;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Path</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getData <em>Data</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getX <em>X</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getY <em>Y</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getRotation <em>Rotation</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getScaleX <em>Scale X</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getScaleY <em>Scale Y</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getBlendMode <em>Blend Mode</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getVisible <em>Visible</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getAlpha <em>Alpha</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getWinding <em>Winding</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getFill <em>Fill</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getStroke <em>Stroke</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getFilters <em>Filters</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getTransform <em>Transform</em>}</li>
* <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.PathImpl#getMask <em>Mask</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class PathImpl extends EObjectImpl implements Path {
/**
* The default value of the '{@link #getData() <em>Data</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getData()
* @generated
* @ordered
*/
protected static final String DATA_EDEFAULT = null;
/**
* The cached value of the '{@link #getData() <em>Data</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getData()
* @generated
* @ordered
*/
protected String data = DATA_EDEFAULT;
/**
* The default value of the '{@link #getX() <em>X</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getX()
* @generated
* @ordered
*/
protected static final Double X_EDEFAULT = null;
/**
* The cached value of the '{@link #getX() <em>X</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getX()
* @generated
* @ordered
*/
protected Double x = X_EDEFAULT;
/**
* The default value of the '{@link #getY() <em>Y</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getY()
* @generated
* @ordered
*/
protected static final Double Y_EDEFAULT = null;
/**
* The cached value of the '{@link #getY() <em>Y</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getY()
* @generated
* @ordered
*/
protected Double y = 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 = null;
/**
* 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 #getScaleX() <em>Scale X</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getScaleX()
* @generated
* @ordered
*/
protected static final Double SCALE_X_EDEFAULT = null;
/**
* The cached value of the '{@link #getScaleX() <em>Scale X</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getScaleX()
* @generated
* @ordered
*/
protected Double scaleX = SCALE_X_EDEFAULT;
/**
* The default value of the '{@link #getScaleY() <em>Scale Y</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getScaleY()
* @generated
* @ordered
*/
protected static final Double SCALE_Y_EDEFAULT = null;
/**
* The cached value of the '{@link #getScaleY() <em>Scale Y</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getScaleY()
* @generated
* @ordered
*/
protected Double scaleY = SCALE_Y_EDEFAULT;
/**
* The default value of the '{@link #getBlendMode() <em>Blend Mode</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBlendMode()
* @generated
* @ordered
*/
protected static final BlendMode BLEND_MODE_EDEFAULT = BlendMode.NOT_SET;
/**
* The cached value of the '{@link #getBlendMode() <em>Blend Mode</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBlendMode()
* @generated
* @ordered
*/
protected BlendMode blendMode = BLEND_MODE_EDEFAULT;
/**
* The default value of the '{@link #getVisible() <em>Visible</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVisible()
* @generated
* @ordered
*/
protected static final Boolean VISIBLE_EDEFAULT = null;
/**
* The cached value of the '{@link #getVisible() <em>Visible</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVisible()
* @generated
* @ordered
*/
protected Boolean visible = VISIBLE_EDEFAULT;
/**
* The default value of the '{@link #getAlpha() <em>Alpha</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAlpha()
* @generated
* @ordered
*/
protected static final Double ALPHA_EDEFAULT = new Double(1.0);
/**
* The cached value of the '{@link #getAlpha() <em>Alpha</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAlpha()
* @generated
* @ordered
*/
protected Double alpha = ALPHA_EDEFAULT;
/**
* The default value of the '{@link #getWinding() <em>Winding</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWinding()
* @generated
* @ordered
*/
protected static final Winding WINDING_EDEFAULT = Winding.NOT_SET;
/**
* The cached value of the '{@link #getWinding() <em>Winding</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWinding()
* @generated
* @ordered
*/
protected Winding winding = WINDING_EDEFAULT;
/**
* The cached value of the '{@link #getFill() <em>Fill</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFill()
* @generated
* @ordered
*/
protected Fill fill;
/**
* The cached value of the '{@link #getStroke() <em>Stroke</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStroke()
* @generated
* @ordered
*/
protected Stroke stroke;
/**
* The cached value of the '{@link #getFilters() <em>Filters</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFilters()
* @generated
* @ordered
*/
protected EList<Filter> filters;
/**
* The cached value of the '{@link #getTransform() <em>Transform</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTransform()
* @generated
* @ordered
*/
protected Transform transform;
/**
* The cached value of the '{@link #getMask() <em>Mask</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMask()
* @generated
* @ordered
*/
protected Group mask;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PathImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FxgPackage.Literals.PATH;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getData() {
return data;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setData(String newData) {
String oldData = data;
data = newData;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__DATA, oldData, data));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Double getX() {
return x;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setX(Double newX) {
Double oldX = x;
x = newX;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__X, oldX, x));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Double getY() {
return y;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setY(Double newY) {
Double oldY = y;
y = newY;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__Y, oldY, y));
}
/**
* <!-- 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, FxgPackage.PATH__ROTATION, oldRotation, rotation));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Double getScaleX() {
return scaleX;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setScaleX(Double newScaleX) {
Double oldScaleX = scaleX;
scaleX = newScaleX;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__SCALE_X, oldScaleX, scaleX));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Double getScaleY() {
return scaleY;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setScaleY(Double newScaleY) {
Double oldScaleY = scaleY;
scaleY = newScaleY;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__SCALE_Y, oldScaleY, scaleY));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BlendMode getBlendMode() {
return blendMode;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setBlendMode(BlendMode newBlendMode) {
BlendMode oldBlendMode = blendMode;
blendMode = newBlendMode == null ? BLEND_MODE_EDEFAULT : newBlendMode;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__BLEND_MODE, oldBlendMode, blendMode));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Boolean getVisible() {
return visible;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setVisible(Boolean newVisible) {
Boolean oldVisible = visible;
visible = newVisible;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__VISIBLE, oldVisible, visible));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Double getAlpha() {
return alpha;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAlpha(Double newAlpha) {
Double oldAlpha = alpha;
alpha = newAlpha;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__ALPHA, oldAlpha, alpha));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Winding getWinding() {
return winding;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setWinding(Winding newWinding) {
Winding oldWinding = winding;
winding = newWinding == null ? WINDING_EDEFAULT : newWinding;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__WINDING, oldWinding, winding));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Fill getFill() {
return fill;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetFill(Fill newFill, NotificationChain msgs) {
Fill oldFill = fill;
fill = newFill;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__FILL, oldFill, newFill);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setFill(Fill newFill) {
if (newFill != fill) {
NotificationChain msgs = null;
if (fill != null)
msgs = ((InternalEObject)fill).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FxgPackage.PATH__FILL, null, msgs);
if (newFill != null)
msgs = ((InternalEObject)newFill).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FxgPackage.PATH__FILL, null, msgs);
msgs = basicSetFill(newFill, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__FILL, newFill, newFill));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Stroke getStroke() {
return stroke;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetStroke(Stroke newStroke, NotificationChain msgs) {
Stroke oldStroke = stroke;
stroke = newStroke;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__STROKE, oldStroke, newStroke);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStroke(Stroke newStroke) {
if (newStroke != stroke) {
NotificationChain msgs = null;
if (stroke != null)
msgs = ((InternalEObject)stroke).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FxgPackage.PATH__STROKE, null, msgs);
if (newStroke != null)
msgs = ((InternalEObject)newStroke).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FxgPackage.PATH__STROKE, null, msgs);
msgs = basicSetStroke(newStroke, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__STROKE, newStroke, newStroke));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Filter> getFilters() {
if (filters == null) {
filters = new EObjectContainmentEList<Filter>(Filter.class, this, FxgPackage.PATH__FILTERS);
}
return filters;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Transform getTransform() {
return transform;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetTransform(Transform newTransform, NotificationChain msgs) {
Transform oldTransform = transform;
transform = newTransform;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__TRANSFORM, oldTransform, newTransform);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTransform(Transform newTransform) {
if (newTransform != transform) {
NotificationChain msgs = null;
if (transform != null)
msgs = ((InternalEObject)transform).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FxgPackage.PATH__TRANSFORM, null, msgs);
if (newTransform != null)
msgs = ((InternalEObject)newTransform).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FxgPackage.PATH__TRANSFORM, null, msgs);
msgs = basicSetTransform(newTransform, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__TRANSFORM, newTransform, newTransform));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Group getMask() {
return mask;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetMask(Group newMask, NotificationChain msgs) {
Group oldMask = mask;
mask = newMask;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__MASK, oldMask, newMask);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setMask(Group newMask) {
if (newMask != mask) {
NotificationChain msgs = null;
if (mask != null)
msgs = ((InternalEObject)mask).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FxgPackage.PATH__MASK, null, msgs);
if (newMask != null)
msgs = ((InternalEObject)newMask).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FxgPackage.PATH__MASK, null, msgs);
msgs = basicSetMask(newMask, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.PATH__MASK, newMask, newMask));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FxgPackage.PATH__FILL:
return basicSetFill(null, msgs);
case FxgPackage.PATH__STROKE:
return basicSetStroke(null, msgs);
case FxgPackage.PATH__FILTERS:
return ((InternalEList<?>)getFilters()).basicRemove(otherEnd, msgs);
case FxgPackage.PATH__TRANSFORM:
return basicSetTransform(null, msgs);
case FxgPackage.PATH__MASK:
return basicSetMask(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 FxgPackage.PATH__DATA:
return getData();
case FxgPackage.PATH__X:
return getX();
case FxgPackage.PATH__Y:
return getY();
case FxgPackage.PATH__ROTATION:
return getRotation();
case FxgPackage.PATH__SCALE_X:
return getScaleX();
case FxgPackage.PATH__SCALE_Y:
return getScaleY();
case FxgPackage.PATH__BLEND_MODE:
return getBlendMode();
case FxgPackage.PATH__VISIBLE:
return getVisible();
case FxgPackage.PATH__ALPHA:
return getAlpha();
case FxgPackage.PATH__WINDING:
return getWinding();
case FxgPackage.PATH__FILL:
return getFill();
case FxgPackage.PATH__STROKE:
return getStroke();
case FxgPackage.PATH__FILTERS:
return getFilters();
case FxgPackage.PATH__TRANSFORM:
return getTransform();
case FxgPackage.PATH__MASK:
return getMask();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FxgPackage.PATH__DATA:
setData((String)newValue);
return;
case FxgPackage.PATH__X:
setX((Double)newValue);
return;
case FxgPackage.PATH__Y:
setY((Double)newValue);
return;
case FxgPackage.PATH__ROTATION:
setRotation((Double)newValue);
return;
case FxgPackage.PATH__SCALE_X:
setScaleX((Double)newValue);
return;
case FxgPackage.PATH__SCALE_Y:
setScaleY((Double)newValue);
return;
case FxgPackage.PATH__BLEND_MODE:
setBlendMode((BlendMode)newValue);
return;
case FxgPackage.PATH__VISIBLE:
setVisible((Boolean)newValue);
return;
case FxgPackage.PATH__ALPHA:
setAlpha((Double)newValue);
return;
case FxgPackage.PATH__WINDING:
setWinding((Winding)newValue);
return;
case FxgPackage.PATH__FILL:
setFill((Fill)newValue);
return;
case FxgPackage.PATH__STROKE:
setStroke((Stroke)newValue);
return;
case FxgPackage.PATH__FILTERS:
getFilters().clear();
getFilters().addAll((Collection<? extends Filter>)newValue);
return;
case FxgPackage.PATH__TRANSFORM:
setTransform((Transform)newValue);
return;
case FxgPackage.PATH__MASK:
setMask((Group)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FxgPackage.PATH__DATA:
setData(DATA_EDEFAULT);
return;
case FxgPackage.PATH__X:
setX(X_EDEFAULT);
return;
case FxgPackage.PATH__Y:
setY(Y_EDEFAULT);
return;
case FxgPackage.PATH__ROTATION:
setRotation(ROTATION_EDEFAULT);
return;
case FxgPackage.PATH__SCALE_X:
setScaleX(SCALE_X_EDEFAULT);
return;
case FxgPackage.PATH__SCALE_Y:
setScaleY(SCALE_Y_EDEFAULT);
return;
case FxgPackage.PATH__BLEND_MODE:
setBlendMode(BLEND_MODE_EDEFAULT);
return;
case FxgPackage.PATH__VISIBLE:
setVisible(VISIBLE_EDEFAULT);
return;
case FxgPackage.PATH__ALPHA:
setAlpha(ALPHA_EDEFAULT);
return;
case FxgPackage.PATH__WINDING:
setWinding(WINDING_EDEFAULT);
return;
case FxgPackage.PATH__FILL:
setFill((Fill)null);
return;
case FxgPackage.PATH__STROKE:
setStroke((Stroke)null);
return;
case FxgPackage.PATH__FILTERS:
getFilters().clear();
return;
case FxgPackage.PATH__TRANSFORM:
setTransform((Transform)null);
return;
case FxgPackage.PATH__MASK:
setMask((Group)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FxgPackage.PATH__DATA:
return DATA_EDEFAULT == null ? data != null : !DATA_EDEFAULT.equals(data);
case FxgPackage.PATH__X:
return X_EDEFAULT == null ? x != null : !X_EDEFAULT.equals(x);
case FxgPackage.PATH__Y:
return Y_EDEFAULT == null ? y != null : !Y_EDEFAULT.equals(y);
case FxgPackage.PATH__ROTATION:
return ROTATION_EDEFAULT == null ? rotation != null : !ROTATION_EDEFAULT.equals(rotation);
case FxgPackage.PATH__SCALE_X:
return SCALE_X_EDEFAULT == null ? scaleX != null : !SCALE_X_EDEFAULT.equals(scaleX);
case FxgPackage.PATH__SCALE_Y:
return SCALE_Y_EDEFAULT == null ? scaleY != null : !SCALE_Y_EDEFAULT.equals(scaleY);
case FxgPackage.PATH__BLEND_MODE:
return blendMode != BLEND_MODE_EDEFAULT;
case FxgPackage.PATH__VISIBLE:
return VISIBLE_EDEFAULT == null ? visible != null : !VISIBLE_EDEFAULT.equals(visible);
case FxgPackage.PATH__ALPHA:
return ALPHA_EDEFAULT == null ? alpha != null : !ALPHA_EDEFAULT.equals(alpha);
case FxgPackage.PATH__WINDING:
return winding != WINDING_EDEFAULT;
case FxgPackage.PATH__FILL:
return fill != null;
case FxgPackage.PATH__STROKE:
return stroke != null;
case FxgPackage.PATH__FILTERS:
return filters != null && !filters.isEmpty();
case FxgPackage.PATH__TRANSFORM:
return transform != null;
case FxgPackage.PATH__MASK:
return mask != null;
}
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(" (data: ");
result.append(data);
result.append(", x: ");
result.append(x);
result.append(", y: ");
result.append(y);
result.append(", rotation: ");
result.append(rotation);
result.append(", scaleX: ");
result.append(scaleX);
result.append(", scaleY: ");
result.append(scaleY);
result.append(", blendMode: ");
result.append(blendMode);
result.append(", visible: ");
result.append(visible);
result.append(", alpha: ");
result.append(alpha);
result.append(", winding: ");
result.append(winding);
result.append(')');
return result.toString();
}
} //PathImpl