From 058faf2581970fa18c314ad07f5658adeca32c69 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 22:08:55 +0900 Subject: update to README --- doc/Axlsx/GraphicFrame.html | 138 +++++++++++++++++++------------------------- 1 file changed, 60 insertions(+), 78 deletions(-) (limited to 'doc/Axlsx/GraphicFrame.html') diff --git a/doc/Axlsx/GraphicFrame.html b/doc/Axlsx/GraphicFrame.html index 0ca334a2..be8ce3fa 100644 --- a/doc/Axlsx/GraphicFrame.html +++ b/doc/Axlsx/GraphicFrame.html @@ -97,15 +97,13 @@
Note: -

-The recommended way to manage charts is Worksheet#add_chart -

+
+

The recommended way to manage charts is Worksheet#add_chart

-

-A graphic frame defines a container for a chart object -

+ +

A graphic frame defines a container for a chart object

@@ -144,9 +142,8 @@ A graphic frame defines a container for a chart object -

-A anchor that holds this frame. -

+
+

A anchor that holds this frame.

@@ -171,9 +168,8 @@ A anchor that holds this frame. -

-A reference to the chart object associated with this frame. -

+
+

A reference to the chart object associated with this frame.

@@ -210,9 +206,8 @@ A reference to the chart object associated with this frame. -

-Creates a new GraphicFrame object. -

+
+

Creates a new GraphicFrame object.

@@ -234,9 +229,8 @@ Creates a new GraphicFrame object. -

-The relationship id for this graphic. -

+
+

The relationship id for this graphic.

@@ -258,9 +252,8 @@ The relationship id for this graphic. -

-Serializes the graphic frame. -

+
+

Serializes the graphic frame.

@@ -281,9 +274,8 @@ Serializes the graphic frame.

-

-Creates a new GraphicFrame object -

+ +

Creates a new GraphicFrame object

@@ -332,12 +324,11 @@ Creates a new GraphicFrame object
# File 'lib/axlsx/drawing/graphic_frame.rb', line 18
 
-def initialize(anchor, chart_type, options)
-  DataTypeValidator.validate "Drawing.chart_type", Chart, chart_type 
-  @anchor = anchor
-  @chart = chart_type.new(self, options)
-end
-
+def initialize(anchor, chart_type, options) + DataTypeValidator.validate "Drawing.chart_type", Chart, chart_type + @anchor = anchor + @chart = chart_type.new(self, options) +end @@ -360,9 +351,8 @@ Creates a new GraphicFrame object

-

-A anchor that holds this frame -

+ +

A anchor that holds this frame

@@ -396,10 +386,9 @@ A anchor that holds this frame
# File 'lib/axlsx/drawing/graphic_frame.rb', line 13
 
-def anchor
-  @anchor
-end
-
+def anchor + @anchor +end @@ -417,9 +406,8 @@ A anchor that holds this frame

-

-A reference to the chart object associated with this frame -

+ +

A reference to the chart object associated with this frame

@@ -453,10 +441,9 @@ A reference to the chart object associated with this frame
# File 'lib/axlsx/drawing/graphic_frame.rb', line 9
 
-def chart
-  @chart
-end
-
+def chart + @chart +end @@ -478,9 +465,8 @@ A reference to the chart object associated with this frame

-

-The relationship id for this graphic -

+ +

The relationship id for this graphic

@@ -514,10 +500,9 @@ The relationship id for this graphic
# File 'lib/axlsx/drawing/graphic_frame.rb', line 26
 
-def rId 
-  "rId#{@anchor.index+1}"
-end
-
+def rId + "rId#{@anchor.index+1}" +end @@ -532,9 +517,8 @@ The relationship id for this graphic

-

-Serializes the graphic frame -

+ +

Serializes the graphic frame

@@ -553,9 +537,8 @@ Serializes the graphic frame — -

-The document builder instance this objects xml will be added to. -

+
+

The document builder instance this objects xml will be added to.

@@ -604,25 +587,24 @@ The document builder instance this objects xml will be added to.
# File 'lib/axlsx/drawing/graphic_frame.rb', line 33
 
-def to_xml(xml)
-  xml.send('xdr:graphicFrame') {        
-    xml.send('xdr:nvGraphicFramePr') {
-      xml.send('xdr:cNvPr', :id=>2, :name=>chart.title)
-      xml.send('xdr:cNvGraphicFramePr')                
-    }
-    xml.send('xdr:xfrm') {
-      xml.send('a:off', :x=>0, :y=>0)
-      xml.send('a:ext', :cx=>0, :cy=>0)
-    }
-    xml.send('a:graphic') {
-      xml.send('a:graphicData', :uri=>XML_NS_C) {
-        xml.send('c:chart', :'xmlns:c'=>XML_NS_C, :'xmlns:r'=>XML_NS_R, :'r:id'=>rId)
-      }
-    }
-  }
-  
-end
-
+def to_xml(xml) + xml.send('xdr:graphicFrame') { + xml.send('xdr:nvGraphicFramePr') { + xml.send('xdr:cNvPr', :id=>2, :name=>chart.title) + xml.send('xdr:cNvGraphicFramePr') + } + xml.send('xdr:xfrm') { + xml.send('a:off', :x=>0, :y=>0) + xml.send('a:ext', :cx=>0, :cy=>0) + } + xml.send('a:graphic') { + xml.send('a:graphicData', :uri=>XML_NS_C) { + xml.send('c:chart', :xmlns:c'=>XML_NS_C, :xmlns:r'=>XML_NS_R, :r:id'=>rId) + } + } + } + +end @@ -633,9 +615,9 @@ The document builder instance this objects xml will be added to.
-- cgit v1.2.3