Sha256: 18eb043dc57cf8db56365f583e010294fbf26d28227e1d7987e9d9b0b8799574

Contents?: true

Size: 1.44 KB

Versions: 14

Compression:

Stored size: 1.44 KB

Contents

# 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 = 1, 1
      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

    # Serializes the object
    # @param [String] str
    # @return [String]
    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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
axlsx-1.3.5 lib/axlsx/drawing/ser_axis.rb
axlsx-1.3.4 lib/axlsx/drawing/ser_axis.rb
axlsx-1.3.3 lib/axlsx/drawing/ser_axis.rb
axlsx-1.3.2 lib/axlsx/drawing/ser_axis.rb
axlsx-1.3.1 lib/axlsx/drawing/ser_axis.rb
axlsx-1.2.3 lib/axlsx/drawing/ser_axis.rb
axlsx-1.2.2 lib/axlsx/drawing/ser_axis.rb
axlsx-1.2.1 lib/axlsx/drawing/ser_axis.rb
axlsx-1.2.0 lib/axlsx/drawing/ser_axis.rb
axlsx-1.1.8 lib/axlsx/drawing/ser_axis.rb
axlsx-1.1.7 lib/axlsx/drawing/ser_axis.rb
axlsx-1.1.6 lib/axlsx/drawing/ser_axis.rb
axlsx-1.1.5 lib/axlsx/drawing/ser_axis.rb
axlsx-1.1.4 lib/axlsx/drawing/ser_axis.rb