You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by BEGUE Pierre <pb...@iftechnologies.net> on 2005/08/01 11:35:37 UTC
general problem
hi thomas
when i use
the jpegTranscoder i write me this error : outofmemoryError :
java.head.space
my svgFile length is 2 887Ko
i want to know if the problem comes from the size of the svgFile?
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: Extracting the URL associated with a node
Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Paramod,
Pramod Kalapa wrote:
> Here's what I am trying to accomplish:
>
> On mouseclicking on a node element rendered in the
> JSVGCanvas, I would like to extract the associated
> URL/URI attribute (if any) before it is actually
> loaded into the canvas.
Well the UserAgent class get's asked to accept or
reject all URL's before they are loaded, but see below.
> I am trying to use this attribute to store information
> other than a loadable URL/URI to use to lauch other
> applications. Unless there is a better way to do this
> i.e to encode some non displayed information that I
> can easly access on clicking a displayed node that can be
> ingnored/bypassed by the Batik framework ?
This is _exactly_ what XML namespaces are for. So
you can define your own namespace on the root of the document:
xmlns:kalapa="http://kalapa.com/paramod"
Then on your 'clickable' elements simply has a custom
attribute:
<rect ... kalapa:app="foo bar"/>
Register an onclick handler with the root element and
then just check if 'getTarget()' has your custom attribute:
e.getAttribteNS("http://kalapa.com/paramod", "app")
Anything that is in a custom namespace will be ignored by
Batik (and any other conformant SVG renderer).
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Extracting the URL associated with a node
Posted by Pramod Kalapa <p_...@yahoo.com>.
Here's what I am trying to accomplish:
On mouseclicking on a node element rendered in the
JSVGCanvas, I would like to extract the associated
URL/URI attribute (if any) before it is actually
loaded into the canvas. I am trying to use this
attribute to store information other than a loadable
URL/URI to use to lauch other applications. Unless
there is a better way to do this i.e to encode some
non displayed information that I can easly access on
clicking a displayed node that can be
ingnored/bypassed by the Batik framework ?
Thanks
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: general problem
Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Pierre,
BEGUE Pierre wrote:
> how you do this for a JSP application?
I don't know much about JSP but I would guess that
the servlet container (e.g. Tomcat) has a configuration
parameter that let's you adjust how much memory it has.
So I don't think you can do it for a particular JSP just
for the entire Servlet container JVM.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: general problem
Posted by BEGUE Pierre <pb...@iftechnologies.net>.
how you do this for a JSP application?
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: general problem
Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Pierre,
BEGUE Pierre wrote:
> when i use
> the jpegTranscoder i write me this error : outofmemoryError :
> java.head.space
>
> my svgFile length is 2 887Ko
>
> i want to know if the problem comes from the size of the svgFile?
Well, yes and no. The real problem is that Java by default will
only allow it's self to use ~64MB. This is an increasingly silly
default partition size. Fortunately from the command line you can
easily increase this: java -Xmx256m [rest of your stuff]
Will let java use up to 256 MB, depending on your machine
and graphics you may want to go higher...
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org