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 Maik Schürer <pr...@maik.schuerer.info> on 2005/06/01 11:19:07 UTC

EventListener "SVGScroll" - Problem

Hi all,
I added a scroll listener to my SVG
  EventTarget t = (EventTarget)svgRoot;
  t.addEventListener("SVGScroll", new OnScrollAction(), false);
but I can catch no events from cursor up/down keys.
Shifting with mouse and cursor right/left keys works fine.
Any ideas ?
Thanks in advance
Maik

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


Re: EventListener "SVGScroll" - Problem

Posted by Thomas DeWeese <Th...@Kodak.com>.
Maik Schürer wrote:
>  > Is this the first time you
>  > have tried to build Batik from Source?
> no, but I don't use ant
> in Batik 1.5.1 sources were no JaclInterpreter and PythonInterpreter...

   No, I think your wrong.  These source files have been in
Batik for several years now.

> ok, I renamed these classes and now it compiles
> 
> btw, is switching from ant to maven planed anytime ?

   It certainly isn't planed.  Since I don't know anything
about Maven it's hard to know if it would make sense or
offer any real advantage.

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


Re: EventListener "SVGScroll" - Problem

Posted by Maik Schürer <Ma...@proveo.de>.
 > Is this the first time you
 > have tried to build Batik from Source?
no, but I don't use ant
in Batik 1.5.1 sources were no JaclInterpreter and PythonInterpreter...

ok, I renamed these classes and now it compiles

btw, is switching from ant to maven planed anytime ?

Maik

Thomas DeWeese schrieb:
> Maik Schürer wrote:
> 
>> I tried to compile the current CVS version
>> but for JaclInterpreter.java I need some TCL stuff ... tcl.lang.*;
>> Is Jacl*.java new to Batik ?
>> where can I get it ?
> 
> 
>    The ant script should skip this class if you don't
> have JACL on your classpath. Is this the first time you
> have tried to build Batik from Source?
> 
>    If you are using an IDE you should remoe the JACL and
> JPYTHON classes from the build manually.
> 
>> Maik
>>
>>
>> Thomas DeWeese schrieb:
>>
>>> Hi Maik,
>>>
>>>    There was a silly bug in the scroll event dispatch
>>> so it wouldn't notice an event needed to be
>>> dispatched if only the y translate changed.
>>>
>>>    This is now fixed in CVS.  Thanks for pointing
>>> it out.
>>>
>>> Maik Schürer wrote:
>>>
>>>> I added a scroll listener to my SVG
>>>>  EventTarget t = (EventTarget)svgRoot;
>>>>  t.addEventListener("SVGScroll", new OnScrollAction(), false);
>>>> but I can catch no events from cursor up/down keys.
>>>> Shifting with mouse and cursor right/left keys works fine.
>>>> Any ideas ?
>>>> Thanks in advance
>>>> Maik
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 


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


Re: EventListener "SVGScroll" - Problem

Posted by Thomas DeWeese <Th...@Kodak.com>.
Maik Schürer wrote:

> I tried to compile the current CVS version
> but for JaclInterpreter.java I need some TCL stuff ... tcl.lang.*;
> Is Jacl*.java new to Batik ?
> where can I get it ?

    The ant script should skip this class if you don't
have JACL on your classpath. Is this the first time you
have tried to build Batik from Source?

    If you are using an IDE you should remoe the JACL and
JPYTHON classes from the build manually.

> Maik
> 
> 
> Thomas DeWeese schrieb:
> 
>> Hi Maik,
>>
>>    There was a silly bug in the scroll event dispatch
>> so it wouldn't notice an event needed to be
>> dispatched if only the y translate changed.
>>
>>    This is now fixed in CVS.  Thanks for pointing
>> it out.
>>
>> Maik Schürer wrote:
>>
>>> I added a scroll listener to my SVG
>>>  EventTarget t = (EventTarget)svgRoot;
>>>  t.addEventListener("SVGScroll", new OnScrollAction(), false);
>>> but I can catch no events from cursor up/down keys.
>>> Shifting with mouse and cursor right/left keys works fine.
>>> Any ideas ?
>>> Thanks in advance
>>> Maik
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
> 
> 
> ---------------------------------------------------------------------
> 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


Re: EventListener "SVGScroll" - Problem

Posted by Maik Schürer <Ma...@proveo.de>.
Hi Thomas,
I tried to compile the current CVS version
but for JaclInterpreter.java I need some TCL stuff ... tcl.lang.*;
Is Jacl*.java new to Batik ?
where can I get it ?
Maik


Thomas DeWeese schrieb:
> Hi Maik,
> 
>    There was a silly bug in the scroll event dispatch
> so it wouldn't notice an event needed to be
> dispatched if only the y translate changed.
> 
>    This is now fixed in CVS.  Thanks for pointing
> it out.
> 
> Maik Schürer wrote:
> 
>> I added a scroll listener to my SVG
>>  EventTarget t = (EventTarget)svgRoot;
>>  t.addEventListener("SVGScroll", new OnScrollAction(), false);
>> but I can catch no events from cursor up/down keys.
>> Shifting with mouse and cursor right/left keys works fine.
>> Any ideas ?
>> Thanks in advance
>> Maik
>>
>> ---------------------------------------------------------------------
>> 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
> 


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


Re: EventListener "SVGScroll" - Problem

Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Maik,

    There was a silly bug in the scroll event dispatch
so it wouldn't notice an event needed to be
dispatched if only the y translate changed.

    This is now fixed in CVS.  Thanks for pointing
it out.

Maik Schürer wrote:

> I added a scroll listener to my SVG
>  EventTarget t = (EventTarget)svgRoot;
>  t.addEventListener("SVGScroll", new OnScrollAction(), false);
> but I can catch no events from cursor up/down keys.
> Shifting with mouse and cursor right/left keys works fine.
> Any ideas ?
> Thanks in advance
> Maik
> 
> ---------------------------------------------------------------------
> 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