[OpenMap Users] Issue with InformationDelegator

From: Mulone <andrea.ballatore_at_ucd.ie>
Date: Fri, 24 Jul 2009 05:02:54 -0700 (PDT)

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"]
Received on Fri Jul 24 2009 - 08:04:35 EDT

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