Class: PDF::Charts::StdDev::Label
- Inherits:
-
Object
- Object
- PDF::Charts::StdDev::Label
- Defined in:
- lib/pdf/charts/stddev.rb
Overview
A label for displaying the scale (vertical) of data in the dataset or the data set identifiers.
Instance Attribute Summary collapse
-
#background_color ⇒ Object
The background color of the label.
-
#decimal_precision ⇒ Object
The decimal precision of the label.
-
#height ⇒ Object
The height of the label, in PDF user units.
-
#pad ⇒ Object
The padding of the label.
-
#text_color ⇒ Object
The text color of the label.
-
#text_size ⇒ Object
The text size, in points, of the label.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize {|_self| ... } ⇒ Label
Returns a new instance of Label.
31 32 33 |
# File 'lib/pdf/charts/stddev.rb', line 31 def initialize yield self if block_given? end |
Instance Attribute Details
#background_color ⇒ Object
The background color of the label. Ignored for scale labels.
39 40 41 |
# File 'lib/pdf/charts/stddev.rb', line 39 def background_color @background_color end |
#decimal_precision ⇒ Object
The decimal precision of the label. Only used for scale labels.
47 48 49 |
# File 'lib/pdf/charts/stddev.rb', line 47 def decimal_precision @decimal_precision end |
#height ⇒ Object
The height of the label, in PDF user units. Ignored for scale labels.
37 38 39 |
# File 'lib/pdf/charts/stddev.rb', line 37 def height @height end |
#pad ⇒ Object
The padding of the label. Only used for scale labels.
45 46 47 |
# File 'lib/pdf/charts/stddev.rb', line 45 def pad @pad end |
#text_color ⇒ Object
The text color of the label.
41 42 43 |
# File 'lib/pdf/charts/stddev.rb', line 41 def text_color @text_color end |
#text_size ⇒ Object
The text size, in points, of the label.
43 44 45 |
# File 'lib/pdf/charts/stddev.rb', line 43 def text_size @text_size end |