RE: [OpenMap Users] Set Label To an OMRaster (UNCLASSIFIED)

From: Lackey, Michael B. (SED/BTI) <"Lackey,>
Date: Fri, 26 Oct 2007 09:14:37 -0500

Classification: UNCLASSIFIED
Caveats: NONE

I do not know if OMRaster supports a text label.

If not, examine Location layer (com.bbn.openmap.layer.location) for example of text labels. Maybe that would work, or maybe you can copy and modify to meet your needs.

Mike Lackey
Brockwell Technologies, Inc.
256-876-0167

-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On Behalf Of Magdalini Zachariadou
Sent: Friday, October 26, 2007 7:28 AM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] Set Label To an OMRaster

Hello everyone, I hope someone can help me...

To start, just the facts:

1) I have an OMGraphicHandlerLayer.

2) I have an OMGraphicList which contains an OMRaster .

Now, the problem:
I see the icon (the OMRaster) but I can not find a way to set and view a label or a text or a String related to the Icon.
Just as you would do it for a JButton and Its' label for example.

Here bellow I attach a piece of my code:
 
"........
OMGraphicHandlerLayer handler = new OMGraphicHandlerLayer();

Image myImage = Toolkit.getDefaultToolkit().getImage("image.png");

OMRaster myObject = new OMRaster(20f, 30f,myImage);

OMGraphicList mylist = new OMGraphicList();

mylist.addOMGraphic(myObject );

handler.setList(mylist);

........"

If anyone has tips for me, I would really appreciate it.

Thank You,

Mandy

________________________________

Si comunica che a seguito del cambiamento di ragione sociale della nostra ditta da "Oerlikon Contraves SpA" a "Rheinmetall Italia SpA", a partire dal 01/08/2007 il dominio di posta elettronica oci.it č stato sostituito dal nuovo dominio rheinmetall.it.
Tutti gli indirizzi n.cognome_at_oci.it esistenti sono sostituiti dai corrispondenti n.cognome_at_rheinmetall.it <mailto:n.cognome_at_rheinmetall.it> ; il vecchio dominio continuerą a funzionare, in ricezione, sino al 31/12/2007.

Please be informed that the mail domain oci.it has changed to the new domain rheinmetall.it, as a consequence of the company name change from "Oerlikon Contraves SpA" to "Rheinmetall Italia SpA".
All present n.surname_at_oci.it <mailto:n.surname_at_oci.it> e-mail addresses have been replaced by the corresponding n.surname_at_rheinmetall.it <mailto:n.surname_at_rheinmetall.it> . Old addresses n.surname_at_oci.it <mailto:n.surname_at_oci.it> will still be active in reception only until 31/12/2007.

Classification: UNCLASSIFIED
Caveats: NONE

--
[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 Oct 26 2007 - 10:36:28 EDT

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