[OpenMap Users] Analyzing LayerEvent events when a Layer is added to map.

From: Lepkowski, Thomas M., CTR, OSD-PA&E <Thomas.Lepkowski.ctr_at_osd.mil>
Date: Tue, 21 Jun 2005 12:22:57 -0400

Classification: UNCLASSIFIED

Hello OpenMap group,

Need some help understanding events that are fired when something happens to

First, I implemented a new LayerListener() and made it print the event that
Here is some output:

(this happened when a layer was added).

Layer event: ALL (403)
Layer event: REPLACE (402)



int event_type = e.getType();
switch( event_type ) {
case LayerEvent.ADD: System.out.println("Layer event: ADD" ); break;
case LayerEvent.ALL: System.out.println("Layer event: ALL" ); break;
case LayerEvent.REMOVE: System.out.println("Layer event: REMOVE" ); break;
case LayerEvent.REPLACE: System.out.println("Layer event: REPLACE" );



1) what does ALL mean. What's happening that 'ALL' indicates?
2) When doing mapPanel().getMapHandler().add( MyLayer );
   This is printed:
Layer event: ALL (403)
Layer event: REPLACE (402)
Layer event: ALL (403)
Layer event: REPLACE (402)
The sequence of events fired twice!.

Any ideas on what's happening? I wonder if the Menus are causing the second


[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 Tue Jun 21 2005 - 12:42:03 EDT

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