Class: Ambling::Stock::Settings::ExportAsImage

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

Overview

(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 amstock/export.php or amstock/export.aspx) #

Constant Summary collapse

VALUES =
[:file,:target,:color,:alpha,:text_color,:text_size]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

text_color

(hex color code) #



1866
1867
1868
# File 'lib/ambling/stock.rb', line 1866

def alpha
  @alpha
end

#colorObject

0

(0 - 100) background alpha #



1862
1863
1864
# File 'lib/ambling/stock.rb', line 1862

def color
  @color
end

#fileObject

(_blank, _top …) target of a window in which export file must be called #



1854
1855
1856
# File 'lib/ambling/stock.rb', line 1854

def file
  @file
end

#targetObject

#54b40a

(hex code) background color of “Collecting data” text #



1858
1859
1860
# File 'lib/ambling/stock.rb', line 1858

def target
  @target
end

#text_colorObject

text_size

(Number) #



1870
1871
1872
# File 'lib/ambling/stock.rb', line 1870

def text_color
  @text_color
end

#text_sizeObject

Returns the value of attribute text_size.



1874
1875
1876
# File 'lib/ambling/stock.rb', line 1874

def text_size
  @text_size
end