Gerrit Grunwald & Adobe FXG Transformations in Java

Gerrit Grunwald has enhanced his FXG Converter enabling it to support FXG transformations.

The background of this is that if you take a box in Adobe Illustrator and rotate it by 10 degrees, it will get a transformation tag in the exported FXG file:

<Group d:userLabel="Rectangle">
    <transform>
        <Transform>
            <matrix>
                <Matrix a="0.7071067811865476"
                b="0.7071067811865475"
                c="-0.7071067811865475"
                d="0.7071067811865476"
                tx="82" ty="-170"/>
            </matrix>
        </Transform>
    </transform>
    <Rect x="105" y="137" width="220"
            height="78" alpha="1" blendMode="normal"
            radiusX="0" radiusY="0">
        <fill>
            <SolidColor color="#0000ff"/>
        </fill>
    </Rect>
</Group>

This transformation tag will now be used by Gerrit's FXG Converter to create the same rotation for the generated shape:

That support has been integrated into the NetBeans FXG Converter. If you're using 1.3 of the plugin, i.e., a previous release, you'll see this when converting a FXG file with transformations:

So, go here, get the latest plugin (1.4, currently), which handles transformations as shown in the first screenshot. You'll also find a new JPanel template, as well as an HTML wrapper generated with the HTML 5 Canvas component.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« September 2015
SunMonTueWedThuFriSat
  
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today