Class Bio::Graphics::SVGEE
In: lib/bio/graphics/svgee.rb
Parent: Object

The Bio::Graphics::SVGEE class takes argument information in a hash and creates SVG Markup tags, which it will draw

Methods

add_primitive   close_tag   draw   gradient   new   open_tag  

Attributes

defs  [R] 
primitives  [R] 
supported_primitives  [R] 

Public Class methods

Creates a new Bio::Graphics::SVGEE object which will contain all the necessary objects to display all the features on a page

args

  • :width = the width of the SVG page (100%)
  • :height = the amount of the page height the svg should take up (100%)
  • :style = the svg style information

Public Instance methods

Adds a Primitive object to the SVGEE object and makes the svg text for that Primitive

Produces the closing text for an svg file

Produces the svg text to display all the features on a Page

Takes the gradient information from a Glyph, which must be of type ‘radial’ or ‘linear’ and creates the svg text for that gradient

  • a = a gradient (a gradient type, a colour and the parameters for a given type)

Produces the opening text for an svg file

[Validate]