Class: Ambling::Pie::Settings::Labels::Label

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



805
806
807
# File 'lib/ambling/pie.rb', line 805

def align
  @align
end

#lidObject

xml attribute



825
826
827
# File 'lib/ambling/pie.rb', line 825

def lid
  @lid
end

#rotateObject

false

(true / false)



795
796
797
# File 'lib/ambling/pie.rb', line 795

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



820
821
822
# File 'lib/ambling/pie.rb', line 820

def text
  @text
end

#text_colorObject

text_color

(hex color code) button text color



810
811
812
# File 'lib/ambling/pie.rb', line 810

def text_color
  @text_color
end

#text_sizeObject

[text_size](Number) button text size



815
816
817
# File 'lib/ambling/pie.rb', line 815

def text_size
  @text_size
end

#widthObject

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



800
801
802
# File 'lib/ambling/pie.rb', line 800

def width
  @width
end

#xObject

0

(Number / Number% / !Number)



785
786
787
# File 'lib/ambling/pie.rb', line 785

def x
  @x
end

#yObject

0

(Number / Number% / !Number)



790
791
792
# File 'lib/ambling/pie.rb', line 790

def y
  @y
end