Class: Ambling::Xy::Settings::Help::Button

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/xy.rb

Overview

help button is only visible if balloon text is defined

Constant Summary collapse

VALUES =
[:x,:y,:color,:alpha,:text_color,:text_color_hover,:text_size,:text]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

100

(0 - 100) background alpha



948
949
950
# File 'lib/ambling/xy.rb', line 948

def alpha
  @alpha
end

#colorObject

#000000

(hex color code) background color



943
944
945
# File 'lib/ambling/xy.rb', line 943

def color
  @color
end

#textObject

?

(text)



968
969
970
# File 'lib/ambling/xy.rb', line 968

def text
  @text
end

#text_colorObject

#FFFFFF

(hex color code) button text color



953
954
955
# File 'lib/ambling/xy.rb', line 953

def text_color
  @text_color
end

#text_color_hoverObject

[#BBBB00](hex color code) button text roll over color



958
959
960
# File 'lib/ambling/xy.rb', line 958

def text_color_hover
  @text_color_hover
end

#text_sizeObject

(Number) button text size



963
964
965
# File 'lib/ambling/xy.rb', line 963

def text_size
  @text_size
end

#xObject

(Number / Number% / !Number) x position of help button, if not defined, will be aligned to right of chart area



933
934
935
# File 'lib/ambling/xy.rb', line 933

def x
  @x
end

#yObject

(Number / Number% / !Number) y position of help button, if not defined, will be aligned to top of chart area



938
939
940
# File 'lib/ambling/xy.rb', line 938

def y
  @y
end