private EditMode(final String name,final String cursorName){
  Toolkit toolkit=Toolkit.getDefaultToolkit();
  Image image=ResourceManager.getImage(cursorName);
  if (name.equals("selection")) {
    this.cursor=Cursor.getDefaultCursor();
  }
 else {
    this.cursor=toolkit.createCustomCursor(image,CENTER_POINT,name);
  }
}

private EditMode ( final String name , final String cursorName ) { Toolkit toolkit = Toolkit . getDefaultToolkit ( ) ; Image image = ResourceManager . getImage ( cursorName ) ; if ( name . equals ( "selection" ) ) { this . cursor = Cursor . getDefaultCursor ( ) ; } else { this . cursor = toolkit . createCustomCursor ( image , CENTER_POINT , name ) ; } }
create a new edit mode with the specified name .
