Class: OoxmlParser::PlotArea
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::PlotArea
- 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
-
#area_chart ⇒ CommonChartData
readonly
Area chart.
-
#bar_3d_chart ⇒ CommonChartData
readonly
Bar 3D chart.
-
#bar_chart ⇒ CommonChartData
readonly
Bar chart.
-
#bubble_chart ⇒ CommonChartData
readonly
Bubble chart.
-
#line_3d_chart ⇒ CommonChartData
readonly
Line 3D chart.
-
#line_chart ⇒ CommonChartData
readonly
Line chart.
-
#pie_3d_chart ⇒ CommonChartData
readonly
Pie 3D chart.
-
#pie_chart ⇒ CommonChartData
readonly
Pie chart.
-
#radar_chart ⇒ CommonChartData
readonly
Radar chart.
-
#stock_chart ⇒ CommonChartData
readonly
Stock chart.
-
#surface_3d_chart ⇒ CommonChartData
readonly
Surface 3D chart.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ PlotArea
Parse PlotArea object.
Methods inherited from OOXMLDocumentObject
#==, #boolean_attribute_value, #initialize, #parse_xml, #with_data?
Methods included from OoxmlObjectAttributeHelper
#attribute_enabled?, #option_enabled?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
This class inherits a constructor from OoxmlParser::OOXMLDocumentObject
Instance Attribute Details
#area_chart ⇒ CommonChartData (readonly)
Returns area chart.
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_chart ⇒ CommonChartData (readonly)
Returns bar 3D chart.
26 27 28 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 26 def @bar_3d_chart end |
#bar_chart ⇒ CommonChartData (readonly)
Returns bar chart.
8 9 10 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/plot_area.rb', line 8 def @bar_chart end |
#bubble_chart ⇒ CommonChartData (readonly)
Returns bubble chart.
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_chart ⇒ CommonChartData (readonly)
Returns line 3D chart.
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_chart ⇒ CommonChartData (readonly)
Returns line chart.
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_chart ⇒ CommonChartData (readonly)
Returns pie 3D chart.
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_chart ⇒ CommonChartData (readonly)
Returns pie chart.
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_chart ⇒ CommonChartData (readonly)
Returns radar chart.
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_chart ⇒ CommonChartData (readonly)
Returns stock chart.
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_chart ⇒ CommonChartData (readonly)
Returns surface 3D chart.
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
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 |