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