Class: OpenFlashChart::OFCTags
- Inherits:
-
Base
- Object
- Base
- OpenFlashChart::OFCTags
show all
- Defined in:
- lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb
Instance Method Summary
(collapse)
Methods inherited from Base
#<<, #add_element, #append_value, #attach_to_right_y_axis, #method_missing, #render, #set_colours, #set_key, #set_offset, #set_range, #set_tooltip, #to_json2
Constructor Details
- (OFCTags) initialize(args = {})
Returns a new instance of OFCTags
3
4
5
6
7
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 3
def initialize args={}
super args
@type = 'tags'
@values = []
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class OpenFlashChart::Base
Instance Method Details
- (Object) align_x_center
19
20
21
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 19
def align_x_center
@align_x = "center"
end
|
- (Object) align_x_left
23
24
25
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 23
def align_x_left
@align_x = "left"
end
|
- (Object) align_x_right
27
28
29
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 27
def align_x_right
@align_x = "right"
end
|
- (Object) align_y_above
31
32
33
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 31
def align_y_above
@align_y = "above"
end
|
- (Object) align_y_below
35
36
37
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 35
def align_y_below
@align_y = "below"
end
|
- (Object) align_y_center
39
40
41
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 39
def align_y_center
@align_y = "center"
end
|
- (Object) append_tag(tag)
50
51
52
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 50
def append_tag(tag)
@values << tag
end
|
- (Object) font(font, size)
9
10
11
12
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 9
def font(font, size)
@font = font
@font_size = size
end
|
- (Object) padding(x, y)
14
15
16
17
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 14
def padding(x,y)
@pad_x = x
@pad_y = y
end
|
- (Object) style(bold, underline, border, alpha)
43
44
45
46
47
48
|
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/tags.rb', line 43
def style(bold, underline, border, alpha)
@bold = bold
@border = border
@underline = underline
@alpha = alpha
end
|