Class: Ambling::Xy::Settings::Zoom

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

Constant Summary collapse

VALUES =
[:enabled,:max_factor,:border_color,:border_alpha,:bg_color,:bg_alpha,:target]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#bg_alphaObject

25

zoom box background opacity



898
899
900
# File 'lib/ambling/xy.rb', line 898

def bg_alpha
  @bg_alpha
end

#bg_colorObject

#BBBB00

zoom box background color



893
894
895
# File 'lib/ambling/xy.rb', line 893

def bg_color
  @bg_color
end

#border_alphaObject

100

(Number) zoom box border opacity



888
889
890
# File 'lib/ambling/xy.rb', line 888

def border_alpha
  @border_alpha
end

#border_colorObject

#BBBB00

color of a zoom box border



883
884
885
# File 'lib/ambling/xy.rb', line 883

def border_color
  @border_color
end

#enabledObject

true

(true / false) whether the user can select the area to zoom-in



873
874
875
# File 'lib/ambling/xy.rb', line 873

def enabled
  @enabled
end

#max_factorObject

20

(Number) The maximum zoom level



878
879
880
# File 'lib/ambling/xy.rb', line 878

def max_factor
  @max_factor
end

#targetObject

true

whether to show target when the mouse is over plot area or not



903
904
905
# File 'lib/ambling/xy.rb', line 903

def target
  @target
end