]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/MonitorInfo.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.template2d.ui / src / org / simantics / modeling / template2d / ui / function / MonitorInfo.java
1 /*******************************************************************************
2  * Copyright (c) 2012 Association for Decentralized Information Management in
3  * Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.modeling.template2d.ui.function;
13
14 import org.simantics.databoard.annotations.Optional;
15 import org.simantics.databoard.util.Bean;
16 import org.simantics.datatypes.literal.Font;
17 import org.simantics.datatypes.literal.RGB;
18 import org.simantics.db.Resource;
19
20 public class MonitorInfo extends Bean {
21         private Font font = new Font("Arial", 10, "Normal");
22         private RGB.Integer color = new RGB.Integer(0,0,0);
23         private String text = new  String("");
24         private double[] transform = new double[]{1.0,0,0,1.0,0,0};
25         
26         @Optional
27         private Resource resource = null;
28         
29         public Resource getResource() {
30                 return resource;
31         }
32
33         public void setResource(Resource resource) {
34                 this.resource = resource;
35         }
36
37         public String getText() {
38                 return text;
39         }
40
41         public void setText(String text) {
42                 this.text = text;
43         }
44
45         public Font getFont() {
46                 return font;
47         }
48
49         public void setFont(Font dataFont) {
50                 this.font = dataFont;
51         }
52
53         public RGB.Integer getColor() {
54                 return color;
55         }
56
57         public void setColor(RGB.Integer color) {
58                 this.color = color;
59         }
60         
61         public double[] getTransform() {
62                 return transform;
63         }
64
65         public void setTransform(double[] transform) {
66                 this.transform = transform;
67         }
68
69
70 }