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

#align ⇒ Object

[left] (left / center / right)



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

def align
  @align
end

#lid ⇒ Object

xml attribute



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

def lid
  @lid
end

#rotate ⇒ Object

[false] (true / false)



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

def rotate
  @rotate
end

#text ⇒ Object

[] (text) html tags may be used (supports , , , , ,
. Enter text between []: bold
and italic text]]>



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

def text
  @text
end

#text_color ⇒ Object

[text_color] (hex color code) button text color



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

def text_color
  @text_color
end

#width ⇒ Object

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

#x ⇒ Object

[0] (Number / Number% / !Number)



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

def x
  @x
end

#y ⇒ Object

[0] (Number / Number% / !Number)



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

def y
  @y
end