]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.trend/src/org/simantics/trend/configuration/TrendSpec.java
Fixed HistoryUtil.importHistoryArchive to open file in read-only mode
[simantics/platform.git] / bundles / org.simantics.trend / src / org / simantics / trend / configuration / TrendSpec.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 java.util.Collections;
14 import java.util.List;
15
16 import org.simantics.databoard.util.Bean;
17
18 /**
19  * 
20  * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
21  */
22 public class TrendSpec extends Bean {
23
24         public static final TrendSpec EMPTY;
25         
26         public String name = "Title Here";
27
28         public YAxisMode axisMode;
29         
30         public ViewProfile viewProfile;
31
32         /**
33          * Set externally to indicate that currently an experiment is running which
34          * means {@link ViewProfile#trackExperimentTime} setting should be enforced.
35          */
36         public transient boolean experimentIsRunning;
37
38         /** Trend items */
39         public List<TrendItem> items;
40
41         static {
42                  EMPTY = new TrendSpec();
43                  EMPTY.init();
44         }
45         
46         /**
47          * Sort items by index, label1, label2
48          */
49         public void sortItems()
50         {
51                 Collections.sort(items);
52         }
53         
54 }