]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java
Statements request is missing dec
[simantics/platform.git] / bundles / org.simantics.charts / src / org / simantics / charts / query / ChartAndSubscriptionItemData.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2011 Association for Decentralized Information Management in
3  * Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.charts.query;
13
14 import org.simantics.charts.ui.ChartAndSubscriptionItemDialog;
15 import org.simantics.databoard.annotations.Optional;
16 import org.simantics.databoard.util.Bean;
17 import org.simantics.trend.configuration.Scale;
18 import org.simantics.trend.configuration.TrendItem.DrawMode;
19
20 /**
21  * This class wraps Chart Item and referenced Subscription Item data. 
22  * 
23  * @author toni.kalajainen
24  */
25 public class ChartAndSubscriptionItemData extends Bean {
26
27         // Input
28         public int index;
29         @Optional public String chartName;
30         @Optional public String variableReference;
31         @Optional public String label;
32         @Optional public String[] subscriptions;
33         
34         public boolean binaryMode;
35         public boolean hasSubscriptionItem;
36         
37         /**
38          * Workaround: there's currently no proper support for modifying the following attributes
39          * <ul>
40          * <li>sampling interval</li>
41          * <li>deadband</li>
42          * </ul>
43          * on the fly so by default we simply do not allow it. Set this to
44          * <code>true</code> before opening {@link ChartAndSubscriptionItemDialog}
45          * to allow the user to edit the listed values.
46          */
47         public boolean mutableCollectionSettings = false;
48         
49         // Output
50         @Optional public String subscription = "Default";
51         @Optional public String unit = "";
52         @Optional public Double min, max, deadband, interval, gain, bias;
53         @Optional public DrawMode drawmode;
54         @Optional public Scale scale;
55
56         @Optional public Float strokeWidth;
57         @Optional public float[] color;
58
59 }