NAME
Bio::Graphics::Glyph::Factory - Factory for Bio::Graphics::Glyph objects
SYNOPSIS
See Bio::Graphics::Panel.
DESCRIPTION
This class is used internally by Bio::Graphics to generate new Glyph objects by combining a list of features with the user's desired configuration. It is intended to be used internally by Bio::Graphics.
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web:
http://bugzilla.open-bio.org/
AUTHOR - Lincoln Stein
Email - [email protected]
SEE ALSO
Bio::Graphics::Panel
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with an "_" (underscore).
new
Title : newUsage : $f = Bio::Graphics::Glyph::Factory->new(-stylesheet => $stylesheet,-glyph_map => $glyph_map,-options => $options);Function : create a new Bio::Graphics::Glyph::Factory objectReturns : the new objectArgs : $stylesheet is a Bio::Das::Stylesheet object that canconvert Bio::Das feature objects into glyph names andassociated options.$glyph_map is a hash that maps primary tags to glyph names.$options is a hash that maps option names to their values.Status : Internal to Bio::Graphics
clone
Title : cloneUsage : $f2 = $f->cloneFunction : Deep copy of a factory objectReturns : a deep copy of the factory objectArgs : NoneStatus : Internal to Bio::Graphics
stylesheet
Title : stylesheetUsage : $stylesheet = $f->stylesheetFunction : accessor for stylesheetReturns : a Bio::Das::Stylesheet objectArgs : NoneStatus : Internal to Bio::Graphics
glyph_map
Title : glyph_mapUsage : $map = $f->glyph_mapFunction : accessor for the glyph mapReturns : a hash mapping primary tags to glyphsArgs : NoneStatus : Internal to Bio::Graphics
option_map
Title : option_mapUsage : $map = $f->option_mapFunction : accessor for the option mapReturns : a hash mapping option names to valuesArgs : NoneStatus : Internal to Bio::Graphics
global_opts
Title : global_optsUsage : $map = $f->global_optsFunction : accessor for global optionsReturns : a hash mapping option names to valuesArgs : NoneStatus : Internal to Bio::Graphics
This returns a set of defaults for option values.
panel
Title : panelUsage : $panel = $f->panelFunction : accessor for Bio::Graphics::PanelReturns : a Bio::Graphics::PanelArgs : NoneStatus : Internal to Bio::Graphics
This returns the panel with which the factory is associated.
scale
Title : scaleUsage : $scale = $f->scaleFunction : accessor for the scaleReturns : a floating point numberArgs : NoneStatus : Internal to Bio::Graphics
This returns the scale, in pixels/bp for glyphs constructed by this factory.
font
Title : fontUsage : $font = $f->fontFunction : accessor for the fontReturns : a font nameArgs : NoneStatus : Internal to Bio::Graphics
This returns a GD font name.
map_pt
Title : map_ptUsage : @pixel_positions = $f->map_pt(@bp_positions)Function : map bp positions to pixel positionsReturns : a list of pixel positionsArgs : a list of bp positionsStatus : Internal to Bio::Graphics
The real work is done by the panel, but factory subclasses can override if desired.
map_no_trunc
Title : map_no_truncUsage : @pixel_positions = $f->map_no_trunc(@bp_positions)Function : map bp positions to pixel positionsReturns : a list of pixel positionsArgs : a list of bp positionsStatus : Internal to Bio::Graphics
Same as map_pt(), but it will NOT clip pixel positions to be within the drawing frame.
translate_color
Title : translate_colorUsage : $index = $f->translate_color($color_name)Function : translate symbolic color names into GD indexesReturns : an integerArgs : a color name in format "green" or "#00FF00"Status : Internal to Bio::Graphics
The real work is done by the panel, but factory subclasses can override if desired.
transparent_color
Title : transparent_colorUsage : $index = $f->transparent_color($opacity,$color_name)Function : translate symbolic color names into GD indexes, withan opacity value taken into accountReturns : an integerArgs : an opacity value from 0-1.0, plus a color name in format "green" or "#00FF00"Status : Internal to Bio::Graphics
The real work is done by the panel, but factory subclasses can override if desired.
make_glyph
Title : make_glyphUsage : @glyphs = $f->glyph($level,[$type,]$feature1,$feature2...)Function : transform features into glyphs.Returns : a list of Bio::Graphics::Glyph objectsArgs : a feature "level", followed by a list of FeatureI objects.Status : Internal to Bio::Graphics
The level is used to track the level of nesting of features that have subfeatures. The option $type argument can be used to force the glyph type
feature_to_glyph
Title : feature_to_glyphUsage : $glyph_name = $f->feature_to_glyph($feature)Function : choose the glyph name given a featureReturns : a glyph nameArgs : a Bio::Seq::FeatureI objectStatus : Internal to Bio::Graphics
set_option
Title : set_optionUsage : $f->set_option($option_name=>$option_value)Function : set or change an optionReturns : nothingArgs : a name/value pairStatus : Internal to Bio::Graphics
options
Title : optionsUsage : @option_names = $f->optionsFunction : return all configured option namesReturns : a list of option namesArgs : noneStatus : Internal to Bio::Graphics