X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fadapter%2FFlagTextInfo.java;h=84fde369aee5b6740109a1de0f86ee6b6dfc649f;hb=617b9475710b80a125597f222f9777224972ce72;hp=fb9fbb6a6375b434553da2eaaa3561c2e37b4fa4;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/FlagTextInfo.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/FlagTextInfo.java index fb9fbb6a6..84fde369a 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/FlagTextInfo.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/FlagTextInfo.java @@ -1,58 +1,58 @@ -/******************************************************************************* - * 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.diagram.adapter; - -import org.simantics.databoard.Bindings; -import org.simantics.databoard.annotations.Optional; -import org.simantics.databoard.binding.Binding; -import org.simantics.databoard.util.Bean; -import org.simantics.datatypes.literal.Font; -import org.simantics.datatypes.literal.RGB; -import org.simantics.g2d.utils.Alignment; - -/** - * @author Teemu Mätäsniemi - * @author Tuukka Lehtonen - */ -public class FlagTextInfo extends Bean { - - public static final Binding BINDING = Bindings.getBindingUnchecked(FlagTextInfo.class); - - public String id; - - @Optional - public Font font; - @Optional - public RGB.Integer color; - @Optional - public String text; - - @Optional - public double[] transform; - - public Alignment hAlignment; - public Alignment vAlignment; - - public float width = -1.0f; - public float borderWidth = -1.0f; - public boolean wrapText = true; - - @Optional - public RGB.Integer borderColor; - @Optional - public RGB.Integer backgroundColor; - - public FlagTextInfo() { - super(BINDING); - } - -} +/******************************************************************************* + * 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.diagram.adapter; + +import org.simantics.databoard.Bindings; +import org.simantics.databoard.annotations.Optional; +import org.simantics.databoard.binding.Binding; +import org.simantics.databoard.util.Bean; +import org.simantics.datatypes.literal.Font; +import org.simantics.datatypes.literal.RGB; +import org.simantics.g2d.utils.Alignment; + +/** + * @author Teemu Mätäsniemi + * @author Tuukka Lehtonen + */ +public class FlagTextInfo extends Bean { + + public static final Binding BINDING = Bindings.getBindingUnchecked(FlagTextInfo.class); + + public String id; + + @Optional + public Font font; + @Optional + public RGB.Integer color; + @Optional + public String text; + + @Optional + public double[] transform; + + public Alignment hAlignment; + public Alignment vAlignment; + + public float width = -1.0f; + public float borderWidth = -1.0f; + public boolean wrapText = true; + + @Optional + public RGB.Integer borderColor; + @Optional + public RGB.Integer backgroundColor; + + public FlagTextInfo() { + super(BINDING); + } + +}