     @width = width
     @height = height
     @nodeList = []
-
-  renderComments : (renderComments) ->
-
-    @RENDER_COMMENTS = renderComments
-
-
-  setDimensions : ({width, height}) ->
-
-    $(@canvas).css({width, height})
-    @canvas[0].width = width
-    @canvas[0].height = height
 
 
   drawTree : (tree, @activeNodeId, @comments) ->

    return @calculateTop(chainCount, top, mode) + @nodeDistance


  clearBackground : ->

    @ctx.clearRect(0, 0, @canvas.width(), @canvas.height())


  setupColors : ->

    # apply color scheme
    if app.oxalis.view.theme == Constants.THEME_BRIGHT
      @vgColor = "black"
      @commentColor = "red"
    else
      @vgColor = "white"
      @commentColor = "blue"


  drawNode : (x, y, id) ->

    @ctx.lineWidth = 1


  nodeIdHasComment : (id) ->

    return @RENDER_COMMENTS and @comments.hasCommentWithNodeId(id)


  recordWidths : (tree) ->
