Class: OpenFlashChart::DotBase

Inherits:
Base
  • Object
show all
Defined in:
lib/plugins/open_flash_chart/lib/open_flash_chart/dot_base.rb

Direct Known Subclasses

Anchor, Bow, Dot, HollowDot, SolidDot, Star

Instance Method Summary (collapse)

Methods inherited from Base

#<<, #add_element, #append_value, #attach_to_right_y_axis, #method_missing, #render, #set_colours, #set_key, #set_offset, #set_range, #set_tooltip, #to_json2

Constructor Details

- (DotBase) initialize(type, value = nil, args = {})

Returns a new instance of DotBase



4
5
6
7
8
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/dot_base.rb', line 4

def initialize type, value=nil, args={}
  super args
  @type  = type
  @value = value if value
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OpenFlashChart::Base

Instance Method Details

- (Object) position=(x, y)



10
11
12
13
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/dot_base.rb', line 10

def position=(x, y)
  @x = x
  @y = y
end

- (Object) size=(size)



15
16
17
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/dot_base.rb', line 15

def size=(size)
  @dot_size = size        
end