]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.trend/src/org/simantics/trend/configuration/ViewProfile.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.trend / src / org / simantics / trend / configuration / ViewProfile.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.trend.configuration;\r
12 \r
13 import org.simantics.databoard.util.Bean;\r
14 \r
15 /**\r
16  * ViewProfile specifies a view settings of a chart.\r
17  * \r
18  * ViewProfiles can exist in different scopes: Transient, Model, Workspace\r
19  *\r
20  * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
21  */\r
22 public class ViewProfile extends Bean {\r
23 \r
24     public String profileName;\r
25 \r
26     public boolean showMilestones;\r
27 \r
28     /**\r
29      * Whether to render the value grid in the chart or not.\r
30      */\r
31     public boolean showGrid;\r
32 \r
33     public TimeWindow timeWindow;\r
34 \r
35     /**\r
36      * If <code>true</code> the momentary value hairline shall follow current\r
37      * experiment time when simulation is in running state.\r
38      */\r
39     public boolean trackExperimentTime;\r
40 \r
41     /**\r
42      * Relative position in (0,0)x(1,1) for the momentary value view.\r
43      */\r
44     public double valueViewPositionX = 1;\r
45     public double valueViewPositionY = 0;\r
46 \r
47     /**\r
48      * Either one color (3 values) or a vertical color gradient (6 values).\r
49      */\r
50     public float[] backgroundColor;\r
51 \r
52     /**\r
53      * Optional grid color in RGB, 3 float values.\r
54      * By default (0,7451, 0,7451, 0,8627), i.e. (190, 190, 220) or <code>#BEBEDC</code>.\r
55      */\r
56     public float[] gridColor;\r
57 \r
58 }\r