Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] BBoxSelection Listener

Hi all,

 

 

I’m trying to develop a plug-in that could listen to the BBoxSelectionCommand and get the bbox that have been drawn by the user with the bbox tool.

I’ve tried to add a MapListener, I catch an event but it doesn’t help:

 

 

 

activeMap.addMapListener(new IMapListener(){

            public void changed(MapEvent event)

            {

              System.out.println("change");

              if(event.getType() == MapEvent.MapEventType.MAP_COMMAND){

                CommandManager val = (CommandManager)event.getNewValue();

                Object old=event.getOldValue();

                System.out.println(val.getMaxHistorySize());

              }

            }});

              }

 

 

Thanks in advance for your help, I’m really lost here.

 

 

DESPRES Damien


Back to the top