Feature request, JavaFX exporting

Bug #253869 reported by Silveira
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
Jon A. Cruz

Bug Description

Although I already commented that the inkscape-devel list, I'm here to make a formal feature request. :)

JavaFX is a open source language and framework for creating Rich Internet Applications, easily integrable with Java and aimed for developers and designers. It's syntax for describing graphical elements is quite simple and similar with SVG.

A SVG circle is like:
<circle cx="100" cy="50" r="40" fill="red"/>

The same circle in JavaFX is like:
Circle { centerX: 100 centerY: 100 radius: 40 fill:Color.RED}

The actual JavaFX API is available at http://openjfx.java.sun.com/current-build/doc/api/.

Would be great to see Inkscape and JavaFX working together, we just design interfaces and drawing with Inkscape and programming with JavaFX. :-D

Tags: javafx
Revision history for this message
ishmal (ishmalius) wrote :

This has been started in SVN trunk. It is to limited path export, and will be a "work in progress" for a while. But useful images are already being exported

Revision history for this message
Porfirio (porfirio-ribeiro) wrote :

Why not use SVGPath instehead of generating paths programicly??

It would make the code smaller and easyer for you guys to parse it!!!

LinearGradients are working good.

Missing Blur, JavaFX suports it i think

nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
Silveira (silveiraneto) wrote :

@Porfirio, yes, you're right. Would be easier using SVGPath. We need to recode that.
And JavaFX also suports blur (gaussian) so it's possible to implement that.

Another thing is missing is a easier way to acess the elements (Nodes) of a drawing externally. I guess a good approach would be using public class properties of the CustomNode instead of private methods. This way we could externally add an effect or change a color of a single object.

I'm codding this changes if anyone is too, please let's be in touch.

Revision history for this message
Porfirio (porfirio-ribeiro) wrote :

Also i think that radial gradients are not working.

And borders are not working, all shapes have 1px black border even if they dont have any border or a different border.

Its good to see Inkscape going to suport JavaFX, since sun is just suporting the big ones with project nile.

Ever thought about export to fxd, i don't see much advantage of it, apart that you can acess to different shapes

I was thinking, accessing different shapes would not be a big advantages, because i may want to use a group of shapes.

What i mean is, lers say i a am developing a pacman game and i have a SVG with my elements, so i have one group of shapes that makes the pacman, and other group of shapes that make the enemy

In Project nile, i would put each one in a different layer and name them, and they would be exported and i could get the Nodes to put on game separated.

In Inkscape, i don't know if we would put stuff in different layers, or just export named groups.

Revision history for this message
wojtek (wojciech-halicki-piszko) wrote : Re: [Bug 253869] Re: Feature request, JavaFX exporting

FXD is there to workaround class size limitations. If graphic is big
it may not fit into FX file format. So provide support for FXD as
well.

On Sun, Oct 26, 2008 at 12:22, Porfirio <email address hidden> wrote:
> Also i think that radial gradients are not working.
>
> And borders are not working, all shapes have 1px black border even if
> they dont have any border or a different border.
>
> Its good to see Inkscape going to suport JavaFX, since sun is just
> suporting the big ones with project nile.
>
> Ever thought about export to fxd, i don't see much advantage of it,
> apart that you can acess to different shapes
>
> I was thinking, accessing different shapes would not be a big
> advantages, because i may want to use a group of shapes.
>
> What i mean is, lers say i a am developing a pacman game and i have a
> SVG with my elements, so i have one group of shapes that makes the
> pacman, and other group of shapes that make the enemy
>
> In Project nile, i would put each one in a different layer and name
> them, and they would be exported and i could get the Nodes to put on
> game separated.
>
> In Inkscape, i don't know if we would put stuff in different layers, or
> just export named groups.
>
> --
> Feature request, JavaFX exporting
> https://bugs.launchpad.net/bugs/253869
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Wojciech Halicki-Piszko

Changed in inkscape:
assignee: nobody → Jon A. Cruz (jon-joncruz)
status: New → In Progress
Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

I'm giving things a good once-over (I have JavaFX 1.2 going here in Eclipse now) ... but we might be to the point where we will need individual bug reports filed for each remaining issue.

Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

Output now works with JavaFX SDK 1.2 as of SVN revision 21610.
Note that specific details, such as radial gradients failing, should be entered in as new individual bugs

Changed in inkscape:
milestone: none → 0.47
status: In Progress → Fix Released
Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

Very nice If I see any javaFX bugs I can help with I will.

Great Job Jon A. Cruz.

Leo

Revision history for this message
wojtek (wojciech-halicki-piszko) wrote :

I am also happy to see support for JavaFX in Inkscape. I'll test it asap.

Revision history for this message
Martin Brehovsky (martin-brehovsky) wrote :

Hello everyone,

my name is Martin Brehovsky and I work as a lead for JavaFX Production Suite. It looks like Sun could help with the JavaFX Export functionality in Inkscape - we are specifically interested to allow export to FXZ files. I'm wondering - where could I start - to whom do I need to talk, how could Sun start contributing code.

Thanks,
Martin

Revision history for this message
Alvin Penner (apenner) wrote :

probably the best place is the developers mailing list :
http://www.nabble.com/Inkscape---Dev-f1926.html

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.