logo       

Re: 'apply' a transform ?: msg#00148

Subject: Re: 'apply' a transform ?
>    Why do you care?
At runtime I build a symbol library from a SVG document.
But in my application library I want have the symbols with a position
"0px/0px" for the center of each symbol.
Of course its also possible to have multiple 'translate' in one transform,
but my (first) idea was to apply the transform to the symbol, so I have not
such a complex transform.or transform attribute is removed completely.
A little help would be to combine multiple 'translate' to one 'translate'
(without parsing the 'translate' strings and add the values) ...
Maik

----- Original Message ----- 
From: "Thomas DeWeese" <Thomas.DeWeese@xxxxxxxxx>
To: "Batik Users" <batik-users@xxxxxxxxxxxxxx>
Sent: Wednesday, October 27, 2004 1:43 PM
Subject: Re: 'apply' a transform ?


Hi Maik,

Maik Schürer proveo GmbH wrote:

> Can I "apply" a transform after setAttribute("transform", myTransform) to
an
> element ?
> Should means, the "apply" changes the points of <rect>, <p> etc. and the
> "transform" attribute is removed from element.
> Thanks in advance

    The short answer is 'no'.  Just to take your example of a rect
after a rotation it is no longer a rect (it would have to morph
into a path element).

    The longer answer is that using Java2D and the GVT you could
do this.  You can get the java.awt.Shape objects from
batik.gvt.ShapeNode and use
java.awt.geom.AffineTransform.createTransformedShape(Shape s) to
get the transformed geometry that can then be output as a path
with out a transform.

    Why do you care?



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe