public void deactivate(){
  int actionMask=0;
  if (currentEditable != null) {
    actionMask=currentEditable.getActionMask();
  }
  deactivate(actionMask);
}

public void deactivate ( ) { int actionMask = 0 ; if ( currentEditable != null ) { actionMask = currentEditable . getActionMask ( ) ; } deactivate ( actionMask ) ; }
turn the drawing tool off , disconnecting it from the mousedelegator or canvas component , and removing the palette . called automatically from the mouse mode an gui when appropriate , although you can force a cleanup if needed by calling this method . calling this version of deactivate ( ) just uses the action mask stored in the editableomgraphic , which knows if the graphic is being updated or created .
