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
9 * VTT Technical Research Centre of Finland - initial API and implementation
10 *******************************************************************************/
11 package org.simantics.trend.configuration;
13 import java.util.Collections;
14 import java.util.List;
16 import org.simantics.databoard.util.Bean;
20 * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
22 public class TrendSpec extends Bean {
24 public static final TrendSpec EMPTY;
26 public String name = "Title Here";
28 public YAxisMode axisMode;
30 public int singleAxisShowLegendsMaxLegends = 10;
32 public ViewProfile viewProfile;
35 * Set externally to indicate that currently an experiment is running which
36 * means {@link ViewProfile#trackExperimentTime} setting should be enforced.
38 public transient boolean experimentIsRunning;
41 public List<TrendItem> items;
44 EMPTY = new TrendSpec();
49 * Sort items by index, label1, label2
51 public void sortItems()
53 Collections.sort(items);