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