Class: OoxmlParser::PlotArea

Inherits:
OOXMLDocumentObject show all
Defined in:
lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb

Overview

Parsing Plot Area tag ‘plotArea’

Instance Attribute Summary collapse

Attributes inherited from OOXMLDocumentObject

#parent

Instance Method Summary collapse

Methods inherited from OOXMLDocumentObject

#==, #boolean_attribute_value, #initialize, #parse_xml, #with_data?

Methods included from OoxmlObjectAttributeHelper

#attribute_enabled?, #option_enabled?

Methods included from OoxmlDocumentObjectHelper

#to_hash

Constructor Details

This class inherits a constructor from OoxmlParser::OOXMLDocumentObject

Instance Attribute Details

#area_chartCommonChartData (readonly)

Returns area chart.

Returns:



12
13
14
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 12

def area_chart
  @area_chart
end

#bar_3d_chartCommonChartData (readonly)

Returns bar 3D chart.

Returns:



26
27
28
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 26

def bar_3d_chart
  @bar_3d_chart
end

#bar_chartCommonChartData (readonly)

Returns bar chart.

Returns:



8
9
10
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 8

def bar_chart
  @bar_chart
end

#bubble_chartCommonChartData (readonly)

Returns bubble chart.

Returns:



14
15
16
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 14

def bubble_chart
  @bubble_chart
end

#line_3d_chartCommonChartData (readonly)

Returns line 3D chart.

Returns:



24
25
26
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 24

def line_3d_chart
  @line_3d_chart
end

#line_chartCommonChartData (readonly)

Returns line chart.

Returns:



10
11
12
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 10

def line_chart
  @line_chart
end

#pie_3d_chartCommonChartData (readonly)

Returns pie 3D chart.

Returns:



28
29
30
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 28

def pie_3d_chart
  @pie_3d_chart
end

#pie_chartCommonChartData (readonly)

Returns pie chart.

Returns:



16
17
18
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 16

def pie_chart
  @pie_chart
end

#radar_chartCommonChartData (readonly)

Returns radar chart.

Returns:



18
19
20
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 18

def radar_chart
  @radar_chart
end

#stock_chartCommonChartData (readonly)

Returns stock chart.

Returns:



20
21
22
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 20

def stock_chart
  @stock_chart
end

#surface_3d_chartCommonChartData (readonly)

Returns surface 3D chart.

Returns:



22
23
24
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 22

def surface_3d_chart
  @surface_3d_chart
end

Instance Method Details

#parse(node) ⇒ PlotArea

Parse PlotArea object

Parameters:

  • node (Nokogiri::XML:Element)

    node to parse

Returns:



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 33

def parse(node)
  node.xpath('*').each do |node_child|
    case node_child.name
    when 'barChart'
      @bar_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'lineChart'
      @line_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'areaChart'
      @area_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'bubbleChart'
      @bubble_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'doughnutChart'
      @doughnut_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'pieChart'
      @pie_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'scatterChart'
      @scatter_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'radarChart'
      @radar_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'stockChart'
      @stock_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'surface3DChart'
      @surface_3d_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'line3DChart'
      @line_3d_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'bar3DChart'
      @bar_3d_chart = CommonChartData.new(parent: self).parse(node_child)
    when 'pie3DChart'
      @pie_3d_chart = CommonChartData.new(parent: self).parse(node_child)
    end
  end
  self
end