Re: [OpenMap Users] How to use milstd2525b package

From: Don Dietrick <dietrick@bbn.com>
Date: Fri Feb 25 2005 - 09:56:49 EST

Try this:

         SymbolReferenceLibrary srl = new SymbolReferenceLibrary();
          
srl.setSymbolImageMaker("com.bbn.openmap.tools.symbology.milStd2525.PNGS
ymbolImageMaker");

         SymbolChooser.showDialog(null, "Symbol Chooser", srl, null);

The GIFSymbolImageMaker won't work without .gif files, the
milStd2525_png.jar file only contains pngs.

Make sure you set the Affiliation and Status settings, the icons don't
exist for the codes where those are unspecified.

- Don

On Feb 25, 2005, at 9:23 AM, Andrew Schulak wrote:

> Properties p = new Properties();
>
> p.setProperty("class","com.bbn.openmap.tools.symbology.milStd2525.Symbo
> lReferenceLibrary");
>
> p.setProperty("imageMakerClass","com.bbn.openmap.tools.symbology.milStd
> 2525.GIFSymbolImageMaker");
> SymbolReferenceLibrary srl = new SymbolReferenceLibrary();
> srl.setProperties(p);
> SymbolChooser.showDialog(null,"Symbol Chooser",srl,null);

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Feb 25 09:57:42 2005

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:41 EDT