Class: PDF::Charts::StdDev::Scale

### Home Classes Methods

### In Files

- lib/pdf/charts/stddev.rb

### Parent

Object

### Methods

- ::new

### Files

- ChangeLog

### Class/Module Index

Quicksearch

- PDF
- PDF::Charts
- PDF::Charts::StdDev
- PDF::Charts::StdDev::Label
- PDF::Charts::StdDev::Marker
- PDF::Charts::StdDev::Scale
- PDF::Math
- PDF::QuickRef
- PDF::SimpleTable
- PDF::SimpleTable::Column
- PDF::SimpleTable::Column::Heading
- PDF::TechBook
- PDF::TechBook::TagTocDots
- PDF::TechBook::TagXref
- PDF::Writer
- PDF::Writer::ARC4
- PDF::Writer::Complex
- PDF::Writer::External
- PDF::Writer::FontMetrics
- PDF::Writer::Graphics
- PDF::Writer::Graphics::ImageInfo
- PDF::Writer::Graphics::ImageInfo::Formats
- PDF::Writer::Graphics::ImageInfo::Type
- PDF::Writer::Lang
- PDF::Writer::Lang::EN
- PDF::Writer::OHash
- PDF::Writer::Object
- PDF::Writer::Object::Action
- PDF::Writer::Object::Annotation
- PDF::Writer::Object::Catalog
- PDF::Writer::Object::Contents
- PDF::Writer::Object::Destination
- PDF::Writer::Object::Encryption
- PDF::Writer::Object::Font
- PDF::Writer::Object::FontDescriptor
- PDF::Writer::Object::FontEncoding
- PDF::Writer::Object::Info
- PDF::Writer::Object::Outline
- PDF::Writer::Object::Outlines
- PDF::Writer::Object::Pages
- PDF::Writer::Object::Procset
- PDF::Writer::Object::ViewerPreferences
- PDF::Writer::OffsetReader
- PDF::Writer::PolygonPoint
- PDF::Writer::State
- PDF::Writer::StateStack
- PDF::Writer::StrokeStyle

No matching classes.

# PDF::Charts::StdDev::Scale

The scale of the dataset.

### 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

new(args = { }) click to toggle source

    # File lib/pdf/charts/stddev.rb, line 51
    def initialize(args = { })
      @range        = args[:range]
      @step         = args[:step]
      @style        = args[:style]
      @show_labels  = false

      yield self if block_given?

      raise TypeError, PDF::Lange[:charts_stddev_scale_norange] if @range.nil?
      raise TypeError, PDF::Lange[:charts_stddev_scale_nostep] if @step.nil?
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.