Class PDF::Charts::StdDev::Scale
In: lib/pdf/charts/stddev.rb
Parent: Object
TechBook Transaction::Simple SimpleTable Complex Action FontDescriptor Procset Catalog FontEncoding Pages Destination Info Encryption Annotation Contents Outline Page Outlines Font ViewerPreferences Image Hash OHash QuickRef StdDev FontMetrics StrokeStyle ARC4 PolygonPoint ImageInfo lib/pdf/simpletable.rb lib/pdf/writer.rb lib/pdf/techbook.rb lib/pdf/quickref.rb lib/pdf/charts/stddev.rb Charts Math lib/pdf/writer/ohash.rb lib/pdf/writer/fontmetrics.rb lib/pdf/writer/strokestyle.rb lib/pdf/writer/arc4.rb lib/pdf/writer/graphics.rb lib/pdf/writer/object.rb lib/pdf/writer/object/image.rb External lib/pdf/writer/object/font.rb lib/pdf/writer/object/outlines.rb lib/pdf/writer/object/contents.rb lib/pdf/writer/object/annotation.rb lib/pdf/writer/object/destination.rb lib/pdf/writer/object/viewerpreferences.rb lib/pdf/writer/object/info.rb lib/pdf/writer/object/fontencoding.rb lib/pdf/writer/object/page.rb lib/pdf/writer/object/catalog.rb lib/pdf/writer/object/outline.rb lib/pdf/writer/object/encryption.rb lib/pdf/writer/object/procset.rb lib/pdf/writer/object/action.rb lib/pdf/writer/object/pages.rb lib/pdf/writer/object/fontdescriptor.rb Object OffsetReader EN Lang lib/pdf/writer/graphics/imageinfo.rb Graphics Writer PDF dot/m_33_0.png

The scale of the dataset.

Methods

new  

Attributes

first  [RW]  The lower end of the range of the scale. The scale range may be modified by changing this value.
label  [RW]  Defines the label options.
last  [RW]  The upper end of the range of the scale. The scale range may be modified by changing this value.
range  [RW]  Range of the scale. This should be a Range object.
show_labels  [RW]  Shows the scale labels if true.
step  [RW]  Defines the step of the scale. Each step represents a vertical position on the chart.
style  [RW]  Defines the line style for the scale on the chart. If this is unset (nil), there will be no horizontal marks across the chart for the steps of the scale.

Public Class methods

[Source]

    # File lib/pdf/charts/stddev.rb, line 51
51:     def initialize(args = { })
52:       @range        = args[:range]
53:       @step         = args[:step]
54:       @style        = args[:style]
55:       @show_labels  = false
56: 
57:       yield self if block_given?
58: 
59:       raise TypeError, PDF::Lange[:charts_stddev_scale_norange] if @range.nil?
60:       raise TypeError, PDF::Lange[:charts_stddev_scale_nostep] if @step.nil?
61:     end

[Validate]