Sorry, should have added this part too:

This is your event handling method:

public void handleEvent(Event event) {

        If(event instanceof org.w3c.dom.events.MouseEvent)
        {
                MouseEvent mouseEvent = (MouseEvent) event;
                int detail = mouseEvent.getDetail();
                if(detail == 1)
                        ->svgElementClicked();
                else if(detail == 2)
                        ->svgElementDblClicked();
        }

}

Dominik Steiner
Dipl-Ing. Informationstechnik (BA)
GIGATRONIK
Gesellschaft für Automobil-
elektronikentwicklung mbH
Taunusstr. 21
80807 München
Telefon +49 (0) 89 / 353 96 80-70
Telefax +49 (0) 89 / 353 96 80-99
mailto:[EMAIL PROTECTED]
www.gigatronik.com


-----Ursprüngliche Nachricht-----
Von: Steiner, Dominik 
Gesendet: Montag, 15. Mai 2006 08:37
An: [email protected]
Betreff: AW: Double click event for DOMMouseEvent

Hi Sudhakar,

you can get the click count through:

int detail = mouseEvent.getDetail();
if(detail == 1)
  svgElementClicked(targetEl, targetId, name);
else if(detail == 2)
  svgElementDblClicked(targetEl, targetId, name);

I hope this helps.

Dominik

Dominik Steiner
Dipl-Ing. Informationstechnik (BA)
GIGATRONIK
Gesellschaft für Automobil-
elektronikentwicklung mbH
Taunusstr. 21
80807 München
Telefon +49 (0) 89 / 353 96 80-70
Telefax +49 (0) 89 / 353 96 80-99
mailto:[EMAIL PROTECTED]
www.gigatronik.com

-----Ursprüngliche Nachricht-----
Von: Sudhakar S [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 15. Mai 2006 08:30
An: [email protected]
Betreff: Double click event for DOMMouseEvent


Hi Friends,

I tried to capture user's double click action using DOMMouseEvent. But i
couldn't find the functionality related to it. So can you please explain,
how to do this?

Is there any equalent functionality like
java.awt.event.MouseEvent.getClickCount().

Thanks,
Sudhakar

--
View this message in context: 
http://www.nabble.com/Double-click-event-for-DOMMouseEvent-t1619160.html#a4387582
Sent from the Batik - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to