Class: Ambling::Xy::Settings::Balloon

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

100

(0 - 100)



762
763
764
# File 'lib/ambling/xy.rb', line 762

def alpha
  @alpha
end

#border_alphaObject

balloon.alpha

(Number)



792
793
794
# File 'lib/ambling/xy.rb', line 792

def border_alpha
  @border_alpha
end

#border_colorObject

balloon.color

(hex color code)



797
798
799
# File 'lib/ambling/xy.rb', line 797

def border_color
  @border_color
end

#border_widthObject

0

(Number)



787
788
789
# File 'lib/ambling/xy.rb', line 787

def border_width
  @border_width
end

#colorObject

(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_radiusObject

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

#enabledObject

true

(true / false)



752
753
754
# File 'lib/ambling/xy.rb', line 752

def enabled
  @enabled
end

#max_widthObject

220

(Number)



777
778
779
# File 'lib/ambling/xy.rb', line 777

def max_width
  @max_width
end

#text_colorObject

#FFFFFF

(hex color code)



767
768
769
# File 'lib/ambling/xy.rb', line 767

def text_color
  @text_color
end

#text_sizeObject

text_size

(Number)



772
773
774
# File 'lib/ambling/xy.rb', line 772

def text_size
  @text_size
end