Class: Ambling::Stock::Settings::Scroller

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

Overview

true

(true / false) #

Defined Under Namespace

Classes: Grid, Playback, Values

Constant Summary collapse

VALUES =
[:enabled,:connect,:height,:graph_data_source,:bg_color,:bg_alpha,:selected_color,:graph_color,:graph_alpha,:graph_width,:graph_fill_alpha,:graph_selected_color,:graph_selected_alpha,:graph_selected_fill_alpha,:graph_selected_fill_color,:resize_button_style,:resize_button_color,:resize_pointer_color,:grid,:values,:playback]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#bg_alphaObject

#FFFFFF

(hex code) #



1642
1643
1644
# File 'lib/ambling/stock.rb', line 1642

def bg_alpha
  @bg_alpha
end

#bg_colorObject

100

(0 - 100) #



1638
1639
1640
# File 'lib/ambling/stock.rb', line 1638

def bg_color
  @bg_color
end

#connectObject

45

(Number) #



1626
1627
1628
# File 'lib/ambling/stock.rb', line 1626

def connect
  @connect
end

#enabledObject

true

(true / false) whether to connect the data points with a line when some data is missing

between them #


1622
1623
1624
# File 'lib/ambling/stock.rb', line 1622

def enabled
  @enabled
end

#graph_alphaObject

0

(Number) #



1654
1655
1656
# File 'lib/ambling/stock.rb', line 1654

def graph_alpha
  @graph_alpha
end

#graph_colorObject

50

(Number) #



1650
1651
1652
# File 'lib/ambling/stock.rb', line 1650

def graph_color
  @graph_color
end

#graph_data_sourceObject

#EEEEEE

(hec code) #



1634
1635
1636
# File 'lib/ambling/stock.rb', line 1634

def graph_data_source
  @graph_data_source
end

#graph_fill_alphaObject

data_set.color

(hec code) #



1662
1663
1664
# File 'lib/ambling/stock.rb', line 1662

def graph_fill_alpha
  @graph_fill_alpha
end

#graph_selected_alphaObject

20

(Number) #



1670
1671
1672
# File 'lib/ambling/stock.rb', line 1670

def graph_selected_alpha
  @graph_selected_alpha
end

#graph_selected_colorObject

50

(Number) #



1666
1667
1668
# File 'lib/ambling/stock.rb', line 1666

def graph_selected_color
  @graph_selected_color
end

#graph_selected_fill_alphaObject

graph_selected_color

(hex code) The selected part of a graph can be filled with some color.

If you separate two color codes with a comma here, the first one will be used to fill the part above 
the 0 and the second one - below the 0 #


1676
1677
1678
# File 'lib/ambling/stock.rb', line 1676

def graph_selected_fill_alpha
  @graph_selected_fill_alpha
end

#graph_selected_fill_colorObject

arrow

(arrow / dragger) #



1680
1681
1682
# File 'lib/ambling/stock.rb', line 1680

def graph_selected_fill_color
  @graph_selected_fill_color
end

#graph_widthObject

20

(Number) #



1658
1659
1660
# File 'lib/ambling/stock.rb', line 1658

def graph_width
  @graph_width
end

#gridObject

true

(true / false) #



1696
1697
1698
# File 'lib/ambling/stock.rb', line 1696

def grid
  @grid
end

#heightObject

(column name) scrollers graph’s data source #



1630
1631
1632
# File 'lib/ambling/stock.rb', line 1630

def height
  @height
end

#playbackObject

false

(true / false) #



1704
1705
1706
# File 'lib/ambling/stock.rb', line 1704

def playback
  @playback
end

#resize_button_colorObject

#000000

(hex code) #



1688
1689
1690
# File 'lib/ambling/stock.rb', line 1688

def resize_button_color
  @resize_button_color
end

#resize_button_styleObject

#000000

(hex code) this setting is effective only if resize_button_style is set to “arrow” #



1684
1685
1686
# File 'lib/ambling/stock.rb', line 1684

def resize_button_style
  @resize_button_style
end

#resize_pointer_colorObject

Returns the value of attribute resize_pointer_color.



1692
1693
1694
# File 'lib/ambling/stock.rb', line 1692

def resize_pointer_color
  @resize_pointer_color
end

#selected_colorObject

#ABABAB

(hex code) color of not selected graph #



1646
1647
1648
# File 'lib/ambling/stock.rb', line 1646

def selected_color
  @selected_color
end

#valuesObject

true

(true / false) #



1700
1701
1702
# File 'lib/ambling/stock.rb', line 1700

def values
  @values
end