Re: [OpenMap Users] setProjectionType function deprecated , anyone know what function replaces it

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 24 Nov 2004 08:10:10 -0500

Hi Steve,

Instead of setting the projection type in the MapBean, you should
create a new projection from the ProjectionFactory. It now takes class
names instead of integer types.

Projection proj =
ProjectionFactory.makeProjection(com.bbn.openmap.proj.CADRG.class,
                                                                                mapBean.getProjection());
mapBean.setProjection(proj);

This change allows the ProjectionFactory to be able to have projection
classes set in it dynamically. They were hard-coded before.

- Don

On Nov 23, 2004, at 4:55 PM, Steve Frierdich wrote:

>
> I am using the setProjectionType() function of the MapBean class and
> the compiler said that the setProjectionType() function is deprecated.
> Does anyone know what function replaces the setProjectionType()
> function? Does anyone have source code they could send me that uses
> the function that replaces it? Below is a snap shot if the source code
> I use that when compiled shows that the setProjectionType is
> deprecated.
>
>   basicMapPanel = new BasicMapPanel(new
> com.bbn.openmap.PropertyHandler(
>       getFrameProperties()));
>    
>     //Get BasicMapPanel's MapBean
>     MapBean mapBean = basicMapPanel.getMapBean();
>
> mapBean.setProjectionType(CADRG.CADRGType);
>
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Wed Nov 24 2004 - 08:13:19 EST

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