Class: Ambling::Column::Settings::ExportAsImage

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/column.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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

0

(0 - 100) background alpha



943
944
945
# File 'lib/ambling/column.rb', line 943

def alpha
  @alpha
end

#colorObject

#BBBB00

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



938
939
940
# File 'lib/ambling/column.rb', line 938

def color
  @color
end

#fileObject

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



918
919
920
# File 'lib/ambling/column.rb', line 918

def file
  @file
end

#targetObject

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



923
924
925
# File 'lib/ambling/column.rb', line 923

def target
  @target
end

#text_colorObject

text_color

(hex color code)



948
949
950
# File 'lib/ambling/column.rb', line 948

def text_color
  @text_color
end

#text_sizeObject

text_size

(Number)



953
954
955
# File 'lib/ambling/column.rb', line 953

def text_size
  @text_size
end

#xObject

0

(Number / Number% / !Number) x position of “Collecting data” text



928
929
930
# File 'lib/ambling/column.rb', line 928

def x
  @x
end

#yObject

(Number / Number% / !Number) y position of “Collecting data” text. If not set, will be aligned to the bottom of flash movie



933
934
935
# File 'lib/ambling/column.rb', line 933

def y
  @y
end