 
   getView:-> @childView
 
-  delayedDisplay:(timeout = @getOptions().delayIn)->
-    @utils.killWait @displayTimer
-    @displayTimer = @utils.wait timeout, =>
-      if @isCurrentlyRemovable()
-        @display()
-      else
-        @delayedRemove()
-
-  remove:->
-
-    return unless @visible
-
-    KD.getSingleton('windowController').removeLayer @
-    document.body.removeChild @$()[0]
-    @visible = no
-
   destroy:->
 
-    @visible = no
     @parentView.tooltip = null
     delete @parentView.tooltip
     super
 
-  delayedRemove:(timeout = @getOptions().delayOut)->
-
-    return if @getOptions().sticky
-
-    @utils.killWait @deleteTimer
-    @deleteTimer = @utils.wait timeout, =>
-      unless @isCurrentlyRemovable()
-        if @getOptions().animate
-          @unsetClass 'in'
-          KD.getSingleton('windowController').enableScroll()
-          @utils.killWait @animatedDeleteTimer
-          @animatedDeleteTimer = @utils.wait 2000, @bound "remove"
-        else
-          KD.getSingleton('windowController').enableScroll()
-          @remove()
-
   translateCompassDirections:(o)->
 
     {placement,gravity} = o

    else
      @wrapper.updatePartial Encoder.htmlEncode title

  viewAppended:->
    super()
    o = @getOptions()

    if o.view?
      @setView o.view
    else
      @setClass 'just-text'
      @setTitle o.title, o

    # @setTemplate @pistachio()
    # @template.update()

    @parentView.emit 'TooltipReady'

    @addSubView @arrow
    @addSubView @wrapper


  # pistachio:->
  #   """
  #    {{> @arrow}}
  #    {{> @wrapper}}
  #   """

  directionMap = (placement, gravity)->
    if placement in ["top", "bottom"]
      if /e/.test gravity then "left"

  display:(o = @getOptions())->

    # converts NESW-Values to topbottomleftright and retains them in @getOptions
    KDView.appendToDOMBody this
    @getSingleton("windowController").addLayer this
    o = @translateCompassDirections o if o.gravity
    o.gravity = null

    @setClass 'in' if o.animate
    @utils.defer => @setPosition o

  getCorrectPositionCoordinates:(o={},positionValues,callback=noop)->
    # values that can/will be used in all the submethods
