Class: OpenFlashChart::Inner_bg_grad
- Inherits:
-
Object
- Object
- OpenFlashChart::Inner_bg_grad
- Defined in:
- lib/plugins/open_flash_chart/lib/open_flash_chart/background.rb
Instance Method Summary (collapse)
-
- (Inner_bg_grad) initialize
constructor
A new instance of Inner_bg_grad.
- - (Object) set_alpha(array) (also: #alpha=)
- - (Object) set_angle(angle) (also: #angle=)
- - (Object) set_colour1(color) (also: #colour1=)
- - (Object) set_colour2(color) (also: #colour2=)
- - (Object) set_fillType(type) (also: #fillType=)
- - (Object) set_ratio(array) (also: #ratio=)
Constructor Details
- (Inner_bg_grad) initialize
Returns a new instance of Inner_bg_grad
4 5 6 7 8 9 10 11 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/background.rb', line 4 def initialize() @fillType = 'linear' @colour1 = '#f8f8d8' @colour2 = '#FFFFFF' @alpha = [1,1] @ratio = [0,255] @angle = '90' end |
Instance Method Details
- (Object) set_alpha(array) Also known as: alpha=
25 26 27 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/background.rb', line 25 def set_alpha(array) @alpha = array.to_a end |
- (Object) set_angle(angle) Also known as: angle=
33 34 35 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/background.rb', line 33 def set_angle(angle) @angle = angle.to_s end |
- (Object) set_colour1(color) Also known as: colour1=
17 18 19 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/background.rb', line 17 def set_colour1(color) @colour1 = color end |
- (Object) set_colour2(color) Also known as: colour2=
21 22 23 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/background.rb', line 21 def set_colour2(color) @colour2 = color end |
- (Object) set_fillType(type) Also known as: fillType=
13 14 15 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/background.rb', line 13 def set_fillType(type) @fillType = type end |
- (Object) set_ratio(array) Also known as: ratio=
29 30 31 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/background.rb', line 29 def set_ratio(array) @ratio = array.to_a end |