1 /*******************************************************************************
2 * Copyright (c) 2007, 2011 Association for Decentralized Information Management in
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
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.charts.query;
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;
21 * This class wraps Chart Item and referenced Subscription Item data.
23 * @author toni.kalajainen
25 public class ChartAndSubscriptionItemData extends Bean {
29 @Optional public String chartName;
30 @Optional public String variableReference;
31 @Optional public String label;
32 @Optional public String[] subscriptions;
34 public boolean binaryMode;
35 public boolean hasSubscriptionItem;
38 * Workaround: there's currently no proper support for modifying the following attributes
40 * <li>sampling interval</li>
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.
47 public boolean mutableCollectionSettings = false;
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;
56 @Optional public Float strokeWidth;
57 @Optional public float[] color;