xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: Auto resize?
Date Tue, 01 Feb 2005 15:44:27 GMT
Caron, Michael R wrote:

> That seems to keep the SVG rendered the same, but the canvas itself then
> grows to the original size of the SVG instead of retaining the initial
> smaller canvas. How do I prevent the canvas component from growing?

    That is a swing layout issue, setup the container for the
Canvas to fix it's size (sorry I'm not particularly
versed in swing so I can't tell you have to do that off
the top of my head).

> 
> -----Original Message-----
> From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com] 
> Sent: Monday, January 31, 2005 8:06 PM
> To: Batik Users
> Subject: Re: Auto resize?
> 
> Caron, Michael R wrote:
> 
> 
>>The JSVGComponent seems to redraw the SVG on any resize event. How do 
>>I prevent this?
> 
> 
>      Well, it has to redraw for any resize event (otherwise there will
> be blank parts on the sides).  I suspect you are objecting to the
> 'resize' of the content when the window is resized.
> 
>      This can be turned off by calling setRecenterOnResize(false).
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 


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


Mime
View raw message