Module gwy :: Class GraphLabel
[hide private]
[frames] | no frames]

Class GraphLabel

source code

Instance Methods [hide private]
 
__init__()
Creates a new graph label.
source code
 
set_model(gmodel)
Sets new model of a graph label.
source code
 
get_model()
Gets the model of a graph key.
source code
 
enable_user_input(enable)
Enables or disables user input to a graph label.
source code
 
draw_on_drawable(drawable, gc, layout, x, y, width, height)
draws a graph label on a drawable
source code
 
export_vector(x, y, width, height, fontsize)
Creates PostScript representation of a graph label.
source code
Method Details [hide private]

__init__()
(Constructor)

source code 

Creates a new graph label.

Returns:
A new graph label widget as a GtkWidget. (gtk.Widget)

set_model(gmodel)

source code 

Sets new model of a graph label.

Parameters:

get_model()

source code 

Gets the model of a graph key.

Returns:
The graph model this graph label takes curve properties and descriptions from. (GraphModel)

enable_user_input(enable)

source code 

Enables or disables user input to a graph label.

Parameters:
  • enable - Whether to enable the user input. (bool)

draw_on_drawable(drawable, gc, layout, x, y, width, height)

source code 

draws a graph label on a drawable

Parameters:
  • drawable - the GdkDrawable (gdk.Drawable)
  • gc - Graphics context. It is modified by this function unpredictably. (gdk.GC)
  • layout - pango layout (PangoLayout*)
  • x - x position where label is to be drawn (int)
  • y - y position where label is to be drawn (int)
  • width - width of the label (int)
  • height - hieght of the label (int)

export_vector(x, y, width, height, fontsize)

source code 

Creates PostScript representation of a graph label.

Parameters:
  • x - x position of the graph label (int)
  • y - y position of the graph label (int)
  • width - width of the graph label (int)
  • height - hieght of the graph label (int)
  • fontsize - fontsize of the label (int)
Returns:
A fragment of PostScript code representing the the graph label as a newly allocated GString. (string)