diff options
Diffstat (limited to 'plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/style/impl/CSSFillStyleDelegate.java')
-rw-r--r-- | plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/style/impl/CSSFillStyleDelegate.java | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/style/impl/CSSFillStyleDelegate.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/style/impl/CSSFillStyleDelegate.java index cf8e083cfa3..70b1d784232 100644 --- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/style/impl/CSSFillStyleDelegate.java +++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/style/impl/CSSFillStyleDelegate.java @@ -1,6 +1,6 @@ /***************************************************************************** * Copyright (c) 2012 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 @@ -29,28 +29,31 @@ public class CSSFillStyleDelegate implements CSSFillStyle { this.engine = engine; } - //////////////////////////////////////////////// - // Implements a getter for each CSS property // - //////////////////////////////////////////////// + // ////////////////////////////////////////////// + // Implements a getter for each CSS property // + // ////////////////////////////////////////////// + @Override public int getCSSFillColor() { CSSValue cssValue = engine.retrievePropertyValue(fillStyle, "fillColor"); - if(cssValue == null) { + if (cssValue == null) { Object defaultValue = NotationPackage.eINSTANCE.getFillStyle_FillColor().getDefaultValue(); - return (Integer)defaultValue; + return (Integer) defaultValue; } - return (Integer)engine.convert(cssValue, "GMFColor", null); + return (Integer) engine.convert(cssValue, "GMFColor", null); } + @Override public int getCSSTransparency() { CSSValue cssValue = engine.retrievePropertyValue(fillStyle, "transparency"); - if(cssValue == null) { + if (cssValue == null) { Object defaultValue = NotationPackage.eINSTANCE.getFillStyle_Transparency().getDefaultValue(); - return (Integer)defaultValue; + return (Integer) defaultValue; } - return (Integer)engine.convert(cssValue, Integer.class, null); + return (Integer) engine.convert(cssValue, Integer.class, null); } + @Override public org.eclipse.gmf.runtime.notation.datatype.GradientData getCSSGradient() { return GradientHelper.computeGradient(engine, fillStyle); } |