Class: Ambling::Xy::Settings::Help::Button
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::Help::Button
- 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
-
#alpha ⇒ Object
- 100
-
(0 - 100) background alpha.
-
#color ⇒ Object
- #000000
-
(hex color code) background color.
-
#text ⇒ Object
- ?
-
(text).
-
#text_color ⇒ Object
- #FFFFFF
-
(hex color code) button text color.
-
#text_color_hover ⇒ Object
[#BBBB00](hex color code) button text roll over color.
-
#text_size ⇒ Object
-
(Number) button text size.
-
#x ⇒ Object
-
(Number / Number% / !Number) x position of help button, if not defined, will be aligned to right of chart area.
-
#y ⇒ Object
-
(Number / Number% / !Number) y position of help button, if not defined, will be aligned to top of chart area.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 100
-
(0 - 100) background alpha
948 949 950 |
# File 'lib/ambling/xy.rb', line 948 def alpha @alpha end |
#color ⇒ Object
- #000000
-
(hex color code) background color
943 944 945 |
# File 'lib/ambling/xy.rb', line 943 def color @color end |
#text ⇒ Object
- ?
-
(text)
968 969 970 |
# File 'lib/ambling/xy.rb', line 968 def text @text end |
#text_color ⇒ Object
- #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_hover ⇒ Object
[#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_size ⇒ Object
-
(Number) button text size
963 964 965 |
# File 'lib/ambling/xy.rb', line 963 def text_size @text_size end |
#x ⇒ Object
-
(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 |
#y ⇒ Object
-
(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 |