--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2011 Association for Decentralized Information Management in\r
+ * Industry THTH ry.\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.charts.query;\r
+\r
+import java.util.UUID;\r
+\r
+import org.simantics.databoard.annotations.Optional;\r
+import org.simantics.db.Resource;\r
+import org.simantics.trend.configuration.Scale;\r
+import org.simantics.trend.configuration.TrendItem.DrawMode;\r
+import org.simantics.trend.configuration.TrendItem.Renderer;\r
+\r
+/**\r
+ * Descriptor for creation of a Chart Item\r
+ * @author toni.kalajainen\r
+ *\r
+ */\r
+public class ChartItemDescriptor {\r
+\r
+ public String name = UUID.randomUUID().toString();\r
+\r
+ /**\r
+ * Subscription item to link chart item to\r
+ */\r
+ public @Optional Resource subscriptionItem = null;\r
+\r
+ public Scale scale = new Scale.Auto();\r
+ public @Optional Double min;\r
+ public @Optional Double max;\r
+ public @Optional Integer index;\r
+\r
+ public Renderer renderer = Renderer.Analog;\r
+\r
+ public DrawMode drawMode = DrawMode.getDefault();\r
+\r
+ public @Optional float[] color; \r
+\r
+}\r