         return entry.id
 
 
-  nodeIdHasComment : (id) ->
-
-    return @RENDER_COMMENTS and @comments.hasCommentWithNodeId(id)
-
-
+  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"
+
+
+  renderComments : (renderComments) ->
+
+    @RENDER_COMMENTS = renderComments
+
+
+  setDimensions : ({width, height}) ->
+
+    $(@canvas).css({width, height})
+    @canvas[0].width = width
+    @canvas[0].height = height

    @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) ->

    @ctx.lineWidth = 1


  nodeIdHasComment : (id) ->

    return @RENDER_COMMENTS and @comments.hasCommentWithNodeId(id)


  recordWidths : (tree) ->
