Class: Ambling::Line::Settings::Scroller
- Inherits:
-
Object
- Object
- Ambling::Line::Settings::Scroller
- Includes:
- Base
- Defined in:
- lib/ambling/line.rb
Constant Summary collapse
- VALUES =
[:enabled,:y,:color,:alpha,:bg_color,:bg_alpha,:height]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 100
-
(Number) scrollbar alpha.
-
#bg_alpha ⇒ Object
- 100
-
(Number) scroller background alpha.
-
#bg_color ⇒ Object
- #F0F0F0
-
(hex color code) scroller background color.
-
#color ⇒ Object
- #DADADA
-
(hex color code) scrollbar color.
-
#enabled ⇒ Object
- true
-
(true / false) whether to show scroller when chart is zoomed or not.
-
#height ⇒ Object
- 10
-
(Number) scroller height.
-
#y ⇒ Object
-
(Number) Y position of scroller.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 100
-
(Number) scrollbar alpha
342 343 344 |
# File 'lib/ambling/line.rb', line 342 def alpha @alpha end |
#bg_alpha ⇒ Object
- 100
-
(Number) scroller background alpha
352 353 354 |
# File 'lib/ambling/line.rb', line 352 def bg_alpha @bg_alpha end |
#bg_color ⇒ Object
- #F0F0F0
-
(hex color code) scroller background color. Separate color codes with comas for gradient
347 348 349 |
# File 'lib/ambling/line.rb', line 347 def bg_color @bg_color end |
#color ⇒ Object
- #DADADA
-
(hex color code) scrollbar color. Separate color codes with comas for gradient
337 338 339 |
# File 'lib/ambling/line.rb', line 337 def color @color end |
#enabled ⇒ Object
- true
-
(true / false) whether to show scroller when chart is zoomed or not
327 328 329 |
# File 'lib/ambling/line.rb', line 327 def enabled @enabled end |
#height ⇒ Object
- 10
-
(Number) scroller height
357 358 359 |
# File 'lib/ambling/line.rb', line 357 def height @height end |
#y ⇒ Object
-
(Number) Y position of scroller. If not set here, will be displayed above plot area
332 333 334 |
# File 'lib/ambling/line.rb', line 332 def y @y end |