Class: Ambling::Column::Settings::Guides::Guide

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

Overview

there can be any number of quides. guides can also be set in data xml file, using the same syntax as here

Constant Summary collapse

VALUES =
[:behind,:start_value,:end_value,:title,:width,:color,:alpha,:fill_color,:fill_alpha,:inside,:centered,:rotate,:text_size,:text_color,:dashed,:dash_length]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

100

(0 - 100) opacity of guide line



1282
1283
1284
# File 'lib/ambling/column.rb', line 1282

def alpha
  @alpha
end

#behindObject

false

(true / false) whether your guides should appear in front of columns or behind them



1252
1253
1254
# File 'lib/ambling/column.rb', line 1252

def behind
  @behind
end

#centeredObject

true

(true / false) if you have start and end values defined, title can be placed in the middle between these values. If false, it will be placed near start_value



1302
1303
1304
# File 'lib/ambling/column.rb', line 1302

def centered
  @centered
end

#colorObject

#000000

(hex color code) color of guide line



1277
1278
1279
# File 'lib/ambling/column.rb', line 1277

def color
  @color
end

#dash_lengthObject

5

(Number)



1327
1328
1329
# File 'lib/ambling/column.rb', line 1327

def dash_length
  @dash_length
end

#dashedObject

false

(true / false)



1322
1323
1324
# File 'lib/ambling/column.rb', line 1322

def dashed
  @dashed
end

#end_valueObject

(number) if you set value here too, another quide will be drawn. If you set fill alpha > 0, then the area between these quides will be filled with color



1262
1263
1264
# File 'lib/ambling/column.rb', line 1262

def end_value
  @end_value
end

#fill_alphaObject

0

(0 - 100) opacity of a fill



1292
1293
1294
# File 'lib/ambling/column.rb', line 1292

def fill_alpha
  @fill_alpha
end

#fill_colorObject

guide.color

(hex color code) fill color. If not defined, color of a guide will be used. Separate color codes with comas for gradient



1287
1288
1289
# File 'lib/ambling/column.rb', line 1287

def fill_color
  @fill_color
end

#insideObject

values.value.inside

whether to place title inside plot area



1297
1298
1299
# File 'lib/ambling/column.rb', line 1297

def inside
  @inside
end

#rotateObject

values.value.rotate

(0 - 90) angle of rotation of title.



1307
1308
1309
# File 'lib/ambling/column.rb', line 1307

def rotate
  @rotate
end

#start_valueObject

(number) value at which guide should be placed



1257
1258
1259
# File 'lib/ambling/column.rb', line 1257

def start_value
  @start_value
end

#text_colorObject

values.value.color

(hex color code)



1317
1318
1319
# File 'lib/ambling/column.rb', line 1317

def text_color
  @text_color
end

#text_sizeObject

values.value.text_size

(Number)



1312
1313
1314
# File 'lib/ambling/column.rb', line 1312

def text_size
  @text_size
end

#titleObject

(string) text which will be displayed near the guide



1267
1268
1269
# File 'lib/ambling/column.rb', line 1267

def title
  @title
end

#widthObject

0

(Number) width of a guide line (0 for hairline)



1272
1273
1274
# File 'lib/ambling/column.rb', line 1272

def width
  @width
end