]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableInfo.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.template2d.ui / src / org / simantics / modeling / template2d / ui / function / FlagTableInfo.java
index 0b7658de92bb89c8520698b59677c6684b47a8b5..4dbff3e15530c100066a0b970275a5f9b187f188 100644 (file)
@@ -1,95 +1,95 @@
-/*******************************************************************************\r
- * Copyright (c) 2012 Association for Decentralized Information Management in\r
- * Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.modeling.template2d.ui.function;\r
-\r
-import java.awt.geom.AffineTransform;\r
-import java.util.ArrayList;\r
-import java.util.List;\r
-\r
-import org.simantics.databoard.annotations.Identifier;\r
-import org.simantics.databoard.annotations.Optional;\r
-import org.simantics.databoard.util.Bean;\r
-\r
-public class FlagTableInfo extends Bean.Id {\r
-       @Identifier\r
-       private double[] transform = new double[] { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 };\r
-       @Identifier\r
-       private Float width = 0.0F;\r
-       @Identifier\r
-       private Float rowHeight = 10.0F;\r
-       @Identifier\r
-       private Integer rowCount = -1;\r
-       @Identifier\r
-       private Float weightTotal = 0.0F;\r
-       @Identifier\r
-       @Optional\r
-       private Integer alignment = null;\r
-       @Identifier\r
-       public List<FlagTableColumnInfo> columns = new ArrayList<FlagTableColumnInfo>();\r
-\r
-       public transient AffineTransform affineTransform;\r
-\r
-       public FlagTableInfo(){\r
-       }\r
-       \r
-       public void addColumn(FlagTableColumnInfo column){\r
-               columns.add(column);\r
-       }\r
-       \r
-       public void setWeightTotal(Float total){\r
-               weightTotal = total;\r
-       }\r
-\r
-       public double[] getTransform(){\r
-               return transform;\r
-       }\r
-       \r
-       public void setTransform(double[] transform){\r
-               this.transform = transform;\r
-       }\r
-\r
-       public Float getWidth() {\r
-               return width;\r
-       }\r
-\r
-       public void setWidth(Float width) {\r
-               this.width = width;\r
-       }\r
-\r
-       public Float getRowHeight() {\r
-               return rowHeight;\r
-       }\r
-\r
-       public void setRowHeight(Float rowHeigth) {\r
-               this.rowHeight = rowHeigth;\r
-       }\r
-\r
-       public Integer getRowCount() {\r
-               return rowCount;\r
-       }\r
-\r
-       public void setRowCount(Integer rowCount) {\r
-               this.rowCount = rowCount;\r
-       }\r
-\r
-       public Integer getAlignment() {\r
-               return alignment;\r
-       }\r
-\r
-       public void setAlignment(Integer alignment) {\r
-               this.alignment = alignment;\r
-       }\r
-\r
-       public Float getWeightTotal() {\r
-               return weightTotal;\r
-       }\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2012 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * 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:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.modeling.template2d.ui.function;
+
+import java.awt.geom.AffineTransform;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.simantics.databoard.annotations.Identifier;
+import org.simantics.databoard.annotations.Optional;
+import org.simantics.databoard.util.Bean;
+
+public class FlagTableInfo extends Bean.Id {
+       @Identifier
+       private double[] transform = new double[] { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 };
+       @Identifier
+       private Float width = 0.0F;
+       @Identifier
+       private Float rowHeight = 10.0F;
+       @Identifier
+       private Integer rowCount = -1;
+       @Identifier
+       private Float weightTotal = 0.0F;
+       @Identifier
+       @Optional
+       private Integer alignment = null;
+       @Identifier
+       public List<FlagTableColumnInfo> columns = new ArrayList<FlagTableColumnInfo>();
+
+       public transient AffineTransform affineTransform;
+
+       public FlagTableInfo(){
+       }
+       
+       public void addColumn(FlagTableColumnInfo column){
+               columns.add(column);
+       }
+       
+       public void setWeightTotal(Float total){
+               weightTotal = total;
+       }
+
+       public double[] getTransform(){
+               return transform;
+       }
+       
+       public void setTransform(double[] transform){
+               this.transform = transform;
+       }
+
+       public Float getWidth() {
+               return width;
+       }
+
+       public void setWidth(Float width) {
+               this.width = width;
+       }
+
+       public Float getRowHeight() {
+               return rowHeight;
+       }
+
+       public void setRowHeight(Float rowHeigth) {
+               this.rowHeight = rowHeigth;
+       }
+
+       public Integer getRowCount() {
+               return rowCount;
+       }
+
+       public void setRowCount(Integer rowCount) {
+               this.rowCount = rowCount;
+       }
+
+       public Integer getAlignment() {
+               return alignment;
+       }
+
+       public void setAlignment(Integer alignment) {
+               this.alignment = alignment;
+       }
+
+       public Float getWeightTotal() {
+               return weightTotal;
+       }
+}