AW: [OpenMap Users] TraverseMode

From: Gubler, Rüdiger <rgubler@init-ka.de>
Date: Mon May 05 2003 - 02:17:53 EDT

Hello Don,

this is what be done in the "computeGraphics"-Method:

list = new OMGraphicList();
list.setTraverseMode(OMGraphicList.LAST_ADDED_ON_TOP);
namesList = new OMGraphicList();
bounds = new Bounds(0, 0, _projection.getWidth(), _projection.getHeight());

while(<more streets available>)
{
        float[] seq2 = <get polyline from street>;
         omPoly = new GisOMPoly( seq2,
                                         OMGraphicConstants.DECIMAL_DEGREES,
                                        OMGraphicConstants.LINETYPE_STRAIGHT );

        list.addOMGraphic(omPoly);
        omGraphic = renderName(seq2, bounds, name);
        namesList.addOMGraphic(omGraphic);
}
list.addOMGraphic(namesList);
list.generate(_projection, true);

-----Ursprüngliche Nachricht-----
Von: Don Dietrick [mailto:dietrick@bbn.com]
Gesendet: Freitag, 2. Mai 2003 14:16
An: "Gubler, Rudiger"
Cc: Openmap-Users (E-Mail)
Betreff: Re: [OpenMap Users] TraverseMode

Well, rendering only ever takes place in the paint method, regardless
of whether a projection forces a calculation. Does the list change, or
does the traverse mode change. Are you always painting the list you
think you are?

- Don

On Friday, May 2, 2003, at 04:33 AM, Gubler, Rüdiger wrote:

>
> Hello,
>
> I've set the TraverseMode of the OMGraphicList like this:
>
> setTraverseMode(OMGraphicList.LAST_ADDED_ON_TOP);
>
> This works pretty good while the Layer is new calculated.
> If the layer is repainted only with the paint() method the
> order is reverse. I have streets and names on the street in
> one layer. First the streets are added to the omgraphiclist
> second all names.
>
> Whats wrong?
>
>
> Yours Rüdiger
>
>
>
>
> --
> [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"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Mon May 5 02:22:44 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT