Class: Ambling::Line::Settings::ExportAsImage

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



1363
1364
1365
# File 'lib/ambling/line.rb', line 1363

def alpha
  @alpha
end

#colorObject

#BBBB00

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



1358
1359
1360
# File 'lib/ambling/line.rb', line 1358

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



1338
1339
1340
# File 'lib/ambling/line.rb', line 1338

def file
  @file
end

#targetObject

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



1343
1344
1345
# File 'lib/ambling/line.rb', line 1343

def target
  @target
end

#text_colorObject

text_color

(hex color code)



1368
1369
1370
# File 'lib/ambling/line.rb', line 1368

def text_color
  @text_color
end

#text_sizeObject

text_size

(Number)



1373
1374
1375
# File 'lib/ambling/line.rb', line 1373

def text_size
  @text_size
end

#xObject

0

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



1348
1349
1350
# File 'lib/ambling/line.rb', line 1348

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



1353
1354
1355
# File 'lib/ambling/line.rb', line 1353

def y
  @y
end