]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Time as the default x-axis in line and sensitivity charts (refs #4323).
authormiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 12 Jun 2013 06:12:17 +0000 (06:12 +0000)
committermiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 12 Jun 2013 06:12:17 +0000 (06:12 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27527 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/newComponents/NewSensitivityChartHandler.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/newComponents/NewXYLineChartHandler.java

index 44ba5e4821812e6b59bcc6cde70418958d94e902..013c56023179ebf46d8da60b6ed0354ee7f2eb7b 100644 (file)
@@ -74,7 +74,9 @@ public class NewSensitivityChartHandler extends AbstractHandler {
                         l0.PartOf, jfreechart);\r
 \r
                 Resource domainAxis = GraphUtils.create2(g, jfree.NumberAxis,\r
-                        l0.HasName, "NumberAxis" + UUID.randomUUID().toString());\r
+                        l0.HasName, "NumberAxis" + UUID.randomUUID().toString(),\r
+                        jfree.variableRVI, "/time",\r
+                        l0.HasLabel, "Time");\r
                 Resource rangeAxis = GraphUtils.create2(g, jfree.NumberAxis,\r
                         l0.HasName, "NumberAxis" + UUID.randomUUID().toString(),\r
                         l0.HasLabel, "");\r
index bb872cf21c7341e2ea27e0195333638811be4e42..2f06ce812f6c41d9929a27a512e9f3f5d95aa453 100644 (file)
@@ -37,6 +37,7 @@ import org.simantics.utils.ui.AdaptionUtils;
 /**\r
  * Handler for creating a new XYLineChart in model browser\r
  * @author Teemu Lempinen\r
+ * @author Tuomas Miettinen\r
  *\r
  */\r
 public class NewXYLineChartHandler extends AbstractHandler {\r
@@ -76,7 +77,9 @@ public class NewXYLineChartHandler extends AbstractHandler {
                         l0.PartOf, jfreechart);\r
 \r
                 Resource domainAxis = GraphUtils.create2(g, jfree.NumberAxis,\r
-                        l0.HasName, "NumberAxis" + UUID.randomUUID().toString());\r
+                        l0.HasName, "NumberAxis" + UUID.randomUUID().toString(),\r
+                        jfree.variableRVI, "/time",\r
+                        l0.HasLabel, "Time");\r
                 Resource rangeAxis = GraphUtils.create2(g, jfree.NumberAxis,\r
                         l0.HasName, "NumberAxis" + UUID.randomUUID().toString(),\r
                         l0.HasLabel, "Y-axis");\r