[OpenMap Users] Changing font when displaying CSV-generated location names

From: Martin Pröhl <martin.proehl_at_email.domain.hidden>
Date: Thu Aug 23 2007 - 14:39:00 EDT

I'm currently trying to change the font of the text displayed when
reading cities from a csv-file. The methods that are provided in
CSVLocationHandler.class are only designed to change color and line
thickness but not changing the font. The default value of
Font("SansSerif", java.awt.Font.PLAIN, 12); is always used and cannot be
changed from my point of view.
As far as i figured out this should be only possible when changing the line

label = new OMText(lat, lon, xOffset, yOffset, name, OMText.JUSTIFY_LEFT);

in Location.class but the method is not designed to hand over a font-value.

Since i dont want to change the code unless i have to to, i'm wondering
if theres another way but i dont see any way to change the attribute of
Font used in OMText.class from my focus in CSVLocationHandler.

martin

--
[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 Thu Aug 23 14:48:10 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 23 2007 - 14:48:13 EDT