From 2a0b5744c9b077a0d52a77866e0346ccbb09688f Mon Sep 17 00:00:00 2001 From: lempinen Date: Tue, 22 Nov 2011 13:31:13 +0000 Subject: [PATCH] First take on jfreechart ontology git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@23323 ac1ea38d-2e2b-0410-8846-a27921b304fc --- org.simantics.jfreechart.ontology/.classpath | 7 + org.simantics.jfreechart.ontology/.project | 34 +++ .../.settings/org.eclipse.jdt.core.prefs | 8 + .../META-INF/MANIFEST.MF | 10 + .../build.properties | 6 + org.simantics.jfreechart.ontology/graph.tg | Bin 0 -> 5637 bytes .../graph/JFreeChart.pgraph | 152 +++++++++++ .../simantics/sysdyn/JFreeChartResource.java | 249 ++++++++++++++++++ 8 files changed, 466 insertions(+) create mode 100644 org.simantics.jfreechart.ontology/.classpath create mode 100644 org.simantics.jfreechart.ontology/.project create mode 100644 org.simantics.jfreechart.ontology/.settings/org.eclipse.jdt.core.prefs create mode 100644 org.simantics.jfreechart.ontology/META-INF/MANIFEST.MF create mode 100644 org.simantics.jfreechart.ontology/build.properties create mode 100644 org.simantics.jfreechart.ontology/graph.tg create mode 100644 org.simantics.jfreechart.ontology/graph/JFreeChart.pgraph create mode 100644 org.simantics.jfreechart.ontology/src/org/simantics/sysdyn/JFreeChartResource.java diff --git a/org.simantics.jfreechart.ontology/.classpath b/org.simantics.jfreechart.ontology/.classpath new file mode 100644 index 00000000..8a8f1668 --- /dev/null +++ b/org.simantics.jfreechart.ontology/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/org.simantics.jfreechart.ontology/.project b/org.simantics.jfreechart.ontology/.project new file mode 100644 index 00000000..36a196b0 --- /dev/null +++ b/org.simantics.jfreechart.ontology/.project @@ -0,0 +1,34 @@ + + + org.simantics.jfreechart.ontology + + + + + + org.simantics.graph.builder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.simantics.graph.nature + + diff --git a/org.simantics.jfreechart.ontology/.settings/org.eclipse.jdt.core.prefs b/org.simantics.jfreechart.ontology/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..8fdbeb77 --- /dev/null +++ b/org.simantics.jfreechart.ontology/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +#Mon Nov 14 12:29:34 EET 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/org.simantics.jfreechart.ontology/META-INF/MANIFEST.MF b/org.simantics.jfreechart.ontology/META-INF/MANIFEST.MF new file mode 100644 index 00000000..6ab2f810 --- /dev/null +++ b/org.simantics.jfreechart.ontology/META-INF/MANIFEST.MF @@ -0,0 +1,10 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: JFreeChart +Bundle-SymbolicName: org.simantics.jfreechart.ontology +Bundle-Version: 0.1.0.qualifier +Require-Bundle: org.simantics.layer0, + org.simantics.layer0x.ontology;bundle-version="1.0.0", + org.simantics.g2d.ontology;bundle-version="1.0.0" +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Export-Package: org.simantics.sysdyn diff --git a/org.simantics.jfreechart.ontology/build.properties b/org.simantics.jfreechart.ontology/build.properties new file mode 100644 index 00000000..022de173 --- /dev/null +++ b/org.simantics.jfreechart.ontology/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = plugin.xml,\ + META-INF/,\ + .,\ + graph.tg diff --git a/org.simantics.jfreechart.ontology/graph.tg b/org.simantics.jfreechart.ontology/graph.tg new file mode 100644 index 0000000000000000000000000000000000000000..352e31282e0376c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`G~^&q?XchD!h`Ez`-o+4@e%w4aIK3V(8+E3R0OJL`3p-*=HS<8BU%xgcNxz5jb8(I6w+E3PguK5$R zeKbC+HS<|d9!5Jr8$tU@G1uclhRUDjS z%3nvH?EJjHWbG$w{{+}wpWm&>&Od8e`~jsMc--S}J!=H2-oLZ8j8 z-%5sm%He=7 K?zcGTKl&F!%64Y} literal 0 HcmV?d00001 diff --git a/org.simantics.jfreechart.ontology/graph/JFreeChart.pgraph b/org.simantics.jfreechart.ontology/graph/JFreeChart.pgraph new file mode 100644 index 00000000..d1291d30 --- /dev/null +++ b/org.simantics.jfreechart.ontology/graph/JFreeChart.pgraph @@ -0,0 +1,152 @@ +L0 = +L0X = +G2D = + +//##################################################################### +// Ontology for defining JFreeChart charts +//##################################################################### + +JFREE = : L0.Ontology + @L0.new + L0.HasResourceClass "org.simantics.sysdyn.JFreeChartResource" + +//##################################################################### +// Charts +//##################################################################### +JFREE.Chart () { + public JFreeChartResource perform(ReadGraph graph) throws DatabaseException { + return new JFreeChartResource(graph); + } + }); + session.registerService(JFreeChartResource.class, ret); + } + return ret; + } + +} + -- 2.47.1