Class: GOffice::Data

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

Direct Known Subclasses

DataMatrix, DataScalar, DataVector

Instance Method Summary collapse

Instance Method Details

#date_conv ⇒ GOffice::DateConventions

Returns the date conventions used by the data, or nil if not determined.

Returns:

  • (GOffice::DateConventions) —

    the date conventions used by the data, or nil if not determined.

#dup ⇒ GOffice::Data

Returns A deep copy of src.

Returns:

#emit_changed ⇒ nil

protected utility to emit a 'changed' signal

Returns:

  • (nil)

#eq(b) ⇒ Boolean

Returns TRUE if a and b are the same.

Parameters:

Returns:

  • (Boolean) —

    TRUE if a and b are the same

#get_bounds(minimum, maximum) ⇒ nil

Parameters:

  • minimum (Float)
  • maximum (Float)

Returns:

  • (nil)

#get_matrix_markup(row, column) ⇒ Pango::AttrList

Parameters:

  • row (Integer)
  • column (Integer)

Returns:

  • (Pango::AttrList)

#get_matrix_size(n_rows, n_columns) ⇒ nil

Parameters:

  • n_rows (Integer)
  • n_columns (Integer)

Returns:

  • (nil)

#get_matrix_string(row, column) ⇒ String

Parameters:

  • row (Integer)
  • column (Integer)

Returns:

  • (String)

#get_matrix_value(row, column) ⇒ Float

Parameters:

  • row (Integer)
  • column (Integer)

Returns:

  • (Float)

#get_vector_markup(column) ⇒ Pango::AttrList

Parameters:

  • column (Integer)

Returns:

  • (Pango::AttrList)

#get_vector_string(column) ⇒ String

Parameters:

  • column (Integer)

Returns:

  • (String)

#get_vector_value(column) ⇒ Float

Parameters:

  • column (Integer)

Returns:

  • (Float)

#has_value ⇒ Boolean

Returns:

  • (Boolean)

#is_decreasing ⇒ Boolean

Returns:

  • (Boolean)

#is_increasing ⇒ Boolean

Returns:

  • (Boolean)

#is_valid ⇒ Boolean

Returns:

  • (Boolean)

#is_varying_uniformly ⇒ Boolean

Returns:

  • (Boolean)

#n_dimensions ⇒ Integer

Returns:

  • (Integer)

#n_values ⇒ Integer

Returns:

  • (Integer)

#preferred_fmt ⇒ GOffice::Format

Caller is responsible for unrefing the result.

Returns:

  • (GOffice::Format) —

    the fmt preferred by the data

#scalar_markup ⇒ Pango::AttrList

Returns:

  • (Pango::AttrList)

#scalar_string ⇒ String

Returns:

  • (String)

#scalar_value ⇒ Float

Returns:

  • (Float)

#serialize(user) ⇒ String

NOTE : This is the source not the content. (I.e., this refers to the
expression, not its current value.)

Parameters:

  • user (GObject) —

    a gpointer describing the context.

Returns:

  • (String) —

    a string representation of the data source that the caller is
    responsible for freeing

#unserialize(str, user) ⇒ Boolean

De-serializes the source information returned from go_data_serialize.

Parameters:

  • str (String) —

    string to parse

  • user (GObject) —

    a gpointer describing the context.

Returns:

  • (Boolean) —

    false on error.

#values ⇒ Float

Returns:

  • (Float)

#vector_size ⇒ Integer

Returns:

  • (Integer)