blob: fdc0d43d256854783bb8632bb59e6d306ce4a53f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# encoding: UTF-8
module Axlsx
#A SerAxis object defines a series axis
class SerAxis < Axis
# The number of tick lables to skip between labels
# @return [Integer]
attr_reader :tickLblSkip
# The number of tickmarks to be skipped before the next one is rendered.
# @return [Boolean]
attr_reader :tickMarkSkip
# Creates a new SerAxis object
# @param [Integer] axId the id of this axis. Inherited
# @param [Integer] crossAx the id of the perpendicular axis. Inherited
# @option options [Symbol] axPos. Inherited
# @option options [Symbol] tickLblPos. Inherited
# @option options [Symbol] crosses. Inherited
# @option options [Integer] tickLblSkip
# @option options [Integer] tickMarkSkip
def initialize(axId, crossAx, options={})
@tickLblSkip, @tickMarkSkip = nil, nil
super(axId, crossAx, options)
end
# @see tickLblSkip
def tickLblSkip=(v) Axlsx::validate_unsigned_int(v); @tickLblSkip = v; end
# @see tickMarkSkip
def tickMarkSkip=(v) Axlsx::validate_unsigned_int(v); @tickMarkSkip = v; end
def to_xml_string(str = '')
str << '<c:serAx>'
super(str)
str << '<c:tickLblSkip val="' << @tickLblSkip.to_s << '"/>' unless @tickLblSkip.nil?
str << '<c:tickMarkSkip val="' << @tickMarkSkip.to_s << '"/>' unless @tickMarkSkip.nil?
str << '</c:serAx>'
end
end
end
|