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 org.simantics.databoard.annotations.Optional;
\r
15 import org.simantics.databoard.util.Bean;
\r
16 import org.simantics.datatypes.literal.Font;
\r
17 import org.simantics.datatypes.literal.RGB;
\r
18 import org.simantics.db.Resource;
\r
20 public class MonitorInfo extends Bean {
\r
21 private Font font = new Font("Arial", 10, "Normal");
\r
22 private RGB.Integer color = new RGB.Integer(0,0,0);
\r
23 private String text = new String("");
\r
24 private double[] transform = new double[]{1.0,0,0,1.0,0,0};
\r
27 private Resource resource = null;
\r
29 public Resource getResource() {
\r
33 public void setResource(Resource resource) {
\r
34 this.resource = resource;
\r
37 public String getText() {
\r
41 public void setText(String text) {
\r
45 public Font getFont() {
\r
49 public void setFont(Font dataFont) {
\r
50 this.font = dataFont;
\r
53 public RGB.Integer getColor() {
\r
57 public void setColor(RGB.Integer color) {
\r
61 public double[] getTransform() {
\r
65 public void setTransform(double[] transform) {
\r
66 this.transform = transform;
\r