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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Label

Yields:

  • (_self)

Yield Parameters:


31
32
33
# File 'lib/pdf/charts/stddev.rb', line 31

def initialize
  yield self if block_given?
end

Instance Attribute Details

#background_colorObject

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_precisionObject

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

#heightObject

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

#padObject

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_colorObject

The text color of the label.


41
42
43
# File 'lib/pdf/charts/stddev.rb', line 41

def text_color
  @text_color
end

#text_sizeObject

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