Bio-Graphics
view release on metacpan or search on metacpan
lib/Bio/Graphics/ConfiguratorI.pm view on Meta::CPAN
Usage : my @values = $configurator->get_sections();
Function: Returns a list of the valid sections except
the default or undef.
Returns : A list of the sections which can be queried.
Args : (optional section as string, tag as string)
=cut
sub get_sections {
my ($self) = @_;
$self->throw_not_implemented();
}
=head2 get_tags
Title : get_tags
Usage : my @values = $configurator->get_tags();
or
my @values = $configurator->get_tags('dna');
Function: Returns a list of tags for a given section
or only the default tags section if no section
is given.
Returns : A scalar list of tags
Args :
=cut
sub get_tags {
my ($self) = @_;
$self->throw_not_implemented();
}
=head2 get
Title : get
Usage : my $value = $configurator->get('height');
or
my $value = $configurator->get('dna','height');
Function: Returns a tag value from a configurator from the
either the default "_general" section or from
a specified section or undef.
Returns : A scalar value for the tag
Args : (optional section as string, tag as string)
=cut
sub get {
my ($self) = @_;
$self->throw_not_implemented();
}
=head2 set
Title : set
Usage : $configurator->set('fgcolor','chartreuse');
or
$configurator->set('EST','fgcolor','chartreuse');
Function: Set a value for a tag
Returns : The old value of the tag
Args : (optional section as string, tag as string, value as scalar)
=cut
sub set {
my ($self) = @_;
$self->throw_not_implemented();
}
=head2 get_and_eval
Title : get_and_eval
Usage : my $value = $configurator->get_and_eval('height');
or
my $value = $configurator->get_and_eval('dna','height');
Function: This works like get() except that it is
lib/Bio/Graphics/ConfiguratorI.pm view on Meta::CPAN
options whose values begin with the characters
"sub {". In this case the value will be passed to
an eval() and the resulting codereference returned.
Returns : A value of the tag or undef.
Args : (optional section as string, tag as string)
=cut
sub get_and_eval {
my ($self) = @_;
$self->throw_not_implemented();
}
1;
lib/Bio/Graphics/RendererI.pm view on Meta::CPAN
Returns : In a scalar context returns the number of tracks rendered.
In a list context, returns a two-element list containing
the number of features rendered and the panel.
Args : A Bio::SeqFeature::CollectionI and a Bio::Graphics::ConfiguratorI
and optionally a Bio::Graphics::Panel.
Status : Public
=cut
sub render {
shift->throw_not_implemented();
}
1;
( run in 1.366 second using v1.01-cache-2.11-cpan-0a987023a57 )