Class: GOffice::GraphAxisColorMap
- Inherits:
-
Object
- Object
- GOffice::GraphAxisColorMap
- Defined in:
- (unknown)
Class Method Summary collapse
-
.foreach(handler, user_data) ⇒ nil
Executes handler to each color map installed on the system or loaded from a document.
-
.from_colors(name, nb, colors, type) ⇒ GOffice::GraphAxisColorMap
Creates a color map using colors.
-
.get_from_id(id) ⇒ GOffice::GraphAxisColorMap
Retrieves the color map whose identifier is id.
Instance Method Summary collapse
-
#delete ⇒ Boolean
Destroys the color map and remove it from the user directory and from the database.
-
#dup ⇒ GOffice::GraphAxisColorMap
Duplicates the color map.
-
#edit(cc) ⇒ GOffice::GraphAxisColorMap
Opens a dialog to edit the color map.
-
#get_color(x) ⇒ GOffice::Color
Maps x to a color.
-
#get_snapshot(discrete, horizontal, width, height) ⇒ GdkPixbuf::Pixbuf
Builds a snapshot of the color map.
-
#id ⇒ String
Retrieves the color map name.
-
#max ⇒ Integer
Retrieves the value corresponding to the last color in the map.
-
#name ⇒ String
Retrieves the color map localized name.
-
#resource_type ⇒ GOffice::ResourceType
Resource-type.
- #resource_type=(resource_type) ⇒ GOffice::ResourceType
-
#to_cairo(cr, discrete, horizontal, width, height) ⇒ nil
When discrete is larger than 1, it will be interpreted as the number of major ticks used.
Class Method Details
.foreach(handler, user_data) ⇒ nil
Executes handler to each color map installed on the system or loaded from a document.
.from_colors(name, nb, colors, type) ⇒ GOffice::GraphAxisColorMap
Creates a color map using colors.
.get_from_id(id) ⇒ GOffice::GraphAxisColorMap
Retrieves the color map whose identifier is id.
Instance Method Details
#delete ⇒ Boolean
Destroys the color map and remove it from the user directory and from the database.
#dup ⇒ GOffice::GraphAxisColorMap
Duplicates the color map.
#edit(cc) ⇒ GOffice::GraphAxisColorMap
Opens a dialog to edit the color map. If map is nil, creates a new one unless the user cancels the edition.
#get_color(x) ⇒ GOffice::Color
Maps x to a color.
#get_snapshot(discrete, horizontal, width, height) ⇒ GdkPixbuf::Pixbuf
Builds a snapshot of the color map.
#id ⇒ String
Retrieves the color map name.
#max ⇒ Integer
Retrieves the value corresponding to the last color in the map. The first always corresponds to 0.
#name ⇒ String
Retrieves the color map localized name.
#resource_type ⇒ GOffice::ResourceType
Returns resource-type.
#resource_type=(resource_type) ⇒ GOffice::ResourceType
#to_cairo(cr, discrete, horizontal, width, height) ⇒ nil
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.