Class: DotAttributes

Inherits:
Object
  • Object
show all
Defined in:
lib/graphiclious/dot_attributes.rb

Overview

$Id: dot_attributes.rb,v 1.1 2005/04/13 21:16:14 wsdng Exp $

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDotAttributes

Returns a new instance of DotAttributes.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/graphiclious/dot_attributes.rb', line 9

def initialize
  @node_attributes = {
    'shape' => 'box',
    'style' => 'filled',
    'height' => '0.2',
    'width' => '1',
    #'fixedsize' => 'true',
    'fontname' => 'Arial',
    'fontsize' => '10',
    'fontcolor' => 'blue',
    'color' => 'orange',
    'fillcolor' => 'orange'
  }
  @edge_attributes = {}
  @graph_attributes = {
    'bgcolor' => 'firebrick',
    'rankdir' => 'LR',
    'ranksep' => '0.2',
    'nodesep' => '0.1',
    'orientation' => 'portrait',
    'labelloc' => 'top',
    'label' => 'Tag Relations',
    'name' => 'UrlGraph' 
  }   
end

Instance Attribute Details

#edge_attributesObject

Returns the value of attribute edge_attributes.



5
6
7
# File 'lib/graphiclious/dot_attributes.rb', line 5

def edge_attributes
  @edge_attributes
end

#graph_attributesObject

Returns the value of attribute graph_attributes.



5
6
7
# File 'lib/graphiclious/dot_attributes.rb', line 5

def graph_attributes
  @graph_attributes
end

#node_attributesObject

Returns the value of attribute node_attributes.



5
6
7
# File 'lib/graphiclious/dot_attributes.rb', line 5

def node_attributes
  @node_attributes
end