| Top |
| GogAxisColorMap * | gog_axis_color_map_edit () |
| void | (*GogAxisColorMapHandler) () |
| gboolean | gog_axis_color_map_delete () |
| GogAxisColorMap * | gog_axis_color_map_dup () |
| void | gog_axis_color_map_foreach () |
| GogAxisColorMap * | gog_axis_color_map_from_colors () |
| GOColor | gog_axis_color_map_get_color () |
| GogAxisColorMap const * | gog_axis_color_map_get_from_id () |
| unsigned | gog_axis_color_map_get_max () |
| char const * | gog_axis_color_map_get_id () |
| char const * | gog_axis_color_map_get_name () |
| GoResourceType | gog_axis_color_map_get_resource_type () |
| GdkPixbuf * | gog_axis_color_map_get_snapshot () |
| void | gog_axis_color_map_to_cairo () |
Used to map color and pseudo-3d axes values to the actual color. The first
color maps 0 and the last a positive integer returned by
gog_axis_color_map_get_max(). For color axes, these integer values must
themselves be mapped to the minimum and maximum of the axis (unless the
axis is inverted). For pseudo-3d axes, successive colors are obtained for
integer values, cycling to the first color when the colors number is not
large enough.
GogAxisColorMap * gog_axis_color_map_edit (GogAxisColorMap *map,GOCmdContext *cc);
Opens a dialog to edit the color map. If map
is NULL, creates a new one
unless the user cancels the edition.
void (*GogAxisColorMapHandler) (GogAxisColorMap const *map,gpointer user_data);
Type of the callback to pass to gog_axis_color_map_foreach()
to iterate through color maps.
gboolean
gog_axis_color_map_delete (GogAxisColorMap *map);
Destroys the color map and remove it from the user directory and from the database.
GogAxisColorMap *
gog_axis_color_map_dup (GogAxisColorMap const *map);
Duplicates the color map.
void gog_axis_color_map_foreach (GogAxisColorMapHandler handler,gpointer user_data);
Executes handler
to each color map installed on the system or loaded from
a document.
GogAxisColorMap * gog_axis_color_map_from_colors (char const *name,unsigned nb,GOColor const *colors,GoResourceType type);
Creates a color map using colors
.
GOColor gog_axis_color_map_get_color (GogAxisColorMap const *map,double x);
Maps x
to a color.
GogAxisColorMap const *
gog_axis_color_map_get_from_id (char const *id);
Retrieves the color map whose identifier is id
.
unsigned
gog_axis_color_map_get_max (GogAxisColorMap const *map);
Retrieves the value corresponding to the last color in the map. The first always corresponds to 0.
char const *
gog_axis_color_map_get_id (GogAxisColorMap const *map);
Retrieves the color map name.
char const *
gog_axis_color_map_get_name (GogAxisColorMap const *map);
Retrieves the color map localized name.
GoResourceType
gog_axis_color_map_get_resource_type (GogAxisColorMap const *map);
Retrieves the resource type for map
.
GdkPixbuf * gog_axis_color_map_get_snapshot (GogAxisColorMap const *map,gboolean discrete,gboolean horizontal,unsigned width,unsigned height);
Builds a snapshot of the color map.
void gog_axis_color_map_to_cairo (GogAxisColorMap const *map,cairo_t *cr,unsigned discrete,gboolean horizontal,double width,double height);
When discrete
is larger than 1, it will be interpreted as the number of
major ticks used. The number of colors will then be discrete
− 1.
Draws a snapshot of the color map inside the rectangle.
“resource-type” property“resource-type” GoResourceType
The resource type for the color map.
Flags: Read / Write / Construct Only
Default value: GO_RESOURCE_INVALID