come with me, on the way I'll explain.
Posts tagged SVG
Cabeça-de-Radar
Dec 7th
Acho que levei uma multa ontem. Eram duas da manhã, uma rua vazia. Vi um flash. Conferi hoje e vi aqui havia sim um radar lá.
![]()
Fiz esse desenho pra expressar minha frustração.

Código-fonte: cabeca_radar.svg
SunSPOT Posters
Feb 26th
Some fellows asked for some Sun SPOT posters.
Here it is one that you can use to let people know about Project Sun SPOT.

Download the PNG with 200 dpi resolution or the SVG vetorial drawing. You can use a tool like Inkscape to open and edit the SVG file. You can change colors, images, texts and anything else.
If you need a poster to a presentation about Sun SPOT you can just print or edit this one:

Again, download a 200 pdi PNG file or the SVG vetorial drawing.
Good times with Sun SPOT.
Café com Tapioca Especial de Natal
Dec 3rd

Download: duke_natal.svg
Sábado tem Café com Tapioca do CEJUG, especial de Natal, manhã e tarde de eventos. Pela manhã um mini-curso de JavaME e Android com o Vando Batista do C.E.S.A.R. Pela tarde duas palestras, sobre o JBoss e JBoss Seam com o João Paulo Viragine da Red Hat. Maiores informações e inscrições para o mini-curso, no site oficial do evento.
Até lá!
Black Cat and White Bunny
Nov 26th
Two vector drawing I did to a friend. It’s anime-chiby style character, the first mixed with a cat and the second with a bunny. I did using Inkscape. As always, both under the Creative Commons Attribution-Share Alike license.

Download: black_cat.svg

Download: white_bunny.svg
Inkscape and JavaFX working together
Nov 21st
Inkscape is a open source cross-platform vector graphics editor application that I use daily to create draws.

When Project Nile was launched, me and some others guys complained about lack of open source alternatives in the workflow of creation with JavaFX. So we developed a module inside Inkscape that converts your SVG drawings to JavaFX code.
Features
- Both are free and open source technologies, providing more tools on a powerful workflow for programmers and designers to develop Rich Internet Applications.
- Comes natively with Inkscape. Install Inkscape an have JavaFX exporting out-of-the-box. No needing to install external plugins.
- Provides a way to Inkscape users to make RIA applications reusing their work at drawing tool.
- Provides a way to JavaFX programmers a tool for designers their graphics and interfaces.
- Keep separated the JavaFX programming logic from the graphics resources but also provide a way to connect them.
- They work on Windows, Mac OS, Linux, OpenSolaris and FreeBSD.
Workflow Example

I’ll show here step by step how would be a designer-developer workflow from designing graphical elements, such interfaces, to integrating it to a JavaFX Script code in NetBeans. In this example I’m using Inkscape 0.46-devel, build from the unstable sources and NetBeans 6.1 with the JavaFX module. See here how to build Inkscape from sources and here how to do some optimizations on the build.
Here’s a artwork (a modified version from another one I did in another post) made with Inkscape.
Doesn’t matter the complexity of the drawing it is made of discrete elements such circles, rectangles, paths and others. What the exporting module does is converting these SVG elements into JavaFX Scene Graph API elements.
To do that just click on File → Save As… or Shift+Ctrl+S.
Select JavaFx as the output format.
And chose a name. I’m saving the drawing as Girl.fx.
Now the drawing is a JavaFX class that extends from CustomNode. Once in your classpath (in this case the same directory of your main code) you can call it.
Girl{}
Another example, the famous SVG tiger.
Tiger{}
Actually, you can get the elements of your drawing as attributes nodes of the main node. We use the name you gave to your object to name the attributes.
import javafx.scene.paint.Color; var girl = Girl{} girl.rightiris.fill = Color.LIME; girl.fringe.fill = Color.WHITE; girl.backhair.fill = Color.DARKGRAY; girl.hair.fill = Color.GRAY;
import javafx.scene.paint.Color; var girl = Girl{} girl.rightiris.fill = Color.GREEN; girl.backhair.fill = Color.DARKRED; girl.hair.fill = Color.RED;
You can also put event handling by code.
import javafx.input.MouseEvent; var p = Player{} p.x.onMouseClicked = function( e: MouseEvent ):Void { java.lang.System.exit(0); }
As a ordinary JavaFX Node, you can do whatever you do with a Node, like using it inside a application or applying effects or transformations.
import javafx.application.Frame; import javafx.application.Stage; import javafx.scene.effect.SepiaTone; var girl = Girl{ scaleX: 0.5 scaleY: 0.5 effect: SepiaTone{} } Frame { visible: true stage: Stage { content: [girl] } }
Using this approach you can have the reference and total control under all those elements that compose your drawing. You can design complete interfaces and attach event handling by code.
Source code
The module is already on the main Inkscape dev tree and working properly. I guess it will be officially released to all users in the next Inkscape release.
Still to do
- Fix some problems with strokes.
- Fix some problems in the gradients.
- Use Zlib to create jfd files when the structure is too big.
- Provide a dynamic method like getElementById in JavaScript.
- Convert effects like blur to JavaFX effects.
- There are some i18n errors in the module to be fixed.
- Finish the adaption from Paths to SVGPaths.
- Finish the adaption to the new JavaFX 1.0 syntax (coming December, 2).
Thanks!
Thanks for all guys that worked on this module and also on the projects Inkscape and JavaFX. Specially thanks for Bob Jamison, Jim Clarke, Joshua Marinacci and others. That’s my first contribution to a big free software, I’m very glad and I want to do much more.
























