Class: Ambling::Line::Settings::Labels::Label

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/line.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)



1544
1545
1546
# File 'lib/ambling/line.rb', line 1544

def align
  @align
end

#lidObject

xml attribute



1564
1565
1566
# File 'lib/ambling/line.rb', line 1564

def lid
  @lid
end

#rotateObject

false

(true / false)



1534
1535
1536
# File 'lib/ambling/line.rb', line 1534

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]]>



1559
1560
1561
# File 'lib/ambling/line.rb', line 1559

def text
  @text
end

#text_colorObject

text_color

(hex color code) button text color



1549
1550
1551
# File 'lib/ambling/line.rb', line 1549

def text_color
  @text_color
end

#text_sizeObject

[text_size](Number) button text size



1554
1555
1556
# File 'lib/ambling/line.rb', line 1554

def text_size
  @text_size
end

#widthObject

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



1539
1540
1541
# File 'lib/ambling/line.rb', line 1539

def width
  @width
end

#xObject

0

(Number / Number% / !Number)



1524
1525
1526
# File 'lib/ambling/line.rb', line 1524

def x
  @x
end

#yObject

0

(Number / Number% / !Number)



1529
1530
1531
# File 'lib/ambling/line.rb', line 1529

def y
  @y
end