Re: [OpenMap Users] RenderType and Location??

From: Don Dietrick <dietrick_at_bbn.com>
Date: Fri, 13 May 2005 09:21:37 -0400

Hi Bader,

I would explicitly cast the esripoint getLat() and getLon() results
to floats. You can also call location.getLabel() to the the OMText
label object.

- Don

On May 11, 2005, at 11:00 AM, Bader Mohammad Halawani wrote:

> hi openmap communite
>
> how can I make the RENDERTYPE for LOCATION to be RENDERTYPE_LATLON.
> I had extend locationHndler class and implement (get) method to add
> location
> to the Vector in that method as will as label.
> label is readed from DBF and added to the location constructor.
> BUT the label is not changed as mapBean scale changed (zoom-in and
> zoom-out).
> It still hold the same size which looks noisyand alot of codensed
> point.
>
> could you please provide any solution to me.
> thanks alot.
>
> the code is below.
> ======================================================================
> ======
> //inside get method of myLocationHandler
> while (EsriIt.hasNext()) {
> EsriPoint esripoint = (EsriPoint) EsriIt.next();
> Location location = new BasicLocation
> (esripoint.getLat(),
> esripoint.getLon(), ((String)(DBFtable.getValueAt((count), 1))) ,
> null);
>
> location.setLocationHandler(this);
> location.getLabel().setLinePaint(colors[count % 8]);
> location.setShowName(true);
> location.setShowLocation(true);
> graphicList.addElement(location);
> count++;
> }
> return graphicList;
>
> ======================================================================
> =======
>
> __________________________________________
> Bader M.H. Halawani
> COmputer Engineering department (COE)
> KFUPM university
>
> --
> [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"]
>

--
[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 May 13 2005 - 09:24:25 EDT

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