From cdfc7251bde8347678d355e5fe65fc20e120bc23 Mon Sep 17 00:00:00 2001
From: Randy Morgan The recommended way to manage markers is Worksheet#add_chart Markers are
-created for a two cell anchor based on the :start and :end options.
+The recommended way to manage markers is Worksheet#add_chart Markers are
+created for a two cell anchor based on the :start and :end options.
+ The Marker class defines a point in the worksheet that drawing anchors
-attach to.
+The Marker class defines a point in the worksheet that drawing anchors
+attach to.
+
The column this marker anchors to.
++The column this marker anchors to. +
The offset distance from this marker's column.
++The offset distance from this marker’s column. +
The row this marker anchors to.
++The row this marker anchors to. +
The offset distance from this marker's row.
++The offset distance from this marker’s row. +
shortcut to set the column, row position for this marker.
++shortcut to set the column, row position for this marker. +
Creates a new Marker object.
++Creates a new Marker object. +
Serializes the marker.
++Serializes the marker. +
Creates a new Marker object
++Creates a new Marker object +
a customizable set of options
++a customizable set of options +
# File 'lib/axlsx/drawing/marker.rb', line 28 -def initialize(={}) - @col, @colOff, @row, @rowOff = 0, 0, 0, 0 - .each do |o| - self.send("#{o[0]}=", o[1]) if self.respond_to? o[0] - end -end+def initialize(={}) + @col, @colOff, @row, @rowOff = 0, 0, 0, 0 + .each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? o[0] + end +end +
The column this marker anchors to
++The column this marker anchors to +
# File 'lib/axlsx/drawing/marker.rb', line 9 -def col - @col -end+def col + @col +end +
The offset distance from this marker's column
++The offset distance from this marker’s column +
# File 'lib/axlsx/drawing/marker.rb', line 13 -def colOff - @colOff -end+def colOff + @colOff +end +
The row this marker anchors to
++The row this marker anchors to +
# File 'lib/axlsx/drawing/marker.rb', line 17 -def row - @row -end+def row + @row +end +
The offset distance from this marker's row
++The offset distance from this marker’s row +
# File 'lib/axlsx/drawing/marker.rb', line 21 -def rowOff - @rowOff -end+def rowOff + @rowOff +end +
shortcut to set the column, row position for this marker
++shortcut to set the column, row position for this marker +
the column for the marker
++the column for the marker +
the row of the marker
++the row of the marker +
# File 'lib/axlsx/drawing/marker.rb', line 47 -def coord(col, row) - self.col = col - self.row = row -end+def coord(col, row) + self.col = col + self.row = row +end +
Serializes the marker
++Serializes the marker +
The document builder instance this objects xml will be added to.
++The document builder instance this objects xml will be added to. +
# File 'lib/axlsx/drawing/marker.rb', line 54 -def to_xml(xml) - [:col, :colOff, :row, :rowOff].each do |k| - xml.send("xdr:#{k.to_s}", self.send(k)) - end -end+def to_xml(xml) + [:col, :colOff, :row, :rowOff].each do |k| + xml.send("xdr:#{k.to_s}", self.send(k)) + end +end +