Class Bio::Graphics::Primitive
In: lib/bio/graphics/primitive.rb
Parent: Object

The Bio::Graphics::Primitive class is used to describe simple shapes. It is basically a simple data container that has lots of dynamically set instance variables including a name. The Bio::Graphics::Primitive object is later translated to an SVG string by the Bio::Graphics::SVGEE class.

Methods

new   update  

Attributes

primitive  [R] 

Public Class methods

Creates a new Primitive and initialises instance variables dynamically from the args hash

args+

  • :primitive = the Primitive type
  • args = a hash of parameters needed to describe the attributes of the primitive type

Public Instance methods

Updates a Primitive and sets the provided values as instance variables

args

  • args = a hash of new parameters for the given primitive type

[Validate]