Package pygtk_chart :: Module line_chart :: Class YAxis
[hide private]
[frames] | no frames]

Class YAxis

source code


This class represents the yaxis. It is used by the LineChart widget internally, there is no need to create an instance yourself.

Instance Methods [hide private]
 
__init__(self, range_calc)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
draw(self, context, rect, xaxis)
This method is called by the parent Plot instance.
source code
 
_do_draw_tics(self, context, rect, xaxis) source code
 
_do_draw_label(self, context, rect, pos) source code
 
_do_draw(self, context, rect, xaxis)
A derived class should override this method.
source code

Inherited from Axis: do_get_property, do_set_property, get_label, get_position, get_show_label, get_show_tic_labels, get_show_tics, get_tic_format_function, set_label, set_position, set_show_label, set_show_tic_labels, set_show_tics, set_tic_format_function

Inherited from chart.ChartObject: 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]

Inherited from Axis: __gproperties__, __gtype__

Inherited from chart.ChartObject: __gsignals__

Properties [hide private]

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, range_calc)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

draw(self, context, rect, xaxis)

source code 

This method is called by the parent Plot instance. It calls _do_draw.

Parameters:
  • context - The context to draw on.
  • rect - A rectangle representing the charts area.
Overrides: chart.ChartObject.draw

_do_draw(self, context, rect, xaxis)

source code 

A derived class should override this method. The drawing stuff should happen here.

Parameters:
  • context - The context to draw on.
  • rect - A rectangle representing the charts area.
Overrides: chart.ChartObject._do_draw
(inherited documentation)