Re: [OpenMap Users] How to use milstd2525b package

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 2 Mar 2005 11:00:00 -0500

Change your call to showDialog:

SymbolChooser.showDialog(null, "Symbol Chooser", lib,
"ifgpsrma-------");

- Don

On Mar 2, 2005, at 10:48 AM, ▄mit Demir wrote:

> Hi,
>
> I used the code below:
> I drawed the symbol on my panel, but I could not see the symbol with
> the
> same symbol code on SymbolChooser window.
> Am I doing something wrong?
>
>
>
> SymbolReferenceLibrary lib;
> lib = new SymbolReferenceLibrary();
> lib.setSymbolImageMaker("com.bbn.openmap.tools.symbology.milStd2525.PNG
> Symbo
> lImageMaker");
> ImageIcon icon = lib.getIcon("ifgpsrma-------" , new Dimension(46,
> 35));
>
> if (icon != null){
> Graphics2D g2d = (Graphics2D)this.jpHarita.getGraphics();
> g2d.drawImage(icon.getImage(), 200, 100, null);
> }
>
> SymbolChooser.showDialog(null, "Symbol Chooser", lib, null);
>
>
> ----- Original Message -----
> From: "Don Dietrick" <dietrick_at_bbn.com>
> To: "▄mit Demir" <udemir_at_aselsan.com.tr>
> Cc: "Andrew Schulak" <aschulak_at_gestalt-llc.com>;
> <openmap-users_at_bbn.com>
> Sent: Wednesday, March 02, 2005 5:05 PM
> Subject: Re: [OpenMap Users] How to use milstd2525b package
>
>
>
> On Mar 2, 2005, at 9:48 AM, ▄mit Demir wrote:
>
>> Hi,
>>
>> I used the milstd package and drawed the symbols.It was OK.
>> But SymbolChooser class had something wrong. I could not get icon
>> drawned on
>> the symbolchooser panel, even if I created the right symbol code. Did
>> anyone
>> introduced something like this?
>
> If you can get the symbol drawn, the symbol chooser should also draw
> it. How did you draw the symbols originally, and how was that
> different when you used the SymbolChooser? Did you give the
> SymbolChooser the same SymbolReferenceLibrary object that successfully
> created the symbol, or was the problem in a different application.
>
>> I also tried to draw more than 1000 symbol at the sometime, the
>> performance
>> was poor. Do you have any comment on the performance of milstd2525b
>> package?
>
> Not really, since I have no idea on how you are trying to use it, or
> what you consider to be poor performance.
>
> - Don
>
>> ----- Original Message -----
>> From: "Don Dietrick" <dietrick_at_bbn.com>
>> To: "Andrew Schulak" <aschulak_at_gestalt-llc.com>
>> Cc: "▄mit Demir" <udemir_at_aselsan.com.tr>; <openmap-users_at_bbn.com>
>> Sent: Friday, February 25, 2005 4:56 PM
>> Subject: Re: [OpenMap Users] How to use milstd2525b package
>>
>>
>>> Try this:
>>>
>>> SymbolReferenceLibrary srl = new SymbolReferenceLibrary();
>>>
>>> srl.setSymbolImageMaker("com.bbn.openmap.tools.symbology.milStd2525.P
>>> N
>>> GS
>>> 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.Sy
>>>> m
>>>> bo
>>>> lReferenceLibrary");
>>>>
>>>> p.setProperty("imageMakerClass","com.bbn.openmap.tools.symbology.mil
>>>> S
>>>> td
>>>> 2525.GIFSymbolImageMaker");
>>>> SymbolReferenceLibrary srl = new SymbolReferenceLibrary();
>>>> srl.setProperties(p);
>>>> SymbolChooser.showDialog(null,"Symbol Chooser",srl,null);
>>>
>>>
>>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>> Don Dietrick, dietrick_at_bbn.com
>>> BBN Technologies, Cambridge, MA
>>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>>
>>
>>
>> ######################################################################
>> Dikkat:
>>
>> Bu elektronik posta mesaji kisisel ve ozeldir. Eger size
>> gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.
>> Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte,
>> guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki
>> gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi
>> gorusu olmak zorunda degildir.
>>
>> ######################################################################
>> Attention:
>>
>> This e-mail message is privileged and confidential. If you are
>> not the intended recipient please delete the message and notify
>> the sender. E-mails to and from the company are monitored for
>> operational reasons and in accordance with lawful business practices.
>> Any views or opinions presented are solely those of the author and
>> do not necessarily represent the views of the company.
>>
>> ######################################################################
>>
>>
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, dietrick_at_bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
>
> ######################################################################
> Dikkat:
>
> Bu elektronik posta mesaji kisisel ve ozeldir. Eger size
> gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.
> Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte,
> guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki
> gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi
> gorusu olmak zorunda degildir.
>
> ######################################################################
> Attention:
>
> This e-mail message is privileged and confidential. If you are
> not the intended recipient please delete the message and notify
> the sender. E-mails to and from the company are monitored for
> operational reasons and in accordance with lawful business practices.
> Any views or opinions presented are solely those of the author and
> do not necessarily represent the views of the company.
>
> ######################################################################
>
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Mar 02 2005 - 11:00:30 EST

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