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