Class: Bio::Graphics::Glyph::Spliced

Inherits:
Common
  • Object
show all
Defined in:
lib/bio/graphics/glyphs/spliced.rb

Instance Attribute Summary

Attributes inherited from Common

#feature_context, #subfeature

Instance Method Summary collapse

Methods inherited from Common

#initialize, #left_pixel, #right_pixel

Constructor Details

This class inherits a constructor from Bio::Graphics::Glyph::Common

Instance Method Details

#drawObject



11
12
13
14
# File 'lib/bio/graphics/glyphs/spliced.rb', line 11

def draw
  pixel_ranges = @subfeature.pixel_range_collection.sort_by{|pr| pr.lend}
  draw_spliced(@feature_context, pixel_ranges, [], [])
end