public void addMouseMode(MapMouseMode med){
  if (med != null) {
    mouseModes.addElement(med);
    if (mouseModes.size() == 1) {
      setActive(med);
    }
    if (currentLayers != null) {
      setupMouseModeWithLayers(med,currentLayers);
    }
    firePropertyChange(MouseModesProperty,null,mouseModes);
  }
}

public void addMouseMode ( MapMouseMode med ) { if ( med != null ) { mouseModes . addElement ( med ) ; if ( mouseModes . size ( ) == 1 ) { setActive ( med ) ; } if ( currentLayers != null ) { setupMouseModeWithLayers ( med , currentLayers ) ; } firePropertyChange ( MouseModesProperty , null , mouseModes ) ; } }
adds a mapmousemode to the mousemode list . does not make it the active mode .
