Class: Ambling::Line::Settings::Help::Button
- Inherits:
-
Object
- Object
- Ambling::Line::Settings::Help::Button
- Includes:
- Base
- Defined in:
- lib/ambling/line.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
1268 1269 1270 |
# File 'lib/ambling/line.rb', line 1268 def alpha @alpha end |
#color ⇒ Object
- #000000
-
(hex color code) background color
1263 1264 1265 |
# File 'lib/ambling/line.rb', line 1263 def color @color end |
#text ⇒ Object
- ?
-
(text)
1288 1289 1290 |
# File 'lib/ambling/line.rb', line 1288 def text @text end |
#text_color ⇒ Object
- #FFFFFF
-
(hex color code) button text color
1273 1274 1275 |
# File 'lib/ambling/line.rb', line 1273 def text_color @text_color end |
#text_color_hover ⇒ Object
[#BBBB00](hex color code) button text roll over color
1278 1279 1280 |
# File 'lib/ambling/line.rb', line 1278 def text_color_hover @text_color_hover end |
#text_size ⇒ Object
-
(Number) button text size
1283 1284 1285 |
# File 'lib/ambling/line.rb', line 1283 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
1253 1254 1255 |
# File 'lib/ambling/line.rb', line 1253 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
1258 1259 1260 |
# File 'lib/ambling/line.rb', line 1258 def y @y end |