Class: Ambling::Xy::Settings::Grid::X
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::Grid::X
- Includes:
- Base
- Defined in:
- lib/ambling/xy.rb
Overview
x axis grid
Constant Summary collapse
- VALUES =
[:color,:alpha,:dashed,:dash_length,:approx_count,:fill_color,:fill_alpha]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 15
-
(0 - 100).
-
#approx_count ⇒ Object
- 10
-
(Number) approximate number of gridlines.
-
#color ⇒ Object
- #000000
-
(hex color code).
-
#dash_length ⇒ Object
- 5
-
(Number).
-
#dashed ⇒ Object
- false
-
(true / false).
-
#fill_alpha ⇒ Object
- 0
-
(0 - 100) opacity of fill.
-
#fill_color ⇒ Object
- #FFFFFF
-
(hex color code) every second area between gridlines will be filled with this color (you will need to set fill_alpha > 0).
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 15
-
(0 - 100)
320 321 322 |
# File 'lib/ambling/xy.rb', line 320 def alpha @alpha end |
#approx_count ⇒ Object
- 10
-
(Number) approximate number of gridlines
335 336 337 |
# File 'lib/ambling/xy.rb', line 335 def approx_count @approx_count end |
#color ⇒ Object
- #000000
-
(hex color code)
315 316 317 |
# File 'lib/ambling/xy.rb', line 315 def color @color end |
#dash_length ⇒ Object
- 5
-
(Number)
330 331 332 |
# File 'lib/ambling/xy.rb', line 330 def dash_length @dash_length end |
#dashed ⇒ Object
- false
-
(true / false)
325 326 327 |
# File 'lib/ambling/xy.rb', line 325 def dashed @dashed end |
#fill_alpha ⇒ Object
- 0
-
(0 - 100) opacity of fill
345 346 347 |
# File 'lib/ambling/xy.rb', line 345 def fill_alpha @fill_alpha end |
#fill_color ⇒ Object
- #FFFFFF
-
(hex color code) every second area between gridlines will be filled with this color (you will need to set fill_alpha > 0)
340 341 342 |
# File 'lib/ambling/xy.rb', line 340 def fill_color @fill_color end |