# File lib/bio/graphics/track.rb, line 37
  def initialize(panel, name, opts = {})
    @panel = panel
    @name = name
    opts = {
      :label => true,
      :glyph => :generic,
      :colour => [0,0,1]
    }.merge(opts)
    
    @show_label = opts[:label]
    @glyph = opts[:glyph]
    @colour = opts[:colour]

    # As far as I know, I can't do this in the glyph file for transcript, so we
    # have to do it here instead.
    if @glyph == :transcript
      @glyph = { 'utr5' => :box, 'utr3' => :directed_box, 'cds' => :spliced }
    end
    
    @features = Array.new
    @number_of_feature_rows = 0
    @vertical_offset = 0
    @grid = Hash.new
  end