From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 18:11:42 +0900 Subject: adding in row_style and col_style methods to worksheet and active record 'acts_as_axlsx' to provide to_xlsx. --- doc/Axlsx/Axis.html | 229 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 131 insertions(+), 98 deletions(-) (limited to 'doc/Axlsx/Axis.html') diff --git a/doc/Axlsx/Axis.html b/doc/Axlsx/Axis.html index b3e3b295..7e86aa9a 100644 --- a/doc/Axlsx/Axis.html +++ b/doc/Axlsx/Axis.html @@ -94,8 +94,9 @@

Overview

- -

the access class defines common properties and values for a chart axis.

+

+the access class defines common properties and values for a chart axis. +

@@ -131,8 +132,9 @@ -
-

the id of the axis.

+

+the id of the axis. +

@@ -157,8 +159,9 @@ -
-

The position of the axis must be one of [:l, :r, :t, :b].

+

+The position of the axis must be one of [:l, :r, :t, :b]. +

@@ -183,8 +186,9 @@ -
-

The perpendicular axis.

+

+The perpendicular axis. +

@@ -209,9 +213,10 @@ -
-

specifies how the perpendicular axis is crossed must be one of [:autoZero, -:min, :max].

+

+specifies how the perpendicular axis is crossed must be one of [:autoZero, +:min, :max]. +

@@ -236,8 +241,9 @@ -
-

The number format format code for this axis default :General.

+

+The number format format code for this axis default :General. +

@@ -262,8 +268,9 @@ -
-

The scaling of the axis.

+

+The scaling of the axis. +

@@ -288,8 +295,9 @@ -
-

the position of the tick labels must be one of [:nextTo, :high, :low].

+

+the position of the tick labels must be one of [:nextTo, :high, :low]. +

@@ -326,8 +334,9 @@ -
-

Creates an Axis object.

+

+Creates an Axis object. +

@@ -349,8 +358,9 @@ -
-

Serializes the common axis.

+

+Serializes the common axis. +

@@ -371,8 +381,9 @@

- -

Creates an Axis object

+

+Creates an Axis object +

@@ -391,8 +402,9 @@ — -
-

the id of this axis

+

+the id of this axis +

@@ -407,8 +419,9 @@ — -
-

the id of the perpendicular axis

+

+the id of the perpendicular axis +

@@ -425,8 +438,9 @@ — -
-

a customizable set of options

+

+a customizable set of options +

@@ -484,8 +498,9 @@ — -
-

If axId or crossAx are not unsigned integers

+

+If axId or crossAx are not unsigned integers +

@@ -517,21 +532,22 @@
# File 'lib/axlsx/drawing/axis.rb', line 45
 
-def initialize(axId, crossAx, options={})
-  Axlsx::validate_unsigned_int(axId)
-  Axlsx::validate_unsigned_int(crossAx)
-  @axId = axId
-  @crossAx = crossAx
-  @format_code = "General"
-  @scaling = Scaling.new(:orientation=>:minMax)
-  self.axPos = :l
-  self.tickLblPos = :nextTo
-  self.format_code = "General"
-  self.crosses = :autoZero
-  options.each do |o|
-    self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
-  end
-end
+def initialize(axId, crossAx, options={}) + Axlsx::validate_unsigned_int(axId) + Axlsx::validate_unsigned_int(crossAx) + @axId = axId + @crossAx = crossAx + @format_code = "General" + @scaling = Scaling.new(:orientation=>:minMax) + self.axPos = :l + self.tickLblPos = :nextTo + self.format_code = "General" + self.crosses = :autoZero + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + end +end + @@ -554,8 +570,9 @@

- -

the id of the axis.

+

+the id of the axis. +

@@ -589,9 +606,10 @@
# File 'lib/axlsx/drawing/axis.rb', line 7
 
-def axId
-  @axId
-end
+def axId + @axId +end + @@ -609,8 +627,9 @@

- -

The position of the axis must be one of [:l, :r, :t, :b]

+

+The position of the axis must be one of [:l, :r, :t, :b] +

@@ -644,9 +663,10 @@
# File 'lib/axlsx/drawing/axis.rb', line 21
 
-def axPos
-  @axPos
-end
+def axPos + @axPos +end + @@ -664,8 +684,9 @@

- -

The perpendicular axis

+

+The perpendicular axis +

@@ -699,9 +720,10 @@
# File 'lib/axlsx/drawing/axis.rb', line 11
 
-def crossAx
-  @crossAx
-end
+def crossAx + @crossAx +end + @@ -719,9 +741,10 @@

- -

specifies how the perpendicular axis is crossed must be one of [:autoZero, -:min, :max]

+

+specifies how the perpendicular axis is crossed must be one of [:autoZero, +:min, :max] +

@@ -755,9 +778,10 @@
# File 'lib/axlsx/drawing/axis.rb', line 36
 
-def crosses
-  @crosses
-end
+def crosses + @crosses +end + @@ -775,8 +799,9 @@

- -

The number format format code for this axis default :General

+

+The number format format code for this axis default :General +

@@ -810,9 +835,10 @@
# File 'lib/axlsx/drawing/axis.rb', line 31
 
-def format_code
-  @format_code
-end
+def format_code + @format_code +end + @@ -830,8 +856,9 @@

- -

The scaling of the axis

+

+The scaling of the axis +

@@ -872,9 +899,10 @@
# File 'lib/axlsx/drawing/axis.rb', line 16
 
-def scaling
-  @scaling
-end
+def scaling + @scaling +end + @@ -892,8 +920,9 @@

- -

the position of the tick labels must be one of [:nextTo, :high, :low]

+

+the position of the tick labels must be one of [:nextTo, :high, :low] +

@@ -927,9 +956,10 @@
# File 'lib/axlsx/drawing/axis.rb', line 26
 
-def tickLblPos
-  @tickLblPos
-end
+def tickLblPos + @tickLblPos +end + @@ -951,8 +981,9 @@

- -

Serializes the common axis

+

+Serializes the common axis +

@@ -971,8 +1002,9 @@ — -
-

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

+

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

@@ -1013,16 +1045,17 @@
# File 'lib/axlsx/drawing/axis.rb', line 79
 
-def to_xml(xml)
-  xml.send('c:axId', :val=>@axId)
-  @scaling.to_xml(xml)
-  xml.send('c:axPos', :val=>@axPos)
-  xml.send('c:majorGridlines')
-  xml.send('c:numFmt', :formatCode => @format_code, :sourceLinked=>"1")
-  xml.send('c:tickLblPos', :val=>@tickLblPos)
-  xml.send('c:crossAx', :val=>@crossAx)
-  xml.send('c:crosses', :val=>@crosses)
-end
+def to_xml(xml) + xml.send('c:axId', :val=>@axId) + @scaling.to_xml(xml) + xml.send('c:axPos', :val=>@axPos) + xml.send('c:majorGridlines') + xml.send('c:numFmt', :formatCode => @format_code, :sourceLinked=>"1") + xml.send('c:tickLblPos', :val=>@tickLblPos) + xml.send('c:crossAx', :val=>@crossAx) + xml.send('c:crosses', :val=>@crosses) +end + @@ -1033,9 +1066,9 @@
-- cgit v1.2.3