]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/MonitorInfo.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.modeling.template2d.ui / src / org / simantics / modeling / template2d / ui / function / MonitorInfo.java
1 /*******************************************************************************\r
2  * Copyright (c) 2012 Association for Decentralized Information Management in\r
3  * Industry THTH ry.\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
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.modeling.template2d.ui.function;\r
13 \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
19 \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
25         \r
26         @Optional\r
27         private Resource resource = null;\r
28         \r
29         public Resource getResource() {\r
30                 return resource;\r
31         }\r
32 \r
33         public void setResource(Resource resource) {\r
34                 this.resource = resource;\r
35         }\r
36 \r
37         public String getText() {\r
38                 return text;\r
39         }\r
40 \r
41         public void setText(String text) {\r
42                 this.text = text;\r
43         }\r
44 \r
45         public Font getFont() {\r
46                 return font;\r
47         }\r
48 \r
49         public void setFont(Font dataFont) {\r
50                 this.font = dataFont;\r
51         }\r
52 \r
53         public RGB.Integer getColor() {\r
54                 return color;\r
55         }\r
56 \r
57         public void setColor(RGB.Integer color) {\r
58                 this.color = color;\r
59         }\r
60         \r
61         public double[] getTransform() {\r
62                 return transform;\r
63         }\r
64 \r
65         public void setTransform(double[] transform) {\r
66                 this.transform = transform;\r
67         }\r
68 \r
69 \r
70 }\r