Class: PDF::Charts::StdDev::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/gems/pdf-writer-1.1.8/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

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Label

Returns a new instance of Label.

Yields:

  • (_self)

Yield Parameters:



30
31
32
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/charts/stddev.rb', line 30

def initialize
  yield self if block_given?
end

Instance Attribute Details

#background_colorObject

The background color of the label. Ignored for scale labels.



38
39
40
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/charts/stddev.rb', line 38

def background_color
  @background_color
end

#decimal_precisionObject

The decimal precision of the label. Only used for scale labels.



46
47
48
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/charts/stddev.rb', line 46

def decimal_precision
  @decimal_precision
end

#heightObject

The height of the label, in PDF user units. Ignored for scale labels.



36
37
38
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/charts/stddev.rb', line 36

def height
  @height
end

#padObject

The padding of the label. Only used for scale labels.



44
45
46
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/charts/stddev.rb', line 44

def pad
  @pad
end

#text_colorObject

The text color of the label.



40
41
42
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/charts/stddev.rb', line 40

def text_color
  @text_color
end

#text_sizeObject

The text size, in points, of the label.



42
43
44
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/charts/stddev.rb', line 42

def text_size
  @text_size
end