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.diagram.adapter;
14 import org.simantics.databoard.Bindings;
15 import org.simantics.databoard.annotations.Optional;
16 import org.simantics.databoard.binding.Binding;
17 import org.simantics.databoard.util.Bean;
18 import org.simantics.datatypes.literal.Font;
19 import org.simantics.datatypes.literal.RGB;
20 import org.simantics.g2d.utils.Alignment;
23 * @author Teemu Mätäsniemi
24 * @author Tuukka Lehtonen
26 public class FlagTextInfo extends Bean {
28 public static final Binding BINDING = Bindings.getBindingUnchecked(FlagTextInfo.class);
35 public RGB.Integer color;
40 public double[] transform;
42 public Alignment hAlignment;
43 public Alignment vAlignment;
45 public float width = -1.0f;
46 public float borderWidth = -1.0f;
47 public boolean wrapText = true;
50 public RGB.Integer borderColor;
52 public RGB.Integer backgroundColor;
54 public FlagTextInfo() {