class Axlsx::Scaling
The Scaling class defines axis scaling
def initialize(options = {})
(**options)-
min(Float) -- -
max(Float) -- -
orientation(Symbol) -- -
logBase(Integer) --
def initialize(options = {}) @orientation = :minMax @logBase, @min, @max = nil, nil, nil parse_options options end
def logBase=(v) DataTypeValidator.validate "Scaling.logBase", [Integer], v, lambda { |arg| arg >= 2 && arg <= 1000 }; @logBase = v; end
- See: logBase -
def logBase=(v) DataTypeValidator.validate "Scaling.logBase", [Integer], v, lambda { |arg| arg >= 2 && arg <= 1000 }; @logBase = v; end
def max=(v) DataTypeValidator.validate "Scaling.max", Float, v; @max = v; end
- See: max -
def max=(v) DataTypeValidator.validate "Scaling.max", Float, v; @max = v; end
def min=(v) DataTypeValidator.validate "Scaling.min", Float, v; @min = v; end
- See: min -
def min=(v) DataTypeValidator.validate "Scaling.min", Float, v; @min = v; end
def orientation=(v) RestrictionValidator.validate "Scaling.orientation", [:minMax, :maxMin], v; @orientation = v; end
- See: orientation -
def orientation=(v) RestrictionValidator.validate "Scaling.orientation", [:minMax, :maxMin], v; @orientation = v; end
def to_xml_string(str = '')
-
(String)-
Parameters:
-
str(String) --
def to_xml_string(str = '') str << '<c:scaling>' str << ('<c:logBase val="' << @logBase.to_s << '"/>') unless @logBase.nil? str << ('<c:orientation val="' << @orientation.to_s << '"/>') unless @orientation.nil? str << ('<c:min val="' << @min.to_s << '"/>') unless @min.nil? str << ('<c:max val="' << @max.to_s << '"/>') unless @max.nil? str << '</c:scaling>' end