1 /*******************************************************************************
2 * Copyright (c) 2012 Association for Decentralized Information Management in
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.modeling.template2d.ui.function;
14 import java.awt.geom.AffineTransform;
15 import java.util.ArrayList;
16 import java.util.List;
18 import org.simantics.databoard.annotations.Identifier;
19 import org.simantics.databoard.annotations.Optional;
20 import org.simantics.databoard.util.Bean;
22 public class FlagTableInfo extends Bean.Id {
24 private double[] transform = new double[] { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 };
26 private Float width = 0.0F;
28 private Float rowHeight = 10.0F;
30 private Integer rowCount = -1;
32 private Float weightTotal = 0.0F;
35 private Integer alignment = null;
37 public List<FlagTableColumnInfo> columns = new ArrayList<FlagTableColumnInfo>();
39 public transient AffineTransform affineTransform;
41 public FlagTableInfo(){
44 public void addColumn(FlagTableColumnInfo column){
48 public void setWeightTotal(Float total){
52 public double[] getTransform(){
56 public void setTransform(double[] transform){
57 this.transform = transform;
60 public Float getWidth() {
64 public void setWidth(Float width) {
68 public Float getRowHeight() {
72 public void setRowHeight(Float rowHeigth) {
73 this.rowHeight = rowHeigth;
76 public Integer getRowCount() {
80 public void setRowCount(Integer rowCount) {
81 this.rowCount = rowCount;
84 public Integer getAlignment() {
88 public void setAlignment(Integer alignment) {
89 this.alignment = alignment;
92 public Float getWeightTotal() {