/** * <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.Rect; import at.bestsolution.efxclipse.formats.fxg.fxg.Stroke; import at.bestsolution.efxclipse.formats.fxg.fxg.Transform; 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>Rect</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getWidth <em>Width</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getHeight <em>Height</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getRadiusX <em>Radius X</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getRadiusY <em>Radius Y</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getTopLeftRadiusX <em>Top Left Radius X</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getTopLeftRadiusY <em>Top Left Radius Y</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getTopRightRadiusX <em>Top Right Radius X</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getTopRightRadiusY <em>Top Right Radius Y</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getBottomLeftRadiusX <em>Bottom Left Radius X</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getBottomLeftRadiusY <em>Bottom Left Radius Y</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getBottomRightRadiusX <em>Bottom Right Radius X</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getBottomRightRadiusY <em>Bottom Right Radius Y</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getX <em>X</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getY <em>Y</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getRotation <em>Rotation</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getScaleX <em>Scale X</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getScaleY <em>Scale Y</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getBlendMode <em>Blend Mode</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getVisible <em>Visible</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getAlpha <em>Alpha</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getTransform <em>Transform</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getFilters <em>Filters</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getFill <em>Fill</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getStroke <em>Stroke</em>}</li> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.RectImpl#getMask <em>Mask</em>}</li> * </ul> * </p> * * @generated */ public class RectImpl extends EObjectImpl implements Rect { /** * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getWidth() * @generated * @ordered */ protected static final String WIDTH_EDEFAULT = null; /** * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getWidth() * @generated * @ordered */ protected String width = WIDTH_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 String HEIGHT_EDEFAULT = null; /** * The cached value of the '{@link #getHeight() <em>Height</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getHeight() * @generated * @ordered */ protected String height = HEIGHT_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 String RADIUS_X_EDEFAULT = null; /** * The cached value of the '{@link #getRadiusX() <em>Radius X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getRadiusX() * @generated * @ordered */ protected String 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 String RADIUS_Y_EDEFAULT = null; /** * The cached value of the '{@link #getRadiusY() <em>Radius Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getRadiusY() * @generated * @ordered */ protected String radiusY = RADIUS_Y_EDEFAULT; /** * The default value of the '{@link #getTopLeftRadiusX() <em>Top Left Radius X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTopLeftRadiusX() * @generated * @ordered */ protected static final String TOP_LEFT_RADIUS_X_EDEFAULT = null; /** * The cached value of the '{@link #getTopLeftRadiusX() <em>Top Left Radius X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTopLeftRadiusX() * @generated * @ordered */ protected String topLeftRadiusX = TOP_LEFT_RADIUS_X_EDEFAULT; /** * The default value of the '{@link #getTopLeftRadiusY() <em>Top Left Radius Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTopLeftRadiusY() * @generated * @ordered */ protected static final String TOP_LEFT_RADIUS_Y_EDEFAULT = null; /** * The cached value of the '{@link #getTopLeftRadiusY() <em>Top Left Radius Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTopLeftRadiusY() * @generated * @ordered */ protected String topLeftRadiusY = TOP_LEFT_RADIUS_Y_EDEFAULT; /** * The default value of the '{@link #getTopRightRadiusX() <em>Top Right Radius X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTopRightRadiusX() * @generated * @ordered */ protected static final String TOP_RIGHT_RADIUS_X_EDEFAULT = null; /** * The cached value of the '{@link #getTopRightRadiusX() <em>Top Right Radius X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTopRightRadiusX() * @generated * @ordered */ protected String topRightRadiusX = TOP_RIGHT_RADIUS_X_EDEFAULT; /** * The default value of the '{@link #getTopRightRadiusY() <em>Top Right Radius Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTopRightRadiusY() * @generated * @ordered */ protected static final String TOP_RIGHT_RADIUS_Y_EDEFAULT = null; /** * The cached value of the '{@link #getTopRightRadiusY() <em>Top Right Radius Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTopRightRadiusY() * @generated * @ordered */ protected String topRightRadiusY = TOP_RIGHT_RADIUS_Y_EDEFAULT; /** * The default value of the '{@link #getBottomLeftRadiusX() <em>Bottom Left Radius X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBottomLeftRadiusX() * @generated * @ordered */ protected static final String BOTTOM_LEFT_RADIUS_X_EDEFAULT = null; /** * The cached value of the '{@link #getBottomLeftRadiusX() <em>Bottom Left Radius X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBottomLeftRadiusX() * @generated * @ordered */ protected String bottomLeftRadiusX = BOTTOM_LEFT_RADIUS_X_EDEFAULT; /** * The default value of the '{@link #getBottomLeftRadiusY() <em>Bottom Left Radius Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBottomLeftRadiusY() * @generated * @ordered */ protected static final String BOTTOM_LEFT_RADIUS_Y_EDEFAULT = null; /** * The cached value of the '{@link #getBottomLeftRadiusY() <em>Bottom Left Radius Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBottomLeftRadiusY() * @generated * @ordered */ protected String bottomLeftRadiusY = BOTTOM_LEFT_RADIUS_Y_EDEFAULT; /** * The default value of the '{@link #getBottomRightRadiusX() <em>Bottom Right Radius X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBottomRightRadiusX() * @generated * @ordered */ protected static final String BOTTOM_RIGHT_RADIUS_X_EDEFAULT = null; /** * The cached value of the '{@link #getBottomRightRadiusX() <em>Bottom Right Radius X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBottomRightRadiusX() * @generated * @ordered */ protected String bottomRightRadiusX = BOTTOM_RIGHT_RADIUS_X_EDEFAULT; /** * The default value of the '{@link #getBottomRightRadiusY() <em>Bottom Right Radius Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBottomRightRadiusY() * @generated * @ordered */ protected static final String BOTTOM_RIGHT_RADIUS_Y_EDEFAULT = null; /** * The cached value of the '{@link #getBottomRightRadiusY() <em>Bottom Right Radius Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getBottomRightRadiusY() * @generated * @ordered */ protected String bottomRightRadiusY = BOTTOM_RIGHT_RADIUS_Y_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 = null; /** * 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 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 #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 #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 #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 RectImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return FxgPackage.Literals.RECT; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getWidth() { return width; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setWidth(String newWidth) { String oldWidth = width; width = newWidth; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__WIDTH, oldWidth, width)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getHeight() { return height; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setHeight(String newHeight) { String oldHeight = height; height = newHeight; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__HEIGHT, oldHeight, height)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getRadiusX() { return radiusX; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setRadiusX(String newRadiusX) { String oldRadiusX = radiusX; radiusX = newRadiusX; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__RADIUS_X, oldRadiusX, radiusX)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getRadiusY() { return radiusY; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setRadiusY(String newRadiusY) { String oldRadiusY = radiusY; radiusY = newRadiusY; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__RADIUS_Y, oldRadiusY, radiusY)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getTopLeftRadiusX() { return topLeftRadiusX; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTopLeftRadiusX(String newTopLeftRadiusX) { String oldTopLeftRadiusX = topLeftRadiusX; topLeftRadiusX = newTopLeftRadiusX; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__TOP_LEFT_RADIUS_X, oldTopLeftRadiusX, topLeftRadiusX)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getTopLeftRadiusY() { return topLeftRadiusY; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTopLeftRadiusY(String newTopLeftRadiusY) { String oldTopLeftRadiusY = topLeftRadiusY; topLeftRadiusY = newTopLeftRadiusY; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__TOP_LEFT_RADIUS_Y, oldTopLeftRadiusY, topLeftRadiusY)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getTopRightRadiusX() { return topRightRadiusX; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTopRightRadiusX(String newTopRightRadiusX) { String oldTopRightRadiusX = topRightRadiusX; topRightRadiusX = newTopRightRadiusX; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__TOP_RIGHT_RADIUS_X, oldTopRightRadiusX, topRightRadiusX)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getTopRightRadiusY() { return topRightRadiusY; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTopRightRadiusY(String newTopRightRadiusY) { String oldTopRightRadiusY = topRightRadiusY; topRightRadiusY = newTopRightRadiusY; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__TOP_RIGHT_RADIUS_Y, oldTopRightRadiusY, topRightRadiusY)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getBottomLeftRadiusX() { return bottomLeftRadiusX; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setBottomLeftRadiusX(String newBottomLeftRadiusX) { String oldBottomLeftRadiusX = bottomLeftRadiusX; bottomLeftRadiusX = newBottomLeftRadiusX; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__BOTTOM_LEFT_RADIUS_X, oldBottomLeftRadiusX, bottomLeftRadiusX)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getBottomLeftRadiusY() { return bottomLeftRadiusY; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setBottomLeftRadiusY(String newBottomLeftRadiusY) { String oldBottomLeftRadiusY = bottomLeftRadiusY; bottomLeftRadiusY = newBottomLeftRadiusY; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__BOTTOM_LEFT_RADIUS_Y, oldBottomLeftRadiusY, bottomLeftRadiusY)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getBottomRightRadiusX() { return bottomRightRadiusX; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setBottomRightRadiusX(String newBottomRightRadiusX) { String oldBottomRightRadiusX = bottomRightRadiusX; bottomRightRadiusX = newBottomRightRadiusX; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_X, oldBottomRightRadiusX, bottomRightRadiusX)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getBottomRightRadiusY() { return bottomRightRadiusY; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setBottomRightRadiusY(String newBottomRightRadiusY) { String oldBottomRightRadiusY = bottomRightRadiusY; bottomRightRadiusY = newBottomRightRadiusY; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_Y, oldBottomRightRadiusY, bottomRightRadiusY)); } /** * <!-- 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.RECT__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.RECT__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.RECT__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.RECT__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.RECT__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.RECT__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.RECT__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.RECT__ALPHA, oldAlpha, alpha)); } /** * <!-- 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.RECT__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.RECT__TRANSFORM, null, msgs); if (newTransform != null) msgs = ((InternalEObject)newTransform).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FxgPackage.RECT__TRANSFORM, null, msgs); msgs = basicSetTransform(newTransform, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__TRANSFORM, newTransform, newTransform)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EList<Filter> getFilters() { if (filters == null) { filters = new EObjectContainmentEList<Filter>(Filter.class, this, FxgPackage.RECT__FILTERS); } return filters; } /** * <!-- 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.RECT__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.RECT__FILL, null, msgs); if (newFill != null) msgs = ((InternalEObject)newFill).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FxgPackage.RECT__FILL, null, msgs); msgs = basicSetFill(newFill, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__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.RECT__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.RECT__STROKE, null, msgs); if (newStroke != null) msgs = ((InternalEObject)newStroke).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FxgPackage.RECT__STROKE, null, msgs); msgs = basicSetStroke(newStroke, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__STROKE, newStroke, newStroke)); } /** * <!-- 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.RECT__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.RECT__MASK, null, msgs); if (newMask != null) msgs = ((InternalEObject)newMask).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FxgPackage.RECT__MASK, null, msgs); msgs = basicSetMask(newMask, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RECT__MASK, newMask, newMask)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case FxgPackage.RECT__TRANSFORM: return basicSetTransform(null, msgs); case FxgPackage.RECT__FILTERS: return ((InternalEList<?>)getFilters()).basicRemove(otherEnd, msgs); case FxgPackage.RECT__FILL: return basicSetFill(null, msgs); case FxgPackage.RECT__STROKE: return basicSetStroke(null, msgs); case FxgPackage.RECT__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.RECT__WIDTH: return getWidth(); case FxgPackage.RECT__HEIGHT: return getHeight(); case FxgPackage.RECT__RADIUS_X: return getRadiusX(); case FxgPackage.RECT__RADIUS_Y: return getRadiusY(); case FxgPackage.RECT__TOP_LEFT_RADIUS_X: return getTopLeftRadiusX(); case FxgPackage.RECT__TOP_LEFT_RADIUS_Y: return getTopLeftRadiusY(); case FxgPackage.RECT__TOP_RIGHT_RADIUS_X: return getTopRightRadiusX(); case FxgPackage.RECT__TOP_RIGHT_RADIUS_Y: return getTopRightRadiusY(); case FxgPackage.RECT__BOTTOM_LEFT_RADIUS_X: return getBottomLeftRadiusX(); case FxgPackage.RECT__BOTTOM_LEFT_RADIUS_Y: return getBottomLeftRadiusY(); case FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_X: return getBottomRightRadiusX(); case FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_Y: return getBottomRightRadiusY(); case FxgPackage.RECT__X: return getX(); case FxgPackage.RECT__Y: return getY(); case FxgPackage.RECT__ROTATION: return getRotation(); case FxgPackage.RECT__SCALE_X: return getScaleX(); case FxgPackage.RECT__SCALE_Y: return getScaleY(); case FxgPackage.RECT__BLEND_MODE: return getBlendMode(); case FxgPackage.RECT__VISIBLE: return getVisible(); case FxgPackage.RECT__ALPHA: return getAlpha(); case FxgPackage.RECT__TRANSFORM: return getTransform(); case FxgPackage.RECT__FILTERS: return getFilters(); case FxgPackage.RECT__FILL: return getFill(); case FxgPackage.RECT__STROKE: return getStroke(); case FxgPackage.RECT__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.RECT__WIDTH: setWidth((String)newValue); return; case FxgPackage.RECT__HEIGHT: setHeight((String)newValue); return; case FxgPackage.RECT__RADIUS_X: setRadiusX((String)newValue); return; case FxgPackage.RECT__RADIUS_Y: setRadiusY((String)newValue); return; case FxgPackage.RECT__TOP_LEFT_RADIUS_X: setTopLeftRadiusX((String)newValue); return; case FxgPackage.RECT__TOP_LEFT_RADIUS_Y: setTopLeftRadiusY((String)newValue); return; case FxgPackage.RECT__TOP_RIGHT_RADIUS_X: setTopRightRadiusX((String)newValue); return; case FxgPackage.RECT__TOP_RIGHT_RADIUS_Y: setTopRightRadiusY((String)newValue); return; case FxgPackage.RECT__BOTTOM_LEFT_RADIUS_X: setBottomLeftRadiusX((String)newValue); return; case FxgPackage.RECT__BOTTOM_LEFT_RADIUS_Y: setBottomLeftRadiusY((String)newValue); return; case FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_X: setBottomRightRadiusX((String)newValue); return; case FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_Y: setBottomRightRadiusY((String)newValue); return; case FxgPackage.RECT__X: setX((Double)newValue); return; case FxgPackage.RECT__Y: setY((Double)newValue); return; case FxgPackage.RECT__ROTATION: setRotation((Double)newValue); return; case FxgPackage.RECT__SCALE_X: setScaleX((Double)newValue); return; case FxgPackage.RECT__SCALE_Y: setScaleY((Double)newValue); return; case FxgPackage.RECT__BLEND_MODE: setBlendMode((BlendMode)newValue); return; case FxgPackage.RECT__VISIBLE: setVisible((Boolean)newValue); return; case FxgPackage.RECT__ALPHA: setAlpha((Double)newValue); return; case FxgPackage.RECT__TRANSFORM: setTransform((Transform)newValue); return; case FxgPackage.RECT__FILTERS: getFilters().clear(); getFilters().addAll((Collection<? extends Filter>)newValue); return; case FxgPackage.RECT__FILL: setFill((Fill)newValue); return; case FxgPackage.RECT__STROKE: setStroke((Stroke)newValue); return; case FxgPackage.RECT__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.RECT__WIDTH: setWidth(WIDTH_EDEFAULT); return; case FxgPackage.RECT__HEIGHT: setHeight(HEIGHT_EDEFAULT); return; case FxgPackage.RECT__RADIUS_X: setRadiusX(RADIUS_X_EDEFAULT); return; case FxgPackage.RECT__RADIUS_Y: setRadiusY(RADIUS_Y_EDEFAULT); return; case FxgPackage.RECT__TOP_LEFT_RADIUS_X: setTopLeftRadiusX(TOP_LEFT_RADIUS_X_EDEFAULT); return; case FxgPackage.RECT__TOP_LEFT_RADIUS_Y: setTopLeftRadiusY(TOP_LEFT_RADIUS_Y_EDEFAULT); return; case FxgPackage.RECT__TOP_RIGHT_RADIUS_X: setTopRightRadiusX(TOP_RIGHT_RADIUS_X_EDEFAULT); return; case FxgPackage.RECT__TOP_RIGHT_RADIUS_Y: setTopRightRadiusY(TOP_RIGHT_RADIUS_Y_EDEFAULT); return; case FxgPackage.RECT__BOTTOM_LEFT_RADIUS_X: setBottomLeftRadiusX(BOTTOM_LEFT_RADIUS_X_EDEFAULT); return; case FxgPackage.RECT__BOTTOM_LEFT_RADIUS_Y: setBottomLeftRadiusY(BOTTOM_LEFT_RADIUS_Y_EDEFAULT); return; case FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_X: setBottomRightRadiusX(BOTTOM_RIGHT_RADIUS_X_EDEFAULT); return; case FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_Y: setBottomRightRadiusY(BOTTOM_RIGHT_RADIUS_Y_EDEFAULT); return; case FxgPackage.RECT__X: setX(X_EDEFAULT); return; case FxgPackage.RECT__Y: setY(Y_EDEFAULT); return; case FxgPackage.RECT__ROTATION: setRotation(ROTATION_EDEFAULT); return; case FxgPackage.RECT__SCALE_X: setScaleX(SCALE_X_EDEFAULT); return; case FxgPackage.RECT__SCALE_Y: setScaleY(SCALE_Y_EDEFAULT); return; case FxgPackage.RECT__BLEND_MODE: setBlendMode(BLEND_MODE_EDEFAULT); return; case FxgPackage.RECT__VISIBLE: setVisible(VISIBLE_EDEFAULT); return; case FxgPackage.RECT__ALPHA: setAlpha(ALPHA_EDEFAULT); return; case FxgPackage.RECT__TRANSFORM: setTransform((Transform)null); return; case FxgPackage.RECT__FILTERS: getFilters().clear(); return; case FxgPackage.RECT__FILL: setFill((Fill)null); return; case FxgPackage.RECT__STROKE: setStroke((Stroke)null); return; case FxgPackage.RECT__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.RECT__WIDTH: return WIDTH_EDEFAULT == null ? width != null : !WIDTH_EDEFAULT.equals(width); case FxgPackage.RECT__HEIGHT: return HEIGHT_EDEFAULT == null ? height != null : !HEIGHT_EDEFAULT.equals(height); case FxgPackage.RECT__RADIUS_X: return RADIUS_X_EDEFAULT == null ? radiusX != null : !RADIUS_X_EDEFAULT.equals(radiusX); case FxgPackage.RECT__RADIUS_Y: return RADIUS_Y_EDEFAULT == null ? radiusY != null : !RADIUS_Y_EDEFAULT.equals(radiusY); case FxgPackage.RECT__TOP_LEFT_RADIUS_X: return TOP_LEFT_RADIUS_X_EDEFAULT == null ? topLeftRadiusX != null : !TOP_LEFT_RADIUS_X_EDEFAULT.equals(topLeftRadiusX); case FxgPackage.RECT__TOP_LEFT_RADIUS_Y: return TOP_LEFT_RADIUS_Y_EDEFAULT == null ? topLeftRadiusY != null : !TOP_LEFT_RADIUS_Y_EDEFAULT.equals(topLeftRadiusY); case FxgPackage.RECT__TOP_RIGHT_RADIUS_X: return TOP_RIGHT_RADIUS_X_EDEFAULT == null ? topRightRadiusX != null : !TOP_RIGHT_RADIUS_X_EDEFAULT.equals(topRightRadiusX); case FxgPackage.RECT__TOP_RIGHT_RADIUS_Y: return TOP_RIGHT_RADIUS_Y_EDEFAULT == null ? topRightRadiusY != null : !TOP_RIGHT_RADIUS_Y_EDEFAULT.equals(topRightRadiusY); case FxgPackage.RECT__BOTTOM_LEFT_RADIUS_X: return BOTTOM_LEFT_RADIUS_X_EDEFAULT == null ? bottomLeftRadiusX != null : !BOTTOM_LEFT_RADIUS_X_EDEFAULT.equals(bottomLeftRadiusX); case FxgPackage.RECT__BOTTOM_LEFT_RADIUS_Y: return BOTTOM_LEFT_RADIUS_Y_EDEFAULT == null ? bottomLeftRadiusY != null : !BOTTOM_LEFT_RADIUS_Y_EDEFAULT.equals(bottomLeftRadiusY); case FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_X: return BOTTOM_RIGHT_RADIUS_X_EDEFAULT == null ? bottomRightRadiusX != null : !BOTTOM_RIGHT_RADIUS_X_EDEFAULT.equals(bottomRightRadiusX); case FxgPackage.RECT__BOTTOM_RIGHT_RADIUS_Y: return BOTTOM_RIGHT_RADIUS_Y_EDEFAULT == null ? bottomRightRadiusY != null : !BOTTOM_RIGHT_RADIUS_Y_EDEFAULT.equals(bottomRightRadiusY); case FxgPackage.RECT__X: return X_EDEFAULT == null ? x != null : !X_EDEFAULT.equals(x); case FxgPackage.RECT__Y: return Y_EDEFAULT == null ? y != null : !Y_EDEFAULT.equals(y); case FxgPackage.RECT__ROTATION: return ROTATION_EDEFAULT == null ? rotation != null : !ROTATION_EDEFAULT.equals(rotation); case FxgPackage.RECT__SCALE_X: return SCALE_X_EDEFAULT == null ? scaleX != null : !SCALE_X_EDEFAULT.equals(scaleX); case FxgPackage.RECT__SCALE_Y: return SCALE_Y_EDEFAULT == null ? scaleY != null : !SCALE_Y_EDEFAULT.equals(scaleY); case FxgPackage.RECT__BLEND_MODE: return blendMode != BLEND_MODE_EDEFAULT; case FxgPackage.RECT__VISIBLE: return VISIBLE_EDEFAULT == null ? visible != null : !VISIBLE_EDEFAULT.equals(visible); case FxgPackage.RECT__ALPHA: return ALPHA_EDEFAULT == null ? alpha != null : !ALPHA_EDEFAULT.equals(alpha); case FxgPackage.RECT__TRANSFORM: return transform != null; case FxgPackage.RECT__FILTERS: return filters != null && !filters.isEmpty(); case FxgPackage.RECT__FILL: return fill != null; case FxgPackage.RECT__STROKE: return stroke != null; case FxgPackage.RECT__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(" (width: "); result.append(width); result.append(", height: "); result.append(height); result.append(", radiusX: "); result.append(radiusX); result.append(", radiusY: "); result.append(radiusY); result.append(", topLeftRadiusX: "); result.append(topLeftRadiusX); result.append(", topLeftRadiusY: "); result.append(topLeftRadiusY); result.append(", topRightRadiusX: "); result.append(topRightRadiusX); result.append(", topRightRadiusY: "); result.append(topRightRadiusY); result.append(", bottomLeftRadiusX: "); result.append(bottomLeftRadiusX); result.append(", bottomLeftRadiusY: "); result.append(bottomLeftRadiusY); result.append(", bottomRightRadiusX: "); result.append(bottomRightRadiusX); result.append(", bottomRightRadiusY: "); result.append(bottomRightRadiusY); 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(')'); return result.toString(); } } //RectImpl