summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7ec62a2)
raw | patch | inline | side by side (parent: 7ec62a2)
author | joncruz <joncruz@users.sourceforge.net> | |
Wed, 17 Jun 2009 08:04:51 +0000 (08:04 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Wed, 17 Jun 2009 08:04:51 +0000 (08:04 +0000) |
src/extension/internal/javafx-out.cpp | patch | blob | history |
index bc99ceff4a45c3a99e2d075991d4fce7a742ed29..417755e1973f19354dcae0a2367486cfa64ef04f 100644 (file)
* Bob Jamison <ishmal@inkscape.org>
* Silveira Neto <silveiraneto@gmail.com>
* Jim Clarke <Jim.Clarke@sun.com>
+ * Jon A. Cruz <jon@joncruz.org>
*
- * Copyright (C) 2008 Authors
+ * Copyright (C) 2008,2009 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
out("### NOTES:\n");
out("### ============\n");
out("### JavaFX information can be found at\n");
- out("### hhttps://openjfx.dev.java.net\n");
+ out("### http://www.javafx.com/\n");
out("###\n");
out("### If you have any problems with this output, please see the\n");
out("### Inkscape project at http://www.inkscape.org, or visit\n");
out("\n\n");
// import javafx libraries we can need
- out("import javafx.application.*;\n");
out("import javafx.scene.*;\n");
- out("import javafx.scene.geometry.*;\n");
+ out("import javafx.scene.shape.*;\n");
out("import javafx.scene.transform.*;\n");
out("import javafx.scene.paint.*;\n");
out("\n");
// Write the tail of CustomNode
out(" ] // content\n");
- out(" transform: Translate { x : %s, y : %s }\n",
+ out(" transforms: Translate { x : %s, y : %s }\n",
DSTR((-minx) + border), DSTR((-miny) + border) );
out(" } // Group\n");
out(" } // function create()\n");
out("} // class %s\n", name.c_str());
out("\n");
- // Frame
- out("Frame {\n");
- out(" title: \"%s\"\n", name.c_str());
- out(" width: %s\n", ISTR(maxx-minx + border * 2.0));
- out(" height: %s\n", ISTR(maxy-miny + border * 2.0));
- out(" visible: true\n");
-
// Stage
- out(" stage: Stage {\n");
- out(" content: %s{}\n", name.c_str());
- out(" } // Stage\n");
+// out(" stage: Stage {\n");
+// out(" content: %s{}\n", name.c_str());
+// out(" } // Stage\n");
- out("} // Frame\n");
out("\n");
{
SPLinearGradient *g = SP_LINEARGRADIENT(grad);
out(" /* create LinearGradient for %s */\n", jfxid.c_str());
- out(" private function %s(): LinearGradient {\n", jfxid.c_str());
+ out(" function %s(): LinearGradient {\n", jfxid.c_str());
out(" LinearGradient {\n");
std::vector<SPGradientStop> stops = g->vector.stops;
if (stops.size() > 0)
{
SPRadialGradient *g = SP_RADIALGRADIENT(grad);
out(" /* create RadialGradient for %s */\n", jfxid.c_str());
- out(" private function %s() {\n", jfxid.c_str());
+ out(" function %s() {\n", jfxid.c_str());
out(" RadialGradient {\n");
out(" centerX: %s\n", DSTR(g->cx.value));
out(" centerY: %s\n", DSTR(g->cy.value));
nrShapes++;
out(" /** path %s */\n", jfxid.c_str());
- out(" private function %s() : Path {\n",jfxid.c_str());
+ out(" function %s() : Path {\n",jfxid.c_str());
out(" Path {\n");
out(" id: \"%s\"\n", jfxid.c_str());
Geom::Point p1 = points[1];
Geom::Point p2 = points[2];
Geom::Point p3 = points[3];
- out(" CurveTo {\n");
+ out(" CubicCurveTo {\n");
out(" controlX1: %s\n", DSTR(p1[X]));
out(" controlY1: %s\n", DSTR(p1[Y]));
out(" controlX2: %s\n", DSTR(p2[X]));
outbuf.append(curveBuf);
-#ifdef JAVAFX_SDK_1_0
out(" override function create(): Node {\n");
-#else
- out(" public function create(): Node {\n");
-#endif
out(" Group {\n");
out(" content: [\n");
idindex = 0;