public void removeMouseMode(MapMouseMode med){
  boolean needToAdjustActiveMode=false;
  if (med == null) {
    return;
  }
  if (med.equals(activeMouseMode)) {
    needToAdjustActiveMode=true;
    setInactive(med);
  }
  for (  MapMouseMode checkMM : mouseModes) {
    if (med.equals(checkMM)) {
      med.removeAllMapMouseListeners();
    }
 else     if (needToAdjustActiveMode) {
      setActive(checkMM);
      needToAdjustActiveMode=false;
    }
  }
  mouseModes.remove(med);
  firePropertyChange(MouseModesProperty,null,mouseModes);
}

public void removeMouseMode ( MapMouseMode med ) { boolean needToAdjustActiveMode = false ; if ( med == null ) { return ; } if ( med . equals ( activeMouseMode ) ) { needToAdjustActiveMode = true ; setInactive ( med ) ; } for ( MapMouseMode checkMM : mouseModes ) { if ( med . equals ( checkMM ) ) { med . removeAllMapMouseListeners ( ) ; } else if ( needToAdjustActiveMode ) { setActive ( checkMM ) ; needToAdjustActiveMode = false ; } } mouseModes . remove ( med ) ; firePropertyChange ( MouseModesProperty , null , mouseModes ) ; }
removes a particular mapmousemode from the mousemode list .
