Class: GOffice::GraphErrorBar

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.prefs(series, property, direction, dalloc, cc) ⇒ GObject

Returns the error bar properties Gtk::Widget.

Parameters:

Returns:

  • (GObject)

    the error bar properties Gtk::Widget

Instance Method Details

#dupGOffice::GraphErrorBar

Returns the duplicated error bar.

Returns:

#get_bounds(index, min, max) ⇒ Boolean

If the value correponding to index is valid, fills min and max with the error values: -> positive_error in max. -> negative_error in min. If one of the errors is not valid or not defined, its value is set to -1.0.

Parameters:

  • index (Integer)

    the index corresponding to the value which error limits are

  • min (Float)

    where the minimum value will be stored

  • max (Float)

    where the maximum value will be stored

Returns:

  • (Boolean)

    false if the bar->type is %GOG_ERROR_BAR_TYPE_NONE or if the value is not valid, true otherwise.

#get_minmax(min, max) ⇒ nil

Parameters:

  • min (Float)
  • max (Float)

Returns:

  • (nil)

#is_visibleBoolean

Returns:

  • (Boolean)

#render(rend, map, x, y, minus, plus, direction) ⇒ nil

Displays the error bar. If plus is negative, the positive side of the bar is not displayed, and if minus is negative, the negative side of the bar is not displayed. x_map and y_map are used to convert coordinates from data space to canvas coordinates. This function must not be called if #gog_error_bar_get_bounds returned FALSE.

Parameters:

  • rend (GOffice::GraphRenderer)

    A GogRenderer

  • map (GOffice::GraphChartMap)

    A GogChartMap for the chart

  • x (Float)

    x coordinate of the origin of the bar

  • y (Float)

    y coordinate of the origin of the bar

  • minus (Float)

    distance from the origin to the negative end of the bar

  • plus (Float)

    distance from the origin to the positive end of the bar

  • direction (GOffice::GraphErrorBarDirection)

    the Gog::ErrorBarDirection for the bar.

Returns:

  • (nil)