Skip to content

Commit

Permalink
krendering: fix LineStyle for custom patterns with repeating segments.
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
NiklasRentzCAU committed Jun 17, 2020
1 parent 120f3ce commit 562190e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lineStyle" lowerBound="1"
eType="#//LineStyle"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dashPattern" upperBound="-1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dashPattern" unique="false"
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dashOffset" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="HorizontalAlignment">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public interface KLineStyle extends KStyle {
* <!-- end-user-doc -->
* @return the value of the '<em>Dash Pattern</em>' attribute list.
* @see de.cau.cs.kieler.klighd.krendering.KRenderingPackage#getKLineStyle_DashPattern()
* @model
* @model unique="false"
* @generated
*/
EList<Float> getDashPattern();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import org.eclipse.emf.ecore.impl.ENotificationImpl;

import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
import org.eclipse.emf.ecore.util.EDataTypeEList;

/**
* <!-- begin-user-doc -->
Expand Down Expand Up @@ -142,7 +142,7 @@ public void setLineStyle(LineStyle newLineStyle) {
*/
public EList<Float> getDashPattern() {
if (dashPattern == null) {
dashPattern = new EDataTypeUniqueEList<Float>(Float.class, this, KRenderingPackage.KLINE_STYLE__DASH_PATTERN);
dashPattern = new EDataTypeEList<Float>(Float.class, this, KRenderingPackage.KLINE_STYLE__DASH_PATTERN);
}
return dashPattern;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2557,7 +2557,7 @@ public void initializePackageContents() {

initEClass(kLineStyleEClass, KLineStyle.class, "KLineStyle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getKLineStyle_LineStyle(), this.getLineStyle(), "lineStyle", null, 1, 1, KLineStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getKLineStyle_DashPattern(), ecorePackage.getEFloat(), "dashPattern", null, 0, -1, KLineStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getKLineStyle_DashPattern(), ecorePackage.getEFloat(), "dashPattern", null, 0, -1, KLineStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getKLineStyle_DashOffset(), ecorePackage.getEFloat(), "dashOffset", null, 0, 1, KLineStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

initEClass(kVerticalAlignmentEClass, KVerticalAlignment.class, "KVerticalAlignment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
Expand Down

0 comments on commit 562190e

Please sign in to comment.