     SetBasepoint : "_start_selecting",
     deactivated : "_stop_selecting"}
 
-
   mouse_coords : (e, x, y) ->
     [x, y] = [@plot_view.viewstate.rxpos(x), @plot_view.viewstate.rypos(y)]
     return [x, y]

      @tool_active=true;
      @$tool_button.addClass('active'))
    return eventSink


  _start_drag : ->
    @eventSink.trigger("active_tool", @toolName)

    @plotview.main_can_wrapper.bind('mousedown', (e) =>
      if @button_activated
        @_start_drag()
        return false)

    @plotview.main_can_wrapper.bind('mouseup', (e) =>
      if @button_activated
        @_stop_drag()
        return false)

    @$tool_button = $("<button class='btn btn-small'> #{@options.buttonText} </button>")
    @plotview.$el.find('.button_bar').append(@$tool_button)

