Re: [OpenMap Users] Issue with InformationDelegator

From: Ruben DF <rdocasalf_at_yahoo.es>
Date: Mon, 27 Jul 2009 07:29:29 +0000 (GMT)

Hi Mulone,



























--- El vie, 24/7/09, Mulone <andrea.ballatore_at_ucd.ie> escribió:

De: Mulone <andrea.ballatore_at_ucd.ie>
Asunto: [OpenMap Users] Issue with InformationDelegator
Para: openmap-users_at_bbn.com
Fecha: viernes, 24 julio, 2009 2:02


Hi guys,
I'm trying to get the coordinates displayed on the informationDelegator, but
debugging the framework I've noticed that the infoDelegator in the
fireMouseLocation in CoordMouseMode.java is always null.
Where that pointer is supposed to be initialised?

Thanks for any hints.
Mulone

Code:
public void fireMouseLocation(MouseEvent e) {
        /** other code /*
        if (infoDelegator != null) { // ALWAYS NULL!
            if (e.getSource() instanceof MapBean) {
                llp = ((MapBean) e.getSource()).getProjection().inverse(x,
y);
            }
            String infoLine;
            infoLine = coordFormatter.createCoordinateInformationLine(x,
                    y,
                    llp,
                    this);

            // setup the info event
            InfoDisplayEvent info = new InfoDisplayEvent(this, infoLine,
InformationDelegator.COORDINATE_INFO_LINE);
            // ask the infoDelegator to display the info
            infoDelegator.requestInfoLine(info);
        }
    }
-- 
View this message in context: http://www.nabble.com/Issue-with-InformationDelegator-tp24643352p24643352.html
Sent from the OpenMap mailing list archive at Nabble.com.
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Jul 27 2009 - 03:30:33 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT