Class: Ambling::Xy::Settings::ExportAsImage
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::ExportAsImage
- Includes:
- Base
- Defined in:
- lib/ambling/xy.rb
Overview
export_as_image feature works only on a web server
Constant Summary collapse
- VALUES =
[:file,:target,:x,:y,:color,:alpha,:text_color,:text_size]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 0
-
(0 - 100) background alpha.
-
#color ⇒ Object
- #BBBB00
-
(hex color code) background color of “Collecting data” text.
-
#file ⇒ Object
-
(filename) if you set filename here, context menu (then user right clicks on flash movie) “Export as image” will appear.
-
#target ⇒ Object
-
(_blank, _top …) target of a window in which export file must be called.
-
#text_color ⇒ Object
- text_color
-
(hex color code).
-
#text_size ⇒ Object
- text_size
-
(Number).
-
#x ⇒ Object
- 0
-
(Number / Number% / !Number) x position of “Collecting data” text.
-
#y ⇒ Object
-
(Number / Number% / !Number) y position of “Collecting data” text.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 0
-
(0 - 100) background alpha
1149 1150 1151 |
# File 'lib/ambling/xy.rb', line 1149 def alpha @alpha end |
#color ⇒ Object
- #BBBB00
-
(hex color code) background color of “Collecting data” text
1144 1145 1146 |
# File 'lib/ambling/xy.rb', line 1144 def color @color end |
#file ⇒ Object
-
(filename) if you set filename here, context menu (then user right clicks on flash movie) “Export as image” will appear. This will allow user to export chart as an image. Collected image data will be posted to this file name (use amxy/export.php or amxy/export.aspx)
1124 1125 1126 |
# File 'lib/ambling/xy.rb', line 1124 def file @file end |
#target ⇒ Object
-
(_blank, _top …) target of a window in which export file must be called
1129 1130 1131 |
# File 'lib/ambling/xy.rb', line 1129 def target @target end |
#text_color ⇒ Object
- text_color
-
(hex color code)
1154 1155 1156 |
# File 'lib/ambling/xy.rb', line 1154 def text_color @text_color end |
#text_size ⇒ Object
- text_size
-
(Number)
1159 1160 1161 |
# File 'lib/ambling/xy.rb', line 1159 def text_size @text_size end |
#x ⇒ Object
- 0
-
(Number / Number% / !Number) x position of “Collecting data” text
1134 1135 1136 |
# File 'lib/ambling/xy.rb', line 1134 def x @x end |
#y ⇒ Object
-
(Number / Number% / !Number) y position of “Collecting data” text. If not set, will be aligned to the bottom of flash movie
1139 1140 1141 |
# File 'lib/ambling/xy.rb', line 1139 def y @y end |