]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.trend/src/org/simantics/trend/configuration/ViewProfile.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.trend / src / org / simantics / trend / configuration / ViewProfile.java
diff --git a/bundles/org.simantics.trend/src/org/simantics/trend/configuration/ViewProfile.java b/bundles/org.simantics.trend/src/org/simantics/trend/configuration/ViewProfile.java
new file mode 100644 (file)
index 0000000..f90e5cd
--- /dev/null
@@ -0,0 +1,58 @@
+/*******************************************************************************\r
+ * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ *     VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.trend.configuration;\r
+\r
+import org.simantics.databoard.util.Bean;\r
+\r
+/**\r
+ * ViewProfile specifies a view settings of a chart.\r
+ * \r
+ * ViewProfiles can exist in different scopes: Transient, Model, Workspace\r
+ *\r
+ * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
+ */\r
+public class ViewProfile extends Bean {\r
+\r
+    public String profileName;\r
+\r
+    public boolean showMilestones;\r
+\r
+    /**\r
+     * Whether to render the value grid in the chart or not.\r
+     */\r
+    public boolean showGrid;\r
+\r
+    public TimeWindow timeWindow;\r
+\r
+    /**\r
+     * If <code>true</code> the momentary value hairline shall follow current\r
+     * experiment time when simulation is in running state.\r
+     */\r
+    public boolean trackExperimentTime;\r
+\r
+    /**\r
+     * Relative position in (0,0)x(1,1) for the momentary value view.\r
+     */\r
+    public double valueViewPositionX = 1;\r
+    public double valueViewPositionY = 0;\r
+\r
+    /**\r
+     * Either one color (3 values) or a vertical color gradient (6 values).\r
+     */\r
+    public float[] backgroundColor;\r
+\r
+    /**\r
+     * Optional grid color in RGB, 3 float values.\r
+     * By default (0,7451, 0,7451, 0,8627), i.e. (190, 190, 220) or <code>#BEBEDC</code>.\r
+     */\r
+    public float[] gridColor;\r
+\r
+}\r