X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.template2d.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Ftemplate2d%2Fui%2Ffunction%2FFlagTableInfo.java;fp=bundles%2Forg.simantics.modeling.template2d.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Ftemplate2d%2Fui%2Ffunction%2FFlagTableInfo.java;h=4dbff3e15530c100066a0b970275a5f9b187f188;hp=0b7658de92bb89c8520698b59677c6684b47a8b5;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableInfo.java b/bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableInfo.java index 0b7658de9..4dbff3e15 100644 --- a/bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableInfo.java +++ b/bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableInfo.java @@ -1,95 +1,95 @@ -/******************************************************************************* - * 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 columns = new ArrayList(); - - 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; - } -} +/******************************************************************************* + * 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 columns = new ArrayList(); + + 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; + } +}