1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/fd53d9688eb3/ changeset: fd53d9688eb3 user: jgoecks date: 2011-07-14 12:12:55 summary: Trackster: document FeaturePainter object and methods as abstract. affected #: 1 file (377 bytes) --- a/static/scripts/trackster.js Wed Jul 13 16:51:51 2011 -0400 +++ b/static/scripts/trackster.js Thu Jul 14 12:12:55 2011 +0200 @@ -3307,6 +3307,9 @@ ctx.restore(); } +/** + * Abstract object for painting feature tracks. Subclasses must implement draw_element() for painting to work. + */ var FeaturePainter = function( data, view_start, view_end, prefs, mode ) { Painter.call( this, data, view_start, view_end, prefs, mode ); } @@ -3327,7 +3330,6 @@ }, draw: function( ctx, width, height, slots ) { - var data = this.data, view_start = this.view_start, view_end = this.view_end; ctx.save(); @@ -3356,7 +3358,12 @@ } ctx.restore(); - } + }, + + /** + * Abstract function for drawing an individual feature. NOTE: this method must be implemented by subclasses for drawing to work. + */ + draw_element: function(ctx, mode, feature, slot, tile_low, tile_high, w_scale, y_scale, width ) {} }); // Constants specific to feature tracks moved here (HACKING, these should Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.