Class: GOffice::GraphRenderer
- Inherits:
-
Object
- Object
- GOffice::GraphRenderer
- Defined in:
- (unknown)
Instance Method Summary collapse
- #cairo_surface ⇒ cairo::Surface
- #draw_circle(x, y, r) ⇒ nil
- #draw_color_map(map, discrete, horizontal, rect) ⇒ nil
- #draw_data_label(elt, pos, anchor, legend_style) ⇒ nil
-
#draw_gostring(str, pos, anchor, justification, width) ⇒ nil
Have rend draw layout in the at pos.x,y anchored by the anchor corner.
-
#draw_grip(x, y) ⇒ nil
Draw a grip, used for moving/resizing of objects.
- #draw_marker(x, y) ⇒ nil
-
#draw_rectangle(rect) ⇒ nil
A utility routine to build a closed rectangle vpath.
- #draw_rotated_rectangle(rect, rotate_bg) ⇒ nil
- #draw_selection_rectangle(rectangle) ⇒ nil
- #draw_shape(path) ⇒ nil
-
#draw_text(text, pos, anchor, use_markup, justification, width) ⇒ nil
Have rend draw text in the at pos.x,y anchored by the anchor corner.
-
#export_image(format, output, x_dpi, y_dpi) ⇒ Boolean
Exports an image of graph in given format, writing results in a Gsf::Output stream.
- #fill_circle(x, y, r) ⇒ nil
- #fill_rectangle(rect) ⇒ nil
- #fill_serie(path, close_path) ⇒ nil
- #fill_shape(path) ⇒ nil
- #get_gostring_AABR(str, aabr, max_width) ⇒ nil
- #get_gostring_OBR(str, obr, max_width) ⇒ nil
- #get_text_AABR(text, use_markup, aabr, max_width) ⇒ nil
- #get_text_OBR(text, use_markup, obr, max_width) ⇒ nil
-
#hairline_width_pts ⇒ Float
The hairline width in pts.
-
#initialize(graph) ⇒ GOffice::GraphRenderer
constructor
A new Gog::Renderer which can render into a pixbuf, and sets graph as its model.
- #line_size(width) ⇒ Float
-
#model ⇒ GOffice::GraphGraph
Model.
- #model=(model) ⇒ GOffice::GraphGraph
-
#pixbuf ⇒ GdkPixbuf::Pixbuf
Current pixbuf buffer from a renderer that can render into a pixbuf.
-
#pop_clip ⇒ nil
End the current clipping.
- #pop_style ⇒ nil
- #pt2r(d) ⇒ Float
- #pt2r_x(d) ⇒ Float
- #pt2r_y(d) ⇒ Float
-
#push_clip(path) ⇒ nil
Defines the current clipping region.
-
#push_clip_rectangle(x, y, w, h) ⇒ nil
Defines a rectangular clipping region.
- #push_style(style) ⇒ nil
- #render_to_cairo(cairo, width, height) ⇒ Boolean
- #request_update ⇒ nil
- #scale ⇒ Float
- #stroke_circle(x, y, r) ⇒ nil
- #stroke_rectangle(rect) ⇒ nil
- #stroke_serie(path) ⇒ nil
- #stroke_shape(path) ⇒ nil
-
#update(w, h) ⇒ Boolean
Requests a renderer update, only useful for pixbuf based renderer.
-
#view ⇒ GOffice::GraphView
View.
- #view=(view) ⇒ GOffice::GraphView
Constructor Details
#initialize(graph) ⇒ GOffice::GraphRenderer
Returns a new Gog::Renderer which can render into a pixbuf, and sets graph as its model.
Instance Method Details
#cairo_surface ⇒ cairo::Surface
#draw_circle(x, y, r) ⇒ nil
#draw_color_map(map, discrete, horizontal, rect) ⇒ nil
#draw_data_label(elt, pos, anchor, legend_style) ⇒ nil
#draw_gostring(str, pos, anchor, justification, width) ⇒ nil
Have rend draw layout in the at pos.x,y anchored by the anchor corner. If pos.w or pos.h are >= 0 then clip the results to less than that size.
#draw_grip(x, y) ⇒ nil
Draw a grip, used for moving/resizing of objects.
#draw_marker(x, y) ⇒ nil
#draw_rectangle(rect) ⇒ nil
A utility routine to build a closed rectangle vpath.
#draw_rotated_rectangle(rect, rotate_bg) ⇒ nil
#draw_selection_rectangle(rectangle) ⇒ nil
#draw_shape(path) ⇒ nil
#draw_text(text, pos, anchor, use_markup, justification, width) ⇒ nil
Have rend draw text in the at pos.x,y anchored by the anchor corner. If pos.w or pos.h are >= 0 then clip the results to less than that size.
#export_image(format, output, x_dpi, y_dpi) ⇒ Boolean
Exports an image of graph in given format, writing results in a Gsf::Output stream. If export format type is a bitmap one, it computes image size with x_dpi, y_dpi and graph size (see gog_graph_get_size()).
#fill_circle(x, y, r) ⇒ nil
#fill_rectangle(rect) ⇒ nil
#fill_serie(path, close_path) ⇒ nil
#fill_shape(path) ⇒ nil
#get_gostring_AABR(str, aabr, max_width) ⇒ nil
#get_gostring_OBR(str, obr, max_width) ⇒ nil
#get_text_AABR(text, use_markup, aabr, max_width) ⇒ nil
#get_text_OBR(text, use_markup, obr, max_width) ⇒ nil
#hairline_width_pts ⇒ Float
Returns the hairline width in pts.
#line_size(width) ⇒ Float
#model ⇒ GOffice::GraphGraph
Returns model.
#model=(model) ⇒ GOffice::GraphGraph
#pixbuf ⇒ GdkPixbuf::Pixbuf
Returns current pixbuf buffer from a renderer that can render into a pixbuf. or nil on error.
#pop_clip ⇒ nil
End the current clipping.
#pop_style ⇒ nil
#pt2r(d) ⇒ Float
#pt2r_x(d) ⇒ Float
#pt2r_y(d) ⇒ Float
#push_clip(path) ⇒ nil
Defines the current clipping region.
#push_clip_rectangle(x, y, w, h) ⇒ nil
Defines a rectangular clipping region. For efficient screen rendering, this function takes care to round the coordinates.
#push_style(style) ⇒ nil
#render_to_cairo(cairo, width, height) ⇒ Boolean
#request_update ⇒ nil
#scale ⇒ Float
#stroke_circle(x, y, r) ⇒ nil
#stroke_rectangle(rect) ⇒ nil
#stroke_serie(path) ⇒ nil
#stroke_shape(path) ⇒ nil
#update(w, h) ⇒ Boolean
Requests a renderer update, only useful for pixbuf based renderer.
#view ⇒ GOffice::GraphView
Returns view.