package EnsEMBL::Web::ImageConfig::genesnpview_gene;
use strict;
use EnsEMBL::Web::ImageConfig;
use vars qw(@ISA);
@ISA = qw(EnsEMBL::Web::ImageConfig);

sub init {
  my ($self) = @_;

  $self->set_parameters({
    'title'         => 'Genes',
    'show_buttons'  => 'no',    # show +/- buttons
    'button_width'  => 8,       # width of red "+/-" buttons
    'show_labels'   => 'yes',   # show track names on left-hand side
    'label_width'   => 100,     # width of labels on left-hand side
    'margin'        => 5,       # margin
    'spacing'       => 2,       # spacing
    'opt_halfheight'   => 0,    # glyphs are half-height [ probably removed when this becomes a track config ]
    'opt_empty_tracks' => 0,    # include empty tracks..
  });
  $self->create_menus(      
    'transcript'      => 'Other Genes',
    'variation'       => 'Variations',
    'other'           => 'Other'
  );
  $self->load_tracks();

  $self->add_tracks( 'variation',
    [ 'snp_join',         '',     'snp_join',           { 'display' => 'on',  'strand' => 'b','tag' => 0, 'colours' => $self->species_defs->colour('variation'), 'menu' => 'no'         } ],
    [ 'geneexon_bgtrack', '',     'geneexon_bgtrack',   { 'display' => 'normal', 'src' => 'all', 'colours' => 'bisque', 'tag' => 0, 'strand' => 'b', 'menu' => 'no'         } ],
  );
  $self->add_tracks( 'other',
    [ 'scalebar',         '',     'scalebar',           { 'display' => 'normal', 'strand' => 'f', 'name' => 'Scale bar', 'menu' => 'no'  } ],
    [ 'ruler',            '',     'ruler',              { 'display' => 'normal',  'strand' => 'f','notext' => 1, 'name' => 'Ruler', 'menu' => 'no'  } ],
    [ 'spacer',           '',     'spacer',             { 'display' => 'normal', 'height' => 50,   'strand' => 'r', 'menu' => 'no'         } ],
  );
  $self->modify_configs(
    [qw(transcript )],
    {'display'=>'off'}
  );
  $self->modify_configs(
    [qw(variation )],
    {'menu'=>'no'}
  );
  $self->modify_configs(
    [qw(variation_feature_variation)],
    {qw(display normal), 'caption' => 'Variations', 'strand' => 'f',}
  );
}

1;