Class: Ambling::Xy::Settings::Balloon
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::Balloon
- Includes:
- Base
- Defined in:
- lib/ambling/xy.rb
Overview
BALLOON
Constant Summary collapse
- VALUES =
[:enabled,:color,:alpha,:text_color,:text_size,:max_width,:corner_radius,:border_width,:border_alpha,:border_color]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 100
-
(0 - 100).
-
#border_alpha ⇒ Object
- balloon.alpha
-
(Number).
-
#border_color ⇒ Object
- balloon.color
-
(hex color code).
-
#border_width ⇒ Object
- 0
-
(Number).
-
#color ⇒ Object
-
(hex color code) balloon background color.
-
#corner_radius ⇒ Object
- 0
-
(Number) Corner radius of a balloon.
-
#enabled ⇒ Object
- true
-
(true / false).
-
#max_width ⇒ Object
- 220
-
(Number).
-
#text_color ⇒ Object
- #FFFFFF
-
(hex color code).
-
#text_size ⇒ Object
- text_size
-
(Number).
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 100
-
(0 - 100)
762 763 764 |
# File 'lib/ambling/xy.rb', line 762 def alpha @alpha end |
#border_alpha ⇒ Object
- balloon.alpha
-
(Number)
792 793 794 |
# File 'lib/ambling/xy.rb', line 792 def border_alpha @border_alpha end |
#border_color ⇒ Object
- balloon.color
-
(hex color code)
797 798 799 |
# File 'lib/ambling/xy.rb', line 797 def border_color @border_color end |
#border_width ⇒ Object
- 0
-
(Number)
787 788 789 |
# File 'lib/ambling/xy.rb', line 787 def border_width @border_width end |
#color ⇒ Object
-
(hex color code) balloon background color. If empty, slightly darker then current column color will be used
757 758 759 |
# File 'lib/ambling/xy.rb', line 757 def color @color end |
#corner_radius ⇒ Object
- 0
-
(Number) Corner radius of a balloon. If you set it > 0, the balloon will not display arrow
782 783 784 |
# File 'lib/ambling/xy.rb', line 782 def corner_radius @corner_radius end |
#enabled ⇒ Object
- true
-
(true / false)
752 753 754 |
# File 'lib/ambling/xy.rb', line 752 def enabled @enabled end |
#max_width ⇒ Object
- 220
-
(Number)
777 778 779 |
# File 'lib/ambling/xy.rb', line 777 def max_width @max_width end |
#text_color ⇒ Object
- #FFFFFF
-
(hex color code)
767 768 769 |
# File 'lib/ambling/xy.rb', line 767 def text_color @text_color end |
#text_size ⇒ Object
- text_size
-
(Number)
772 773 774 |
# File 'lib/ambling/xy.rb', line 772 def text_size @text_size end |