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.

-----Original Message-----
From: [] On Behalf Of Magdalini Zachariadou
Sent: Friday, October 26, 2007 7:28 AM
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 );



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

Thank You,



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 č stato sostituito dal nuovo dominio
Tutti gli indirizzi esistenti sono sostituiti dai corrispondenti <> ; il vecchio dominio continuerą a funzionare, in ricezione, sino al 31/12/2007.

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

Classification: UNCLASSIFIED
Caveats: NONE

[To unsubscribe to this list send an email to ""
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