[OpenMap Users] OMText more info - needs to be cleared

From: Mariusz Chmielewski <mchmiel_at_isi.wat.waw.pl>
Date: Fri, 03 Jun 2005 16:15:43 +0200

and i tried one more thing when i implement the

public void projectionChanged(ProjectionEvent event) {
        projection = event.getProjection();
        Iterator itList = unitList.iterator();
        while (itList.hasNext()) {
            MilitaryUnitGraphicsObj graphic = (MilitaryUnitGraphicsObj)
itList
                    .next();
           
            graphic.setNeedToRegenerate(true);
            graphic.getUnitDescription().setNeedToRegenerate(true);
            if (projection != null){
                graphic.generate(projection);
                graphic.getUnitDescription().generate(projection);
            }
        }
    }

during the call to graphic.getUnitDescription().generate(projection);
when i go to debugging into the generate method of OMText i get
exception calling this method pt.translate(point.x, point.y); exception
is NullPointer Exception (PLEASE HELP) what is wrong with the OMText ??
i construct it normlly using approprite constructod.

Mariusz Chmielewski



 

--
[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 Jun 03 2005 - 10:17:31 EDT

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