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