xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tracey Zellmann" <tracey.zellm...@comcast.net>
Subject Re: JSVGCanvas behavior in Layout
Date Sun, 21 Aug 2005 20:54:20 GMT
Thanks for your advice. I have been able to get this to behave the way I 
want now.
----- Original Message ----- 
From: "Thomas DeWeese" <Thomas.DeWeese@Kodak.com>
To: <batik-users@xmlgraphics.apache.org>
Sent: Friday, August 19, 2005 7:27 AM
Subject: Re: JSVGCanvas behavior in Layout


> Hi Tracey,
>
> Tracey Zellmann wrote:
>
>> I am having a problem with the behavior of a JSVGCanvas in a Layout. It 
>> initially shows in an appropriate size, but when the overall layout 
>> changes, the SVG image and the JSVGCanvas increase in size and overwhelm 
>> the other components in the layout.
>
>    This is probably because the default behavior of the Canvas when
> reading a file is to set it's 'preferredSize' to the size of the
> SVG image it just read.  If this happens after the component is layed
> out it essentially has no effect, however if the components are
> relayed out (and you haven't done something to counter act it) the
> default layout alg will attempt to give the canvas it's preferred size.
>
>    The simplest thing to do if you don't want the canvas to pay
> attention to the size the SVG document requests is to override
> the method 'setMySize' in JSVGCanvas to do nothing.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
> 



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


Mime
View raw message