--- /dev/null
+/*******************************************************************************\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