axlsx 1.0.9 → 1.0.10a
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +24 -0
- data/README.md +86 -1
- data/axlsx.gemspec +6 -10
- data/doc/Axlsx.html +557 -360
- data/doc/Axlsx/App.html +347 -244
- data/doc/Axlsx/Ar.html +200 -0
- data/doc/Axlsx/Ar/ClassMethods.html +192 -0
- data/doc/Axlsx/Ar/InstanceMethods.html +109 -0
- data/doc/Axlsx/Ar/SingletonMethods.html +304 -0
- data/doc/Axlsx/Axis.html +131 -98
- data/doc/Axlsx/Bar3DChart.html +138 -106
- data/doc/Axlsx/BarSeries.html +73 -54
- data/doc/Axlsx/Border.html +114 -87
- data/doc/Axlsx/BorderPr.html +107 -82
- data/doc/Axlsx/CatAxis.html +93 -68
- data/doc/Axlsx/CatAxisData.html +47 -38
- data/doc/Axlsx/Cell.html +642 -148
- data/doc/Axlsx/CellAlignment.html +152 -111
- data/doc/Axlsx/CellProtection.html +63 -45
- data/doc/Axlsx/CellStyle.html +101 -73
- data/doc/Axlsx/Chart.html +238 -179
- data/doc/Axlsx/Color.html +75 -53
- data/doc/Axlsx/ContentType.html +34 -26
- data/doc/Axlsx/Core.html +54 -42
- data/doc/Axlsx/DataTypeValidator.html +39 -30
- data/doc/Axlsx/Default.html +59 -43
- data/doc/Axlsx/Drawing.html +176 -128
- data/doc/Axlsx/Fill.html +46 -33
- data/doc/Axlsx/Font.html +197 -147
- data/doc/Axlsx/GradientFill.html +114 -82
- data/doc/Axlsx/GradientStop.html +47 -33
- data/doc/Axlsx/GraphicFrame.html +78 -60
- data/doc/Axlsx/Line3DChart.html +125 -97
- data/doc/Axlsx/LineSeries.html +60 -44
- data/doc/Axlsx/Marker.html +98 -71
- data/doc/Axlsx/NumFmt.html +99 -80
- data/doc/Axlsx/OneCellAnchor.html +126 -94
- data/doc/Axlsx/Override.html +59 -43
- data/doc/Axlsx/Package.html +269 -134
- data/doc/Axlsx/PatternFill.html +93 -72
- data/doc/Axlsx/Pic.html +202 -152
- data/doc/Axlsx/Pie3DChart.html +39 -30
- data/doc/Axlsx/PieSeries.html +72 -53
- data/doc/Axlsx/RegexValidator.html +19 -14
- data/doc/Axlsx/Relationship.html +60 -43
- data/doc/Axlsx/Relationships.html +34 -26
- data/doc/Axlsx/RestrictionValidator.html +31 -22
- data/doc/Axlsx/Row.html +241 -67
- data/doc/Axlsx/Scaling.html +80 -59
- data/doc/Axlsx/SerAxis.html +71 -51
- data/doc/Axlsx/Series.html +179 -51
- data/doc/Axlsx/SeriesTitle.html +29 -24
- data/doc/Axlsx/Styles.html +354 -285
- data/doc/Axlsx/TableStyle.html +74 -54
- data/doc/Axlsx/TableStyleElement.html +99 -79
- data/doc/Axlsx/TableStyles.html +65 -47
- data/doc/Axlsx/Title.html +66 -51
- data/doc/Axlsx/TwoCellAnchor.html +129 -96
- data/doc/Axlsx/ValAxis.html +52 -38
- data/doc/Axlsx/ValAxisData.html +32 -27
- data/doc/Axlsx/View3D.html +111 -80
- data/doc/Axlsx/Workbook.html +333 -272
- data/doc/Axlsx/Worksheet.html +1018 -266
- data/doc/Axlsx/Xf.html +188 -134
- data/doc/_index.html +44 -8
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +28 -23
- data/doc/file.README.html +180 -91
- data/doc/index.html +180 -91
- data/doc/method_list.html +541 -421
- data/doc/top-level-namespace.html +2 -2
- data/examples/example.rb +70 -13
- data/lib/axlsx.rb +1 -0
- data/lib/axlsx/ar.rb +72 -0
- data/lib/axlsx/package.rb +8 -1
- data/lib/axlsx/util/simple_typed_list.rb +5 -0
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +4 -2
- data/lib/axlsx/workbook/worksheet/row.rb +15 -0
- data/lib/axlsx/workbook/worksheet/worksheet.rb +44 -1
- data/test/workbook/worksheet/tc_row.rb +6 -0
- data/test/workbook/worksheet/tc_worksheet.rb +36 -0
- metadata +103 -59
data/doc/Axlsx/LineSeries.html
CHANGED
@@ -99,13 +99,15 @@
|
|
99
99
|
|
100
100
|
<div class="note notetag">
|
101
101
|
<strong>Note:</strong>
|
102
|
-
<div class='inline'>
|
103
|
-
|
102
|
+
<div class='inline'><p>
|
103
|
+
The recommended way to manage series is to use Chart#add_series
|
104
|
+
</p>
|
104
105
|
</div>
|
105
106
|
</div>
|
106
107
|
|
107
|
-
|
108
|
-
|
108
|
+
<p>
|
109
|
+
A LineSeries defines the title, data and labels for line charts
|
110
|
+
</p>
|
109
111
|
|
110
112
|
|
111
113
|
</div>
|
@@ -150,8 +152,9 @@
|
|
150
152
|
|
151
153
|
|
152
154
|
|
153
|
-
<span class="summary_desc"><div class='inline'>
|
154
|
-
|
155
|
+
<span class="summary_desc"><div class='inline'><p>
|
156
|
+
The data for this series.
|
157
|
+
</p>
|
155
158
|
</div></span>
|
156
159
|
|
157
160
|
</li>
|
@@ -176,8 +179,9 @@
|
|
176
179
|
|
177
180
|
|
178
181
|
|
179
|
-
<span class="summary_desc"><div class='inline'>
|
180
|
-
|
182
|
+
<span class="summary_desc"><div class='inline'><p>
|
183
|
+
The labels for this series.
|
184
|
+
</p>
|
181
185
|
</div></span>
|
182
186
|
|
183
187
|
</li>
|
@@ -222,8 +226,9 @@
|
|
222
226
|
|
223
227
|
|
224
228
|
|
225
|
-
<span class="summary_desc"><div class='inline'>
|
226
|
-
|
229
|
+
<span class="summary_desc"><div class='inline'><p>
|
230
|
+
Creates a new series.
|
231
|
+
</p>
|
227
232
|
</div></span>
|
228
233
|
|
229
234
|
</li>
|
@@ -245,8 +250,9 @@
|
|
245
250
|
|
246
251
|
|
247
252
|
|
248
|
-
<span class="summary_desc"><div class='inline'>
|
249
|
-
|
253
|
+
<span class="summary_desc"><div class='inline'><p>
|
254
|
+
Serializes the series.
|
255
|
+
</p>
|
250
256
|
</div></span>
|
251
257
|
|
252
258
|
</li>
|
@@ -277,8 +283,9 @@
|
|
277
283
|
|
278
284
|
</p><div class="docstring">
|
279
285
|
<div class="discussion">
|
280
|
-
|
281
|
-
|
286
|
+
<p>
|
287
|
+
Creates a new series
|
288
|
+
</p>
|
282
289
|
|
283
290
|
|
284
291
|
</div>
|
@@ -310,8 +317,9 @@
|
|
310
317
|
|
311
318
|
|
312
319
|
—
|
313
|
-
<div class='inline'>
|
314
|
-
|
320
|
+
<div class='inline'><p>
|
321
|
+
a customizable set of options
|
322
|
+
</p>
|
315
323
|
</div>
|
316
324
|
|
317
325
|
</li>
|
@@ -364,12 +372,13 @@
|
|
364
372
|
<td>
|
365
373
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_series.rb', line 20</span>
|
366
374
|
|
367
|
-
<span class='kw'>def</span> <span class='id
|
368
|
-
<span class='ivar'>@labels</span><span class='comma'>,</span> <span class='ivar'>@data</span> <span class='
|
369
|
-
<span class='kw'>super</span><span class='lparen'>(</span><span class='id
|
370
|
-
<span class='ivar'>@labels</span> <span class='
|
371
|
-
<span class='ivar'>@data</span> <span class='
|
372
|
-
<span class='kw'>end</span
|
375
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='chart identifier id'>chart</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
376
|
+
<span class='@labels ivar id'>@labels</span><span class='comma token'>,</span> <span class='@data ivar id'>@data</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span><span class='comma token'>,</span> <span class='nil nil kw'>nil</span>
|
377
|
+
<span class='super super kw'>super</span><span class='lparen token'>(</span><span class='chart identifier id'>chart</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
378
|
+
<span class='@labels ivar id'>@labels</span> <span class='assign token'>=</span> <span class='CatAxisData constant id'>CatAxisData</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:labels</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:labels</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
379
|
+
<span class='@data ivar id'>@data</span> <span class='assign token'>=</span> <span class='ValAxisData constant id'>ValAxisData</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:data</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:data</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
380
|
+
<span class='end end kw'>end</span>
|
381
|
+
</pre>
|
373
382
|
</td>
|
374
383
|
</tr>
|
375
384
|
</table>
|
@@ -392,8 +401,9 @@
|
|
392
401
|
|
393
402
|
</p><div class="docstring">
|
394
403
|
<div class="discussion">
|
395
|
-
|
396
|
-
|
404
|
+
<p>
|
405
|
+
The data for this series.
|
406
|
+
</p>
|
397
407
|
|
398
408
|
|
399
409
|
</div>
|
@@ -427,9 +437,10 @@
|
|
427
437
|
<td>
|
428
438
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_series.rb', line 10</span>
|
429
439
|
|
430
|
-
<span class='kw'>def</span> <span class='id
|
431
|
-
<span class='ivar'>@data</span>
|
432
|
-
<span class='kw'>end</span
|
440
|
+
<span class='def def kw'>def</span> <span class='data identifier id'>data</span>
|
441
|
+
<span class='@data ivar id'>@data</span>
|
442
|
+
<span class='end end kw'>end</span>
|
443
|
+
</pre>
|
433
444
|
</td>
|
434
445
|
</tr>
|
435
446
|
</table>
|
@@ -447,8 +458,9 @@
|
|
447
458
|
|
448
459
|
</p><div class="docstring">
|
449
460
|
<div class="discussion">
|
450
|
-
|
451
|
-
|
461
|
+
<p>
|
462
|
+
The labels for this series.
|
463
|
+
</p>
|
452
464
|
|
453
465
|
|
454
466
|
</div>
|
@@ -482,9 +494,10 @@
|
|
482
494
|
<td>
|
483
495
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_series.rb', line 14</span>
|
484
496
|
|
485
|
-
<span class='kw'>def</span> <span class='id
|
486
|
-
<span class='ivar'>@labels</span>
|
487
|
-
<span class='kw'>end</span
|
497
|
+
<span class='def def kw'>def</span> <span class='labels identifier id'>labels</span>
|
498
|
+
<span class='@labels ivar id'>@labels</span>
|
499
|
+
<span class='end end kw'>end</span>
|
500
|
+
</pre>
|
488
501
|
</td>
|
489
502
|
</tr>
|
490
503
|
</table>
|
@@ -506,8 +519,9 @@
|
|
506
519
|
|
507
520
|
</p><div class="docstring">
|
508
521
|
<div class="discussion">
|
509
|
-
|
510
|
-
|
522
|
+
<p>
|
523
|
+
Serializes the series
|
524
|
+
</p>
|
511
525
|
|
512
526
|
|
513
527
|
</div>
|
@@ -526,8 +540,9 @@
|
|
526
540
|
|
527
541
|
|
528
542
|
—
|
529
|
-
<div class='inline'>
|
530
|
-
|
543
|
+
<div class='inline'><p>
|
544
|
+
The document builder instance this objects xml will be added to.
|
545
|
+
</p>
|
531
546
|
</div>
|
532
547
|
|
533
548
|
</li>
|
@@ -564,12 +579,13 @@
|
|
564
579
|
<td>
|
565
580
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/line_series.rb', line 30</span>
|
566
581
|
|
567
|
-
<span class='kw'>def</span> <span class='id
|
568
|
-
<span class='kw'>super</span><span class='lparen'>(</span><span class='id
|
569
|
-
<span class='ivar'>@labels</span><span class='
|
570
|
-
<span class='ivar'>@data</span><span class='
|
571
|
-
<span class='kw'>end</span>
|
572
|
-
<span class='kw'>end</span
|
582
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
583
|
+
<span class='super super kw'>super</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml_inner identifier id'>xml_inner</span><span class='bitor op'>|</span>
|
584
|
+
<span class='@labels ivar id'>@labels</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml_inner identifier id'>xml_inner</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='@labels ivar id'>@labels</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
585
|
+
<span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml_inner identifier id'>xml_inner</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
586
|
+
<span class='end end kw'>end</span>
|
587
|
+
<span class='end end kw'>end</span>
|
588
|
+
</pre>
|
573
589
|
</td>
|
574
590
|
</tr>
|
575
591
|
</table>
|
@@ -580,9 +596,9 @@
|
|
580
596
|
</div>
|
581
597
|
|
582
598
|
<div id="footer">
|
583
|
-
Generated on
|
599
|
+
Generated on Sun Nov 27 21:54:14 2011 by
|
584
600
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
585
|
-
0.7.3 (ruby-1.
|
601
|
+
0.7.3 (ruby-1.8.7).
|
586
602
|
</div>
|
587
603
|
|
588
604
|
</body>
|
data/doc/Axlsx/Marker.html
CHANGED
@@ -97,15 +97,17 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'>
|
101
|
-
|
102
|
-
created for a two cell anchor based on the :start and :end options
|
100
|
+
<div class='inline'><p>
|
101
|
+
The recommended way to manage markers is Worksheet#add_chart Markers are
|
102
|
+
created for a two cell anchor based on the :start and :end options.
|
103
|
+
</p>
|
103
104
|
</div>
|
104
105
|
</div>
|
105
106
|
|
106
|
-
|
107
|
-
|
108
|
-
attach to
|
107
|
+
<p>
|
108
|
+
The Marker class defines a point in the worksheet that drawing anchors
|
109
|
+
attach to.
|
110
|
+
</p>
|
109
111
|
|
110
112
|
|
111
113
|
</div>
|
@@ -144,8 +146,9 @@ attach to.</p>
|
|
144
146
|
|
145
147
|
|
146
148
|
|
147
|
-
<span class="summary_desc"><div class='inline'>
|
148
|
-
|
149
|
+
<span class="summary_desc"><div class='inline'><p>
|
150
|
+
The column this marker anchors to.
|
151
|
+
</p>
|
149
152
|
</div></span>
|
150
153
|
|
151
154
|
</li>
|
@@ -170,8 +173,9 @@ attach to.</p>
|
|
170
173
|
|
171
174
|
|
172
175
|
|
173
|
-
<span class="summary_desc"><div class='inline'>
|
174
|
-
|
176
|
+
<span class="summary_desc"><div class='inline'><p>
|
177
|
+
The offset distance from this marker’s column.
|
178
|
+
</p>
|
175
179
|
</div></span>
|
176
180
|
|
177
181
|
</li>
|
@@ -196,8 +200,9 @@ attach to.</p>
|
|
196
200
|
|
197
201
|
|
198
202
|
|
199
|
-
<span class="summary_desc"><div class='inline'>
|
200
|
-
|
203
|
+
<span class="summary_desc"><div class='inline'><p>
|
204
|
+
The row this marker anchors to.
|
205
|
+
</p>
|
201
206
|
</div></span>
|
202
207
|
|
203
208
|
</li>
|
@@ -222,8 +227,9 @@ attach to.</p>
|
|
222
227
|
|
223
228
|
|
224
229
|
|
225
|
-
<span class="summary_desc"><div class='inline'>
|
226
|
-
|
230
|
+
<span class="summary_desc"><div class='inline'><p>
|
231
|
+
The offset distance from this marker’s row.
|
232
|
+
</p>
|
227
233
|
</div></span>
|
228
234
|
|
229
235
|
</li>
|
@@ -258,8 +264,9 @@ attach to.</p>
|
|
258
264
|
|
259
265
|
|
260
266
|
|
261
|
-
<span class="summary_desc"><div class='inline'>
|
262
|
-
|
267
|
+
<span class="summary_desc"><div class='inline'><p>
|
268
|
+
shortcut to set the column, row position for this marker.
|
269
|
+
</p>
|
263
270
|
</div></span>
|
264
271
|
|
265
272
|
</li>
|
@@ -283,8 +290,9 @@ attach to.</p>
|
|
283
290
|
|
284
291
|
|
285
292
|
|
286
|
-
<span class="summary_desc"><div class='inline'>
|
287
|
-
|
293
|
+
<span class="summary_desc"><div class='inline'><p>
|
294
|
+
Creates a new Marker object.
|
295
|
+
</p>
|
288
296
|
</div></span>
|
289
297
|
|
290
298
|
</li>
|
@@ -306,8 +314,9 @@ attach to.</p>
|
|
306
314
|
|
307
315
|
|
308
316
|
|
309
|
-
<span class="summary_desc"><div class='inline'>
|
310
|
-
|
317
|
+
<span class="summary_desc"><div class='inline'><p>
|
318
|
+
Serializes the marker.
|
319
|
+
</p>
|
311
320
|
</div></span>
|
312
321
|
|
313
322
|
</li>
|
@@ -328,8 +337,9 @@ attach to.</p>
|
|
328
337
|
|
329
338
|
</p><div class="docstring">
|
330
339
|
<div class="discussion">
|
331
|
-
|
332
|
-
|
340
|
+
<p>
|
341
|
+
Creates a new Marker object
|
342
|
+
</p>
|
333
343
|
|
334
344
|
|
335
345
|
</div>
|
@@ -350,8 +360,9 @@ attach to.</p>
|
|
350
360
|
|
351
361
|
|
352
362
|
—
|
353
|
-
<div class='inline'>
|
354
|
-
|
363
|
+
<div class='inline'><p>
|
364
|
+
a customizable set of options
|
365
|
+
</p>
|
355
366
|
</div>
|
356
367
|
|
357
368
|
</li>
|
@@ -420,12 +431,13 @@ attach to.</p>
|
|
420
431
|
<td>
|
421
432
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/marker.rb', line 28</span>
|
422
433
|
|
423
|
-
<span class='kw'>def</span> <span class='id
|
424
|
-
<span class='ivar'>@col</span><span class='comma'>,</span> <span class='ivar'>@colOff</span><span class='comma'>,</span> <span class='ivar'>@row</span><span class='comma'>,</span> <span class='ivar'>@rowOff</span> <span class='
|
425
|
-
<span class='id
|
426
|
-
<span class='kw'>self</span><span class='
|
427
|
-
<span class='kw'>end</span>
|
428
|
-
<span class='kw'>end</span
|
434
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
435
|
+
<span class='@col ivar id'>@col</span><span class='comma token'>,</span> <span class='@colOff ivar id'>@colOff</span><span class='comma token'>,</span> <span class='@row ivar id'>@row</span><span class='comma token'>,</span> <span class='@rowOff ivar id'>@rowOff</span> <span class='assign token'>=</span> <span class='integer val'>0</span><span class='comma token'>,</span> <span class='integer val'>0</span><span class='comma token'>,</span> <span class='integer val'>0</span><span class='comma token'>,</span> <span class='integer val'>0</span>
|
436
|
+
<span class='options identifier id'>options</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='o identifier id'>o</span><span class='bitor op'>|</span>
|
437
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{o[0]}="</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span>
|
438
|
+
<span class='end end kw'>end</span>
|
439
|
+
<span class='end end kw'>end</span>
|
440
|
+
</pre>
|
429
441
|
</td>
|
430
442
|
</tr>
|
431
443
|
</table>
|
@@ -448,8 +460,9 @@ attach to.</p>
|
|
448
460
|
|
449
461
|
</p><div class="docstring">
|
450
462
|
<div class="discussion">
|
451
|
-
|
452
|
-
|
463
|
+
<p>
|
464
|
+
The column this marker anchors to
|
465
|
+
</p>
|
453
466
|
|
454
467
|
|
455
468
|
</div>
|
@@ -483,9 +496,10 @@ attach to.</p>
|
|
483
496
|
<td>
|
484
497
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/marker.rb', line 9</span>
|
485
498
|
|
486
|
-
<span class='kw'>def</span> <span class='id
|
487
|
-
<span class='ivar'>@col</span>
|
488
|
-
<span class='kw'>end</span
|
499
|
+
<span class='def def kw'>def</span> <span class='col identifier id'>col</span>
|
500
|
+
<span class='@col ivar id'>@col</span>
|
501
|
+
<span class='end end kw'>end</span>
|
502
|
+
</pre>
|
489
503
|
</td>
|
490
504
|
</tr>
|
491
505
|
</table>
|
@@ -503,8 +517,9 @@ attach to.</p>
|
|
503
517
|
|
504
518
|
</p><div class="docstring">
|
505
519
|
<div class="discussion">
|
506
|
-
|
507
|
-
|
520
|
+
<p>
|
521
|
+
The offset distance from this marker’s column
|
522
|
+
</p>
|
508
523
|
|
509
524
|
|
510
525
|
</div>
|
@@ -538,9 +553,10 @@ attach to.</p>
|
|
538
553
|
<td>
|
539
554
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/marker.rb', line 13</span>
|
540
555
|
|
541
|
-
<span class='kw'>def</span> <span class='id
|
542
|
-
<span class='ivar'>@colOff</span>
|
543
|
-
<span class='kw'>end</span
|
556
|
+
<span class='def def kw'>def</span> <span class='colOff identifier id'>colOff</span>
|
557
|
+
<span class='@colOff ivar id'>@colOff</span>
|
558
|
+
<span class='end end kw'>end</span>
|
559
|
+
</pre>
|
544
560
|
</td>
|
545
561
|
</tr>
|
546
562
|
</table>
|
@@ -558,8 +574,9 @@ attach to.</p>
|
|
558
574
|
|
559
575
|
</p><div class="docstring">
|
560
576
|
<div class="discussion">
|
561
|
-
|
562
|
-
|
577
|
+
<p>
|
578
|
+
The row this marker anchors to
|
579
|
+
</p>
|
563
580
|
|
564
581
|
|
565
582
|
</div>
|
@@ -593,9 +610,10 @@ attach to.</p>
|
|
593
610
|
<td>
|
594
611
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/marker.rb', line 17</span>
|
595
612
|
|
596
|
-
<span class='kw'>def</span> <span class='id
|
597
|
-
<span class='ivar'>@row</span>
|
598
|
-
<span class='kw'>end</span
|
613
|
+
<span class='def def kw'>def</span> <span class='row identifier id'>row</span>
|
614
|
+
<span class='@row ivar id'>@row</span>
|
615
|
+
<span class='end end kw'>end</span>
|
616
|
+
</pre>
|
599
617
|
</td>
|
600
618
|
</tr>
|
601
619
|
</table>
|
@@ -613,8 +631,9 @@ attach to.</p>
|
|
613
631
|
|
614
632
|
</p><div class="docstring">
|
615
633
|
<div class="discussion">
|
616
|
-
|
617
|
-
|
634
|
+
<p>
|
635
|
+
The offset distance from this marker’s row
|
636
|
+
</p>
|
618
637
|
|
619
638
|
|
620
639
|
</div>
|
@@ -648,9 +667,10 @@ attach to.</p>
|
|
648
667
|
<td>
|
649
668
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/marker.rb', line 21</span>
|
650
669
|
|
651
|
-
<span class='kw'>def</span> <span class='id
|
652
|
-
<span class='ivar'>@rowOff</span>
|
653
|
-
<span class='kw'>end</span
|
670
|
+
<span class='def def kw'>def</span> <span class='rowOff identifier id'>rowOff</span>
|
671
|
+
<span class='@rowOff ivar id'>@rowOff</span>
|
672
|
+
<span class='end end kw'>end</span>
|
673
|
+
</pre>
|
654
674
|
</td>
|
655
675
|
</tr>
|
656
676
|
</table>
|
@@ -672,8 +692,9 @@ attach to.</p>
|
|
672
692
|
|
673
693
|
</p><div class="docstring">
|
674
694
|
<div class="discussion">
|
675
|
-
|
676
|
-
|
695
|
+
<p>
|
696
|
+
shortcut to set the column, row position for this marker
|
697
|
+
</p>
|
677
698
|
|
678
699
|
|
679
700
|
</div>
|
@@ -692,8 +713,9 @@ attach to.</p>
|
|
692
713
|
|
693
714
|
|
694
715
|
—
|
695
|
-
<div class='inline'>
|
696
|
-
|
716
|
+
<div class='inline'><p>
|
717
|
+
the column for the marker
|
718
|
+
</p>
|
697
719
|
</div>
|
698
720
|
|
699
721
|
</li>
|
@@ -708,8 +730,9 @@ attach to.</p>
|
|
708
730
|
|
709
731
|
|
710
732
|
—
|
711
|
-
<div class='inline'>
|
712
|
-
|
733
|
+
<div class='inline'><p>
|
734
|
+
the row of the marker
|
735
|
+
</p>
|
713
736
|
</div>
|
714
737
|
|
715
738
|
</li>
|
@@ -731,10 +754,11 @@ attach to.</p>
|
|
731
754
|
<td>
|
732
755
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/marker.rb', line 47</span>
|
733
756
|
|
734
|
-
<span class='kw'>def</span> <span class='id
|
735
|
-
<span class='kw'>self</span><span class='
|
736
|
-
<span class='kw'>self</span><span class='
|
737
|
-
<span class='kw'>end</span
|
757
|
+
<span class='def def kw'>def</span> <span class='coord identifier id'>coord</span><span class='lparen token'>(</span><span class='col identifier id'>col</span><span class='comma token'>,</span> <span class='row identifier id'>row</span><span class='rparen token'>)</span>
|
758
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='col identifier id'>col</span> <span class='assign token'>=</span> <span class='col identifier id'>col</span>
|
759
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='row identifier id'>row</span> <span class='assign token'>=</span> <span class='row identifier id'>row</span>
|
760
|
+
<span class='end end kw'>end</span>
|
761
|
+
</pre>
|
738
762
|
</td>
|
739
763
|
</tr>
|
740
764
|
</table>
|
@@ -749,8 +773,9 @@ attach to.</p>
|
|
749
773
|
|
750
774
|
</p><div class="docstring">
|
751
775
|
<div class="discussion">
|
752
|
-
|
753
|
-
|
776
|
+
<p>
|
777
|
+
Serializes the marker
|
778
|
+
</p>
|
754
779
|
|
755
780
|
|
756
781
|
</div>
|
@@ -769,8 +794,9 @@ attach to.</p>
|
|
769
794
|
|
770
795
|
|
771
796
|
—
|
772
|
-
<div class='inline'>
|
773
|
-
|
797
|
+
<div class='inline'><p>
|
798
|
+
The document builder instance this objects xml will be added to.
|
799
|
+
</p>
|
774
800
|
</div>
|
775
801
|
|
776
802
|
</li>
|
@@ -806,11 +832,12 @@ attach to.</p>
|
|
806
832
|
<td>
|
807
833
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/marker.rb', line 54</span>
|
808
834
|
|
809
|
-
<span class='kw'>def</span> <span class='id
|
810
|
-
<span class='
|
811
|
-
<span class='id
|
812
|
-
<span class='kw'>end</span>
|
813
|
-
<span class='kw'>end</span
|
835
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
836
|
+
<span class='lbrack token'>[</span><span class='symbol val'>:col</span><span class='comma token'>,</span> <span class='symbol val'>:colOff</span><span class='comma token'>,</span> <span class='symbol val'>:row</span><span class='comma token'>,</span> <span class='symbol val'>:rowOff</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='bitor op'>|</span>
|
837
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"xdr:#{k.to_s}"</span><span class='comma token'>,</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='k identifier id'>k</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
838
|
+
<span class='end end kw'>end</span>
|
839
|
+
<span class='end end kw'>end</span>
|
840
|
+
</pre>
|
814
841
|
</td>
|
815
842
|
</tr>
|
816
843
|
</table>
|
@@ -821,9 +848,9 @@ attach to.</p>
|
|
821
848
|
</div>
|
822
849
|
|
823
850
|
<div id="footer">
|
824
|
-
Generated on
|
851
|
+
Generated on Sun Nov 27 21:54:12 2011 by
|
825
852
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
826
|
-
0.7.3 (ruby-1.
|
853
|
+
0.7.3 (ruby-1.8.7).
|
827
854
|
</div>
|
828
855
|
|
829
856
|
</body>
|