question: 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 ) ; }
target:  Removes a particular MapMouseMode from the MouseMode list.