Class: Ambling::Line::Settings::ZoomOutButton
- Inherits:
-
Object
- Object
- Ambling::Line::Settings::ZoomOutButton
- Includes:
- Base
- Defined in:
- lib/ambling/line.rb
Constant Summary collapse
- VALUES =
[:x,:y,:color,:alpha,:text_color,:text_color_hover,:text_size,:text]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 0
-
(0 - 100) background alpha.
-
#color ⇒ Object
- #BBBB00
-
(hex color code) background color.
-
#text ⇒ Object
- Show all
-
(text).
-
#text_color ⇒ Object
- text_color
-
(hex color code) button text and magnifying glass icon color.
-
#text_color_hover ⇒ Object
- #BBBB00
-
(hex color code) button text and magnifying glass icon roll over color.
-
#text_size ⇒ Object
- text_size
-
(Number) button text size.
-
#x ⇒ Object
-
(Number / Number% / !Number) x position of zoom out button, if not defined, will be aligned to right of plot area.
-
#y ⇒ Object
-
(Number / Number% / !Number) y position of zoom out button, if not defined, will be aligned to top of plot area.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 0
-
(0 - 100) background alpha
1203 1204 1205 |
# File 'lib/ambling/line.rb', line 1203 def alpha @alpha end |
#color ⇒ Object
- #BBBB00
-
(hex color code) background color
1198 1199 1200 |
# File 'lib/ambling/line.rb', line 1198 def color @color end |
#text ⇒ Object
- Show all
-
(text)
1223 1224 1225 |
# File 'lib/ambling/line.rb', line 1223 def text @text end |
#text_color ⇒ Object
- text_color
-
(hex color code) button text and magnifying glass icon color
1208 1209 1210 |
# File 'lib/ambling/line.rb', line 1208 def text_color @text_color end |
#text_color_hover ⇒ Object
- #BBBB00
-
(hex color code) button text and magnifying glass icon roll over color
1213 1214 1215 |
# File 'lib/ambling/line.rb', line 1213 def text_color_hover @text_color_hover end |
#text_size ⇒ Object
- text_size
-
(Number) button text size
1218 1219 1220 |
# File 'lib/ambling/line.rb', line 1218 def text_size @text_size end |
#x ⇒ Object
-
(Number / Number% / !Number) x position of zoom out button, if not defined, will be aligned to right of plot area
1188 1189 1190 |
# File 'lib/ambling/line.rb', line 1188 def x @x end |
#y ⇒ Object
-
(Number / Number% / !Number) y position of zoom out button, if not defined, will be aligned to top of plot area
1193 1194 1195 |
# File 'lib/ambling/line.rb', line 1193 def y @y end |