Class: Ambling::Line::Settings::Help::Button

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

Overview

help button is only visible if balloon text is defined

Constant Summary collapse

VALUES =
[:x,:y,:color,:alpha,:text_color,:text_color_hover,:text_size,:text]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

100

(0 - 100) background alpha



1268
1269
1270
# File 'lib/ambling/line.rb', line 1268

def alpha
  @alpha
end

#colorObject

#000000

(hex color code) background color



1263
1264
1265
# File 'lib/ambling/line.rb', line 1263

def color
  @color
end

#textObject

?

(text)



1288
1289
1290
# File 'lib/ambling/line.rb', line 1288

def text
  @text
end

#text_colorObject

#FFFFFF

(hex color code) button text color



1273
1274
1275
# File 'lib/ambling/line.rb', line 1273

def text_color
  @text_color
end

#text_color_hoverObject

[#BBBB00](hex color code) button text roll over color



1278
1279
1280
# File 'lib/ambling/line.rb', line 1278

def text_color_hover
  @text_color_hover
end

#text_sizeObject

(Number) button text size



1283
1284
1285
# File 'lib/ambling/line.rb', line 1283

def text_size
  @text_size
end

#xObject

(Number / Number% / !Number) x position of help button, if not defined, will be aligned to right of chart area



1253
1254
1255
# File 'lib/ambling/line.rb', line 1253

def x
  @x
end

#yObject

(Number / Number% / !Number) y position of help button, if not defined, will be aligned to top of chart area



1258
1259
1260
# File 'lib/ambling/line.rb', line 1258

def y
  @y
end