Class: Ambling::Xy::Settings::Grid::Y

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/xy.rb

Overview

y axis grid

Constant Summary collapse

VALUES =
[:color,:enabled,:alpha,:dashed,:dash_length,:approx_count,:fill_color,:fill_alpha]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

15

(0 - 100)



367
368
369
# File 'lib/ambling/xy.rb', line 367

def alpha
  @alpha
end

#approx_countObject

10

(Number) approximate number of gridlines



382
383
384
# File 'lib/ambling/xy.rb', line 382

def approx_count
  @approx_count
end

#colorObject

#000000

(hex color code)



357
358
359
# File 'lib/ambling/xy.rb', line 357

def color
  @color
end

#dash_lengthObject

5

(Number)



377
378
379
# File 'lib/ambling/xy.rb', line 377

def dash_length
  @dash_length
end

#dashedObject

false

(true / false)



372
373
374
# File 'lib/ambling/xy.rb', line 372

def dashed
  @dashed
end

#enabledObject

true

(true / false)



362
363
364
# File 'lib/ambling/xy.rb', line 362

def enabled
  @enabled
end

#fill_alphaObject

0

(0 - 100) opacity of fill



392
393
394
# File 'lib/ambling/xy.rb', line 392

def fill_alpha
  @fill_alpha
end

#fill_colorObject

#FFFFFF

(hex color code) every second area between gridlines will be filled with this color (you will need to set fill_alpha > 0)



387
388
389
# File 'lib/ambling/xy.rb', line 387

def fill_color
  @fill_color
end