5 Bio::Graphics::RendererI - A renderer for the Bio::Graphics class that
6 renders Bio::SeqFeature::CollectionI objects onto
7 Bio::Graphics::Panels using configuration information provided by a
8 Bio::Graphics::ConfiguratorI.
12 # Get a renderer somehow, called $renderer
14 # create a new panel and render contents a feature collection onto it
15 my $config = new ConfigIO( $config_file )->getConfig();
16 my $features = $data_provider->getCollection();
17 my ( $tracks_rendered, $panel ) = $renderer->render( $features, $prefs );
21 Renderer of Bio::SeqFeature::CollectionIs (collections of features)
22 onto a Bio::Graphics::Panel using a Bio::Graphics::ConfiguratorI for
23 general and track-specific rendering options.
29 User feedback is an integral part of the evolution of this and other
30 Bioperl modules. Send your comments and suggestions preferably to
31 the Bioperl mailing list. Your participation is much appreciated.
33 bioperl-l@bioperl.org - General discussion
34 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
38 Report bugs to the Bioperl bug tracking system to help us keep track
39 of the bugs and their resolution. Bug reports can be submitted via the
42 http://bugzilla.open-bio.org/
46 Paul Edlefsen E<lt>paul@systemsbiology.orgE<gt>.
48 Copyright (c) 2003 Institute for Systems Biology
50 This library is free software; you can redistribute it and/or modify
51 it under the same terms as Perl itself. See DISCLAIMER.txt for
52 disclaimers of warranty.
56 The rest of the documentation details each of the object methods.
57 Internal methods are usually preceded with a _
61 # Let the code begin...
63 package Bio
::Graphics
::RendererI
;
66 use base
qw(Bio::Root::RootI);
71 Usage : ( $rendered, $panel ) =
72 $renderer->render( $collection, $configurator [, $panel ] );
73 Function: Renders the SeqFeatures in the given collection onto a
74 Bio::Graphics::Panel (if no panel is given, one will be
75 created), using the given Bio::Graphics::ConfiguratorI for general
76 and track-specific rendering options.
77 Returns : In a scalar context returns the number of tracks rendered.
78 In a list context, returns a two-element list containing
79 the number of features rendered and the panel.
80 Args : A Bio::SeqFeature::CollectionI and a Bio::Graphics::ConfiguratorI
81 and optionally a Bio::Graphics::Panel.
87 shift->throw_not_implemented();