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 java.util.UUID;
16 import org.simantics.databoard.annotations.Optional;
17 import org.simantics.db.Resource;
18 import org.simantics.trend.configuration.Scale;
19 import org.simantics.trend.configuration.TrendItem.DrawMode;
20 import org.simantics.trend.configuration.TrendItem.Renderer;
23 * Descriptor for creation of a Chart Item
24 * @author toni.kalajainen
27 public class ChartItemDescriptor {
29 public String name = UUID.randomUUID().toString();
32 * Subscription item to link chart item to
34 public @Optional Resource subscriptionItem = null;
36 public Scale scale = new Scale.Auto();
37 public @Optional Double min;
38 public @Optional Double max;
39 public @Optional Integer index;
41 public Renderer renderer = Renderer.Analog;
43 public DrawMode drawMode = DrawMode.getDefault();
45 public @Optional Float strokeWidth;
46 public @Optional float[] color;