Class: Ambling::Xy::Settings::Labels::Label

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

Constant Summary collapse

VALUES =
[:x,:y,:rotate,:width,:align,:text_color,:text_size,:text]
ATTRIBUTES =
[:lid]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alignObject

left

(left / center / right)



1394
1395
1396
# File 'lib/ambling/xy.rb', line 1394

def align
  @align
end

#lidObject

xml attribute



1414
1415
1416
# File 'lib/ambling/xy.rb', line 1414

def lid
  @lid
end

#rotateObject

false

(true, false)



1384
1385
1386
# File 'lib/ambling/xy.rb', line 1384

def rotate
  @rotate
end

#textObject

(text) html tags may be used (supports , <i>, <u>, <font>, <a href=“”>, <br/>. Enter text between []: <![CDATA[your <b>bold and italic text]]>



1409
1410
1411
# File 'lib/ambling/xy.rb', line 1409

def text
  @text
end

#text_colorObject

text_color

(hex color code) button text color



1399
1400
1401
# File 'lib/ambling/xy.rb', line 1399

def text_color
  @text_color
end

#text_sizeObject

[text_size](Number) button text size



1404
1405
1406
# File 'lib/ambling/xy.rb', line 1404

def text_size
  @text_size
end

#widthObject

(Number / Number%) if empty, will stretch from left to right untill label fits



1389
1390
1391
# File 'lib/ambling/xy.rb', line 1389

def width
  @width
end

#xObject

0

(Number / Number% / !Number)



1374
1375
1376
# File 'lib/ambling/xy.rb', line 1374

def x
  @x
end

#yObject

0

(Number / Number% / !Number)



1379
1380
1381
# File 'lib/ambling/xy.rb', line 1379

def y
  @y
end