It's strange .. I haven't got j2d under the package renderer. Maybe you are 
using an RC version ?


>From: "Patrick Schlaepfer" <[EMAIL PROTECTED]>
>To: "pennyw 81" <[EMAIL PROTECTED]>
>Subject: Re: [Geotools-gt2-users] Coordinates from MouseEvent
>Date: Fri, 1 Sep 2006 16:42:19 +0200 (CEST)
>
>Using gt 2.2 and
>import org.geotools.renderer.j2d.GeoMouseEvent;
>
>
>
> > Thank you for your reply but I get the ClassCastException I've said 
>before
> > ...
> > Are you using gt 2.2 and org.geotools.gui.swing.event.GeoMouseEvent 
>class
> > ?
> >
> >
> >>From: "Patrick Schlaepfer" <[EMAIL PROTECTED]>
> >>To: "pennyw 81" <[EMAIL PROTECTED]>
> >>Subject: Re: [Geotools-gt2-users] Coordinates from MouseEvent
> >>Date: Fri, 1 Sep 2006 16:32:42 +0200 (CEST)
> >>
> >>public void mouseClicked(MouseEvent event) {
> >>
> >>....
> >>            GeoMouseEvent e = (GeoMouseEvent) event;
> >>            System.out.println("e.getX: "+e.getX());
> >>            System.out.println("e.getY: "+e.getY());
> >>
> >>            Point2D p2D = new Point2D.Double();
> >>            p2D.setLocation(e.getX(), e.getY());
> >>
> >>            Point2D geoPoint = e.getMapCoordinate(p2D);
> >>            System.out.println(geoPoint.getX());
> >>            System.out.println(geoPoint.getY());
> >>....
> >>
> >> > Hi everybody, I've got a question about coordinate reference system.
> >> How
> >> > can
> >> > i transform the screen coordinates got from mouse event into
> >> coordinates
> >> > of
> >> > the reference system ? I've read the tutorial about referencing but
> >> I've
> >> > not
> >> > found any tips. I took a look at the GeoMouseEvent class in
> >> > org.geotools.gui.swing.event package and tried to use it but it
> >> doesn't
> >> > work
> >> > (it gives a ClassCastException casting MouseEvent to GeoMouseEvent).
> >> > Anyone has an idea?
> >> > Thank you for help
> >> > Andrea
> >> >
> >> > _________________________________________________________________
> >> > Cerchi un campeggio per le tue vacanze?
> >> >
> >>http://search.msn.it/results.aspx?q=campeggio&FORM=MSNH&CP=1252&srch_type=0
> >> >
> >> >
> >> >
> >>-------------------------------------------------------------------------
> >> > Using Tomcat but need to do more? Need to support web services,
> >>security?
> >> > Get stuff done quickly with pre-integrated technology to make your 
>job
> >> > easier
> >> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> >>Geronimo
> >> > 
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >> > _______________________________________________
> >> > Geotools-gt2-users mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> >> >
> >>
> >>
> >
> > _________________________________________________________________
> > Scopri il nuovo Windows Live Messenger!
> > http://get.live.com/messenger/features
> >
> >
> > 
>-------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, 
>security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache 
>Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Geotools-gt2-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> >
>
>

_________________________________________________________________
Ricerche online più semplici e veloci con MSN Toolbar! 
http://toolbar.msn.it/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to