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
9 * VTT Technical Research Centre of Finland - initial API and implementation
\r
10 *******************************************************************************/
\r
11 package org.simantics.trend.configuration;
\r
13 import org.simantics.databoard.util.Bean;
\r
16 * ViewProfile specifies a view settings of a chart.
\r
18 * ViewProfiles can exist in different scopes: Transient, Model, Workspace
\r
20 * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
\r
22 public class ViewProfile extends Bean {
\r
24 public String profileName;
\r
26 public boolean showMilestones;
\r
29 * Whether to render the value grid in the chart or not.
\r
31 public boolean showGrid;
\r
33 public TimeWindow timeWindow;
\r
36 * If <code>true</code> the momentary value hairline shall follow current
\r
37 * experiment time when simulation is in running state.
\r
39 public boolean trackExperimentTime;
\r
42 * Relative position in (0,0)x(1,1) for the momentary value view.
\r
44 public double valueViewPositionX = 1;
\r
45 public double valueViewPositionY = 0;
\r
48 * Either one color (3 values) or a vertical color gradient (6 values).
\r
50 public float[] backgroundColor;
\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
56 public float[] gridColor;
\r