<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silveira Neto &#187; SVG</title>
	<atom:link href="http://silveiraneto.net/tag/svg/feed/" rel="self" type="application/rss+xml" />
	<link>http://silveiraneto.net</link>
	<description>the world is a pixel</description>
	<lastBuildDate>Mon, 19 Jul 2010 21:59:29 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Cabeça-de-Radar</title>
		<link>http://silveiraneto.net/2009/12/07/cabeca-de-radar/</link>
		<comments>http://silveiraneto.net/2009/12/07/cabeca-de-radar/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 21:40:54 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[português]]></category>
		<category><![CDATA[arte]]></category>
		<category><![CDATA[cabeça de radar]]></category>
		<category><![CDATA[CC-BY-SA]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[homem cabeça de radar]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[vetorial]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=3011</guid>
		<description><![CDATA[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]]></description>
			<content:encoded><![CDATA[<p>Acho que levei uma multa ontem. Eram duas da manhã, uma rua vazia. Vi um flash. <a href="http://www.maparadar.com/">Conferi hoje</a> e vi aqui havia sim um radar lá.<br />
 <img src='http://silveiraneto.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
Fiz esse desenho pra expressar minha frustração.</p>
<p style="text-align: center;"><img class="size-full wp-image-3010 aligncenter" title="cabeça radar" src="http://silveiraneto.net/wp-content/uploads/2009/12/cabeca_radar.png" alt="cabeça radar" width="400" height="912" /></p>
<p>Código-fonte: <a href="http://silveiraneto.net/downloads/cabeca_radar.svg">cabeca_radar.svg</a></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/12/07/cabeca-de-radar/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Duke Arrow Signs</title>
		<link>http://silveiraneto.net/2009/09/18/duke-arrow-signs/</link>
		<comments>http://silveiraneto.net/2009/09/18/duke-arrow-signs/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 17:48:54 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[arrows]]></category>
		<category><![CDATA[CEJUG]]></category>
		<category><![CDATA[duke]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[Signs]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2801</guid>
		<description><![CDATA[For arrow signs on events. Source: duke_arrow.svg]]></description>
			<content:encoded><![CDATA[<p>For arrow signs on events.</p>
<p><img class="alignnone size-full wp-image-2802" title="duke arrows" src="http://silveiraneto.net/wp-content/uploads/2009/09/duke_arrows.png" alt="duke arrows" width="500" height="116" /></p>
<p>Source: <a href="http://silveiraneto.net/wp-content/uploads/2009/09/duke_arrow.svg">duke_arrow.svg</a></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/09/18/duke-arrow-signs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SunSPOT Posters</title>
		<link>http://silveiraneto.net/2009/02/26/sunspot-posters/</link>
		<comments>http://silveiraneto.net/2009/02/26/sunspot-posters/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 06:18:12 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[campus ambassador]]></category>
		<category><![CDATA[poster]]></category>
		<category><![CDATA[Sun Microsystems]]></category>
		<category><![CDATA[Sun Spot]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2313</guid>
		<description><![CDATA[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, [...]]]></description>
			<content:encoded><![CDATA[<p>Some fellows asked for some <a href="http://sunspotworld.com">Sun SPOT</a> posters.</p>
<p>Here it is one that you can use to let people know about Project Sun SPOT.</p>
<p style="text-align: center;"><img class="size-full wp-image-2314 aligncenter" title="sunspot poster 500px" src="http://silveiraneto.net/wp-content/uploads/2009/02/sunspot_poster_500px.png" alt="sunspot poster 500px" width="500" height="707" /></p>
<p>Download the <a href="http://silveiraneto.net/wp-content/uploads/2009/02/sunspot_poster_200dpi.png">PNG with 200 dpi resolution</a> or the <a href="http://silveiraneto.net/wp-content/uploads/2009/02/sunspot_poster.svg">SVG vetorial drawing</a>. You can use a tool like <a title="Project Inkscape" href="http://inkscape.org">Inkscape</a> to open and edit the SVG file. You can change colors, images, texts and anything else.</p>
<p>If you need a poster to a presentation about Sun SPOT you can just print or edit this one:</p>
<p style="text-align: center;"><img class="size-full wp-image-2317 aligncenter" title="sunspot poster2 500px" src="http://silveiraneto.net/wp-content/uploads/2009/02/sunspot_poster2_500px.png" alt="sunspot poster2 500px" width="500" height="707" /></p>
<p>Again, download a <a href="http://silveiraneto.net/wp-content/uploads/2009/02/sunspot_poster2_200dpi.png">200 pdi PNG file</a> or the <a href="http://silveiraneto.net/wp-content/uploads/2009/02/sunspoteventposter.svg">SVG vetorial drawing</a>.</p>
<p>Good times with Sun SPOT. <img src='http://silveiraneto.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/02/26/sunspot-posters/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Café com Tapioca Especial de Natal</title>
		<link>http://silveiraneto.net/2008/12/03/cafe-com-tapioca-especial-de-natal/</link>
		<comments>http://silveiraneto.net/2008/12/03/cafe-com-tapioca-especial-de-natal/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 23:32:16 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[português]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[café com tapioca]]></category>
		<category><![CDATA[CCT]]></category>
		<category><![CDATA[CEJUG]]></category>
		<category><![CDATA[duke]]></category>
		<category><![CDATA[JavaME]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Seam]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1829</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1828 aligncenter" title="duke natal jboss" src="http://silveiraneto.net/wp-content/uploads/2008/12/duke_natal.png" alt="" width="500" height="363" /></p>
<p><strong>Download:</strong> <a href="http://silveiraneto.net/wp-content/uploads/2008/12/duke_natal.svg">duke_natal.svg</a></p>
<p>Sábado tem <a title="CCT CEJUG" href="http://www.cejug.org/pages/viewpage.action?pageId=2818055">Café com Tapioca do CEJUG</a>, especial de Natal, manhã e tarde de eventos. Pela manhã um mini-curso de JavaME e Android com o <a title="Blog do Vando" href="http://vandob.wordpress.com/">Vando Batista</a> do <a title="Site do CESAR" href="http://www.cesar.org.br/">C.E.S.A.R</a>. Pela tarde duas palestras, sobre o JBoss e JBoss Seam com o João Paulo Viragine da <a title="Red Hat" href="http://www.br.redhat.com/">Red Hat</a>. Maiores informações e inscrições para o mini-curso, no <a title="CEJUG" href="http://www.cejug.org/pages/viewpage.action?pageId=36044817">site oficial do evento</a>.</p>
<p>Até lá!</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/12/03/cafe-com-tapioca-especial-de-natal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Black Cat and White Bunny</title>
		<link>http://silveiraneto.net/2008/11/26/black-cat-and-white-bunny/</link>
		<comments>http://silveiraneto.net/2008/11/26/black-cat-and-white-bunny/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 18:17:00 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Anime]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[Black Cat]]></category>
		<category><![CDATA[Chiby]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[Drawing]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[manga]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[White Bunny]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1798</guid>
		<description><![CDATA[Two vector drawing I did to a friend. It&#8217;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 White Bunny: Download: white_bunny.svg]]></description>
			<content:encoded><![CDATA[<p>Two vector drawing I did to a friend. It&#8217;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 <a title="Creative Commons" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike</a> license.</p>
<p style="text-align: center;"><img class="size-full wp-image-1799 aligncenter" title="black_cat" src="http://silveiraneto.net/wp-content/uploads/2008/11/black_cat.png" alt="" width="400" height="566" /></p>
<p><strong>Download:</strong> <a href="http://silveiraneto.net/wp-content/uploads/2008/11/black_cat.svg">black_cat.svg</a></p>
<p>White Bunny:<a href="http://silveiraneto.net/wp-content/uploads/2008/11/black_cat.svg"><img class="alignnone size-medium wp-image-1801" title="black cat svg file" src="http://silveiraneto.net/wp-content/uploads/2008/11/black_cat.svg" alt="" /></a></p>
<p style="text-align: center;"><img class="size-full wp-image-1800 aligncenter" title="white bunny" src="http://silveiraneto.net/wp-content/uploads/2008/11/white_bunny.png" alt="" width="400" height="566" /></p>
<p><strong>Download:</strong> <a href="http://silveiraneto.net/wp-content/uploads/2008/11/white_bunny.svg">white_bunny.svg</a></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/11/26/black-cat-and-white-bunny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inkscape and JavaFX working together</title>
		<link>http://silveiraneto.net/2008/11/21/inkscape-and-javafx-working-together/</link>
		<comments>http://silveiraneto.net/2008/11/21/inkscape-and-javafx-working-together/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 13:12:13 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Bob Jamison]]></category>
		<category><![CDATA[getElementById]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[Jim Clarke]]></category>
		<category><![CDATA[Joshua Marinacci]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[Paths]]></category>
		<category><![CDATA[Rich Internet Applications]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[SVGPaths]]></category>
		<category><![CDATA[Tiger]]></category>
		<category><![CDATA[zlib]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1727</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>Inkscape is a open source cross-platform vector graphics editor application that I use daily to create draws.</p>
<p style="text-align: center;"><img class="size-full wp-image-1728 aligncenter" title="Inkscape 0.46" src="http://silveiraneto.net/wp-content/uploads/2008/11/800px-inkscape_046.png" alt="" width="500" height="339" /></p>
<p>When <a title="JavaFX Design workflow" href="http://developers.sun.com/mobility/jfx_designer_workflow.html">Project Nile</a> 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.</p>
<h3>Features</h3>
<ul>
<li>Both are free and open source technologies, providing more tools on a powerful workflow for programmers and designers to develop Rich Internet Applications.</li>
<li>Comes natively with Inkscape. Install Inkscape an have JavaFX exporting out-of-the-box. No needing to install external plugins.</li>
<li>Provides a way to Inkscape users to make RIA applications reusing their work at drawing tool.</li>
<li>Provides a way to JavaFX programmers a tool for designers their graphics and interfaces.</li>
<li>Keep separated the JavaFX programming logic from the graphics resources but also provide a way to connect them.</li>
<li>They work on Windows, Mac OS, Linux, OpenSolaris and FreeBSD.</li>
</ul>
<h3>Workflow Example</h3>
<p style="text-align: center;"><img class="size-full wp-image-1779 aligncenter" title="Inkscape → JavaFX → NetBeans, workflow" src="http://silveiraneto.net/wp-content/uploads/2008/11/screenshot1.png" alt="" /></p>
<p>I&#8217;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 <a title="NetBeans" href="http://netbeans.org">NetBeans</a>. In this example I&#8217;m using Inkscape 0.46-devel, build from the unstable sources and NetBeans 6.1 with the JavaFX module. <a title="Inkscape Build Tutorial" href="http://silveiraneto.net/2008/08/04/compiling-inkscape/">See here how to build Inkscape from sources</a> and <a title="Parallel Build Benchmark" href="http://silveiraneto.net/2008/11/14/parallel-build-benchmark/">here how to do some optimizations on the build</a>.</p>
<p>Here&#8217;s a artwork (a modified version from another one I did in <a title="a girl I did" href="http://silveiraneto.net/2008/01/17/garota-com-uma-bazuca-e-um-gato-preto/">another post</a>) made with Inkscape.</p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_draw_with.png"><img class="size-medium wp-image-1758 aligncenter" title="Inkscape 0.46-devel" src="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_draw_with-494x375.png" alt="" width="494" height="375" /></a></p>
<p>Doesn&#8217;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 <a title="Scene Graph Project" href="https://scenegraph.dev.java.net/">Scene Graph</a> API elements.</p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_draw_outline.png"><img class="size-medium wp-image-1759 aligncenter" title="inkscape 0.46-devel" src="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_draw_outline-494x375.png" alt="" width="494" height="375" /></a></p>
<p>To do that just click on <strong>File → Save As&#8230;</strong> or Shift+Ctrl+S.</p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_saveas.png"><img class="size-medium wp-image-1763 aligncenter" title="inkscape_saveas" src="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_saveas-203x375.png" alt="" width="203" height="375" /></a></p>
<p>Select JavaFx as the output format.</p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_select_javafx.png"><img class="alignnone size-full wp-image-1764" title="inkscape_select_javafx" src="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_select_javafx.png" alt="" width="424" height="385" /></a></p>
<p>And chose a name. I&#8217;m saving the drawing as <strong>Girl.fx</strong>.</p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_save.png"><img class="size-full wp-image-1769 aligncenter" title="Inkscape saving as JavaFX" src="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_save.png" alt="" width="500" height="312" /></a></p>
<p>Now the drawing is a JavaFX class that extends from <a title="JavaFX API" href="http://javafx.com/releases/preview1/docs/api/javafx.scene/javafx.scene.CustomNode.html">CustomNode</a>. Once in your classpath (in this case the same directory of your main code) you can call it.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">Girl<span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/netbeans_javafx_girl_preview.png"><img class="size-medium wp-image-1771 aligncenter" title="netbeans javafx girl preview" src="http://silveiraneto.net/wp-content/uploads/2008/11/netbeans_javafx_girl_preview-500x283.png" alt="" width="500" height="283" /></a></p>
<p>Another example, the famous SVG tiger.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">Tiger<span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/javafx_inkscape_netbeans_tiger_svg.png"><img class="size-medium wp-image-1777 aligncenter" title="javafx inkscape netbeans tiger svg" src="http://silveiraneto.net/wp-content/uploads/2008/11/javafx_inkscape_netbeans_tiger_svg-500x283.png" alt="" width="500" height="283" /></a></p>
<p>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.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.paint.Color</span>;
var girl <span style="color: #339933;">=</span> Girl<span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
girl.<span style="color: #006633;">rightiris</span>.<span style="color: #006633;">fill</span> <span style="color: #339933;">=</span> <span style="color: #003399;">Color</span>.<span style="color: #006633;">LIME</span>;
girl.<span style="color: #006633;">fringe</span>.<span style="color: #006633;">fill</span> <span style="color: #339933;">=</span> <span style="color: #003399;">Color</span>.<span style="color: #006633;">WHITE</span>;
girl.<span style="color: #006633;">backhair</span>.<span style="color: #006633;">fill</span> <span style="color: #339933;">=</span> <span style="color: #003399;">Color</span>.<span style="color: #006633;">DARKGRAY</span>;
girl.<span style="color: #006633;">hair</span>.<span style="color: #006633;">fill</span> <span style="color: #339933;">=</span> <span style="color: #003399;">Color</span>.<span style="color: #006633;">GRAY</span>;</pre>
</div>
</div>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/javafx_inkscape_girl_modified.png"><img class="size-medium wp-image-1772 aligncenter" title="javafx inkscape girl modified" src="http://silveiraneto.net/wp-content/uploads/2008/11/javafx_inkscape_girl_modified-500x283.png" alt="" width="500" height="283" /></a></p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.paint.Color</span>;
var girl <span style="color: #339933;">=</span> Girl<span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
girl.<span style="color: #006633;">rightiris</span>.<span style="color: #006633;">fill</span> <span style="color: #339933;">=</span> <span style="color: #003399;">Color</span>.<span style="color: #006633;">GREEN</span>;
girl.<span style="color: #006633;">backhair</span>.<span style="color: #006633;">fill</span> <span style="color: #339933;">=</span> <span style="color: #003399;">Color</span>.<span style="color: #006633;">DARKRED</span>;
girl.<span style="color: #006633;">hair</span>.<span style="color: #006633;">fill</span> <span style="color: #339933;">=</span> <span style="color: #003399;">Color</span>.<span style="color: #006633;">RED</span>;</pre>
</div>
</div>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_girl_javafx_netbeans.png"><img class="size-medium wp-image-1784 aligncenter" title="inkscape red hair girl javafx netbeans" src="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_girl_javafx_netbeans-500x283.png" alt="" width="500" height="283" /></a></p>
<p>You can also put event handling by code.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.input.MouseEvent</span>;
var p <span style="color: #339933;">=</span> Player<span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
p.<span style="color: #006633;">x</span>.<span style="color: #006633;">onMouseClicked</span> <span style="color: #339933;">=</span> function<span style="color: #009900;">&#40;</span> e<span style="color: #339933;">:</span> <span style="color: #003399;">MouseEvent</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #003399;">Void</span> <span style="color: #009900;">&#123;</span>
java.<span style="color: #006633;">lang</span>.<span style="color: #003399;">System</span>.<span style="color: #006633;">exit</span><span style="color: #009900;">&#40;</span>0<span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/javafx_inkscape_player.png"><img class="size-medium wp-image-1778 aligncenter" title="javafx inkscape player" src="http://silveiraneto.net/wp-content/uploads/2008/11/javafx_inkscape_player-500x283.png" alt="" width="500" height="283" /></a></p>
<p>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.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.application.Frame</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.application.Stage</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.effect.SepiaTone</span>;
&nbsp;
var girl <span style="color: #339933;">=</span> Girl<span style="color: #009900;">&#123;</span>
   scaleX<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0.5</span>
   scaleY<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0.5</span>
   effect<span style="color: #339933;">:</span> SepiaTone<span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003399;">Frame</span> <span style="color: #009900;">&#123;</span>
   visible<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">true</span>
   stage<span style="color: #339933;">:</span> Stage <span style="color: #009900;">&#123;</span>
      content<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>girl<span style="color: #009900;">&#93;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_javafx_sepiatone.png"><img class="size-medium wp-image-1773 aligncenter" title="inkscape javafx sepiatone" src="http://silveiraneto.net/wp-content/uploads/2008/11/inkscape_javafx_sepiatone-500x283.png" alt="" width="500" height="283" /></a></p>
<p>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.</p>
<h3>Source code</h3>
<p>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.</p>
<ul>
<li><a title="Source Code" href="http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/src/extension/internal/javafx-out.cpp">javafx-out.cpp</a></li>
<li><a title="Source Code" href="http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/src/extension/internal/javafx-out.h">javafx-out.h</a></li>
</ul>
<h3>Still to do</h3>
<ul>
<li>Fix some problems with strokes.</li>
<li>Fix some problems in the gradients.</li>
<li>Use <a title="Zlib project" href="http://www.zlib.net/">Zlib</a> to create jfd files when the structure is too big.</li>
<li>Provide a dynamic method like getElementById in JavaScript.</li>
<li>Convert effects like blur to JavaFX effects.</li>
<li>There are some i18n errors in the module to be fixed.</li>
<li>Finish the adaption from Paths to SVGPaths.</li>
<li>Finish the adaption to the new JavaFX 1.0 syntax (coming December, 2).</li>
</ul>
<h3>Thanks!</h3>
<p>Thanks for all guys that worked on this module and also on the projects Inkscape and JavaFX. Specially thanks for Bob Jamison, <span class="HcCDpe">Jim Clarke,</span><span class="HcCDpe"> Joshua Marinacci and others. That&#8217;s my first contribution to a big free software, I&#8217;m very glad and I want to do much more. <img src='http://silveiraneto.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/11/21/inkscape-and-javafx-working-together/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
		<item>
		<title>SVG: There She Is!!</title>
		<link>http://silveiraneto.net/2008/11/19/svg-there-she-is/</link>
		<comments>http://silveiraneto.net/2008/11/19/svg-there-she-is/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 18:20:29 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[CC-BY-SA]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[Doki]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[Nabi]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[There She Is!!]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1748</guid>
		<description><![CDATA[Two SVG fanart drawings of the very cute animation There She Is!! from South-Korean. The first one is a sign that is shown from first to last episode, love between cats and bunnies is not allowed. sign_there_she_is.svg The second, from the pro-love campaign from the fourth episode. sign2_there_she_is.svg Enjoy, share, print and modify. They are [...]]]></description>
			<content:encoded><![CDATA[<p>Two SVG fanart drawings of the very cute animation <a title="SamBakZa There She Is!!" href="http://www.sambakza.net/amalloc/amalloc_frameset.htm"><em>There She Is!!</em></a> from South-Korean.</p>
<p>The first one is a sign that is shown from first to last episode, love between cats and bunnies is not allowed. <img src='http://silveiraneto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/sign_there_she_is.svg"><img class="alignnone size-full wp-image-1751" title="There She Is Sign" src="http://silveiraneto.net/wp-content/uploads/2008/11/sign_there_she_is.svg" alt="" /><img class="size-full wp-image-1749 aligncenter" title="there she is sign" src="http://silveiraneto.net/wp-content/uploads/2008/11/there_she_is_sign1.png" alt="" width="400" height="400" /><br />
sign_there_she_is.svg</a></p>
<p>The second, from the pro-love campaign from the fourth episode.</p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/11/sign2_there_she_is.svg"><img class="alignnone size-full wp-image-1752" title="There She Is!! Sign" src="http://silveiraneto.net/wp-content/uploads/2008/11/sign2_there_she_is.svg" alt="" /><img class="size-full wp-image-1750 aligncenter" title="there she is sign" src="http://silveiraneto.net/wp-content/uploads/2008/11/there_she_is_sign2.png" alt="" width="400" height="332" /><br />
sign2_there_she_is.svg</a></p>
<p>Enjoy, share, print and modify. They are under <a title="Creative Commons" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution Share-Alike</a> license. I also did a more complete post (in portuguese) in my <a title="Eu Podia Tá Matando" href="http://eupodiatamatando.com/2008/11/19/there-she-is/">another blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/11/19/svg-there-she-is/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Café com Tapioca em Sobral</title>
		<link>http://silveiraneto.net/2008/10/06/cafe-com-tapioca-em-sobral/</link>
		<comments>http://silveiraneto.net/2008/10/06/cafe-com-tapioca-em-sobral/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 00:35:15 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[português]]></category>
		<category><![CDATA[café com tapioca]]></category>
		<category><![CDATA[cartaz]]></category>
		<category><![CDATA[CEJUG]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[poster]]></category>
		<category><![CDATA[Sobral]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1356</guid>
		<description><![CDATA[Próximo fim de semana, 11 de Outubro, é o 1º Café com Tapioca em Sobral. Se você é de lá, não perca. As inscrições vão acabar logo. Mais detalhes no site do evento. O poster: Downloads: cctsobral_827x1169.png, 100 dpi. cctsobral_1654x2339.png, 200 dpi. cctsobral_2480x3508, 300 dpi. cejug_sobral_poster.svg, vetorial.]]></description>
			<content:encoded><![CDATA[<p>Próximo fim de semana, 11 de Outubro, é o <a title="CCT em Sobral" href="http://www.cejug.org/pages/viewpage.action?pageId=32014349">1º Café com Tapioca em Sobral</a>. Se você é de lá, não perca. As inscrições vão acabar logo. Mais detalhes no <a href="http://www.cejug.org/pages/viewpage.action?pageId=32014349">site do evento</a>.</p>
<p>O poster:</p>
<p><img class="size-full wp-image-1357 aligncenter" title="cctsobral_500x707" src="http://silveiraneto.net/wp-content/uploads/2008/10/cctsobral_500x707.png" alt="" width="500" height="707" /></p>
<p><strong>Downloads:</strong></p>
<ul>
<li><a href="http://silveiraneto.net/wp-content/uploads/2008/10/cctsobral_827x1169.png">cctsobral_827x1169.png</a>, 100 dpi.</li>
<li><a href="http://silveiraneto.net/wp-content/uploads/2008/10/cctsobral_1654x2339.png">cctsobral_1654x2339.png</a>, 200 dpi.</li>
<li><a href="http://silveiraneto.net/wp-content/uploads/2008/10/cctsobral_2480x3508.png">cctsobral_2480x3508</a>, 300 dpi.</li>
<li><a href="http://silveiraneto.net/wp-content/uploads/2008/10/cejug_sobral_poster.svg">cejug_sobral_poster.svg</a>, vetorial.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/10/06/cafe-com-tapioca-em-sobral/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vetorial, Arco de Nossa Senhora de Fátima</title>
		<link>http://silveiraneto.net/2008/09/30/vetorial-arco-de-nossa-senhora-de-fatima/</link>
		<comments>http://silveiraneto.net/2008/09/30/vetorial-arco-de-nossa-senhora-de-fatima/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 22:58:50 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[português]]></category>
		<category><![CDATA[Arco]]></category>
		<category><![CDATA[ceará]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[Nossa Senhora de Fátima]]></category>
		<category><![CDATA[Sobral]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1324</guid>
		<description><![CDATA[Vetorização do Arco de Nossa Senhora de Fátima, em Sobral. Download: sobral_arco.svg, sob licença Creative Commons Atribution.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" src="http://silveiraneto.net/wp-content/uploads/2008/09/arco1.png" alt="Arco" /></p>
<p>Vetorização do Arco de Nossa Senhora de Fátima, em <a title="Wikipédia" href="http://pt.wikipedia.org/wiki/Sobral_(Cear%C3%A1)">Sobral</a>.</p>
<p><strong>Download:</strong></p>
<ul>
<li><a href="http://silveiraneto.net/wp-content/uploads/2008/09/sobral_arco.svg">sobral_arco.svg</a>, sob licença <a title="Creative Commons" href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Atribution</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/09/30/vetorial-arco-de-nossa-senhora-de-fatima/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>More Dukes</title>
		<link>http://silveiraneto.net/2008/09/13/more-dukes/</link>
		<comments>http://silveiraneto.net/2008/09/13/more-dukes/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 20:37:49 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[badge]]></category>
		<category><![CDATA[CEJUG]]></category>
		<category><![CDATA[duke]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1289</guid>
		<description><![CDATA[More Dukes we&#8217;re creating to use in the 6th CEJUG&#8217;s birthday. The first one is a Duke intented to be used as a badge. We should tie string in both hands and transform it in a badge for the event. Original SVG version: duke_badge.svg The second is a general purpouse Duke sign. You can print [...]]]></description>
			<content:encoded><![CDATA[<p>More Dukes we&#8217;re creating to use in the <a href="http://www.cejug.org/pages/viewpage.action?pageId=30900360">6th CEJUG&#8217;s birthday</a>.</p>
<p>The first one is a Duke intented to be used as a badge. We should tie string in both hands and transform it in a badge for the event.</p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2008/09/duke_badge.png"><img class="size-full wp-image-1290 aligncenter" title="Duke badge" src="http://silveiraneto.net/wp-content/uploads/2008/09/duke_badge.png" alt="" width="400" height="348" /></a></p>
<p>Original SVG version: <a href="http://silveiraneto.net/wp-content/uploads/2008/09/duke_badge.svg">duke_badge.svg</a></p>
<p>The second is a general purpouse Duke sign. You can print them in blank and use a brush to write on it.</p>
<p style="text-align: center;"><img class="size-full wp-image-1292 aligncenter" title="Duke Sign" src="http://silveiraneto.net/wp-content/uploads/2008/09/duke_sign.png" alt="" width="500" height="470" /></p>
<p>Original SVG version: <a href="http://silveiraneto.net/wp-content/uploads/2008/09/duke_sign.svg">duke_sign.svg</a></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/09/13/more-dukes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
