xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <...@mcc.id.au>
Subject Re: interaction with a group of severals JSVGCanvas
Date Thu, 25 May 2006 10:26:10 GMT
Hi Hocine.

Hocine Hamadi:
> But the thing is that I’m trying to use several SVG file and group
> them into the same object in order to Pan, rotate, Zoom them all
> together.
> For example: 
> - I load a SVG map in a JSVGCanvas
> - This JSVGCanvas is added to a JPanel
> - I need to set several positions on this map with a cross image
>   (svg, jpg ...)
> - I want them to move, rotate, and zoom all together, not only the
>   SVG map. Actually, the cross has to follow all the actions
>   performed on the map.
> I don’t know which method to use to perform this.
> Here are some methods I thought about :
> - Create a JSVGCanvas for each cross image and add it to the
>   JSVGCanvas map ?
> - Use only 1 Canvas for the map and add my crosses to it ?

Certainly it would be easier to use the one JSVGCanvas, and add your
crosses into the SVG document.  Then when the map is panned or zoomed,
the crosses will follow naturally.

Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

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

View raw message