Package pygtk_chart :: Module chart :: Class Title
[hide private]
[frames] | no frames]

Class Title

source code


The title of a chart. The title will be drawn centered at the top of the chart.

Instance Methods [hide private]
 
__init__(self, text=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
do_get_property(self, property) source code
 
do_set_property(self, property, value) source code
 
_do_draw(self, context, rect)
Do all the drawing stuff.
source code
 
set_color(self, color)
The set_color() method sets the color of the title text.
source code
 
get_color(self) source code
 
set_text(self, text)
Use the set_text() method to set the title of the chart.
source code
 
get_text(self) source code

Inherited from ChartObject: draw, get_antialias, get_visible, set_antialias, set_visible

Inherited from unreachable.GObject: __cmp__, __copy__, __deepcopy__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __getattribute__, __reduce__, __reduce_ex__, __str__

Class Variables [hide private]
  __gproperties__ = {"color":(gobject.TYPE_PYOBJECT, "title colo...
  __gtype__ = <GType pygtk_chart+chart+Title (167883624)>

Inherited from ChartObject: __gsignals__

Properties [hide private]

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, text=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

do_get_property(self, property)

source code 
Overrides: ChartObject.do_get_property

do_set_property(self, property, value)

source code 
Overrides: ChartObject.do_set_property

_do_draw(self, context, rect)

source code 

Do all the drawing stuff.

Parameters:
  • context (cairo.Context) - The context to draw on.
  • rect (gtk.gdk.Rectangle) - A rectangle representing the charts area.
Overrides: ChartObject._do_draw

set_color(self, color)

source code 

The set_color() method sets the color of the title text.

Parameters:
  • color (a color) - The color of the title.

set_text(self, text)

source code 

Use the set_text() method to set the title of the chart.

Parameters:
  • text (string) - The title of the chart.

Class Variable Details [hide private]

__gproperties__

Value:
{"color":(gobject.TYPE_PYOBJECT, "title color", "The color of the titl\
e in (r,g,b) format. r,g,b in [0,1]", gobject.PARAM_READWRITE), "text"\
:(gobject.TYPE_STRING, "title text", "The text to show as the title.",\
 "", gobject.PARAM_READWRITE)}