xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vollmer, Thomas - CannonSA" <thomas.voll...@itt.com>
Subject RE: Fundamental Batik DOM API question
Date Wed, 05 Jun 2002 15:41:41 GMT
By "Batik DOM API" I of course mean the SVG DOM API.
So I guess this is a question for the SVG mailing list.
Sorry for the noise...

> -----Original Message-----
> From: Vollmer, Thomas - CannonSA [mailto:thomas.vollmer@itt.com]
> Sent: Tuesday, June 04, 2002 1:40 PM
> To: 'batik-users@xml.apache.org'
> Subject: Fundamental Batik DOM API question
> Hi all,
> I'm new to Batik (and also new to SVG) and I have
> a question about the Batik DOM API. I looked at the
> DOM API tutorial at xml.apache.org/batik/domapi.html 
> but it's unclear to me what the Batik DOM API provides
> on top of a plain DOM API that I can get by just using
> Crimson or Xerces directly?
> Does the Batik DOM API provide a more explicit interface
> for creating SVG than what is shown in the tutorial
> mentioned above? In other words, instead of doing this:
>   Element rectangle = doc.createElementNS(svgNS, "rect");
>   rectangle.setAttributeNS(null, "x", "10");
>   rectangle.setAttributeNS(null, "y", "20");
>   rectangle.setAttributeNS(null, "width", "100");
>   rectangle.setAttributeNS(null, "height", "50");
>   rectangle.setAttributeNS(null, "style", "fill:red");
> is there a way to do this:
>   RectangleElement rectangle = new RectangleElement(10, 20, 100, 50,
> "fill:red");
> If not, the question remains: what does the Batik DOM API
> offer on top of Crimson or Xerces?
> Thanks for your help,
> Thomas

If this email is not intended for you, or you are not responsible for
the delivery of this message to the addressee, please note that this
message may contain ITT Privileged/Proprietary Information.  In such
a case, you may not copy or deliver this message to anyone.  You should
destroy this message and kindly notify the sender by reply email.
Information contained in this message that does not relate to the
business of ITT is neither endorsed by nor attributable to ITT.

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message