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

Class ChartObject

source code


This is the base class for all things that can be drawn in a chart, e.g. title, axes, graphs,...

Instance Methods [hide private]
 
__init__(self)
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)
A derived class should override this method.
source code
 
draw(self, context, rect)
This method is called by the parent Chart instance.
source code
 
set_antialias(self, antialias)
This method sets the antialiasing mode of the ChartObject.
source code
 
get_antialias(self) source code
 
set_visible(self, visible)
Use this method to set whether the ChartObject should be visible or not.
source code
 
get_visible(self) source code

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]
  __gsignals__ = {"appearance-changed":(gobject.SIGNAL_RUN_LAST,...
  __gproperties__ = {"visible":(gobject.TYPE_BOOLEAN, "visibilty...
  __gtype__ = <GType pygtk_chart+chart+ChartObject (167879112)>
Properties [hide private]

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

_do_draw(self, context, rect)

source code 

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

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

draw(self, context, rect)

source code 

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

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

set_antialias(self, antialias)

source code 

This method sets the antialiasing mode of the ChartObject. Antialiasing is enabled by default.

Parameters:
  • antialias (boolean) - If False, antialiasing is disabled for this ChartObject.

set_visible(self, visible)

source code 

Use this method to set whether the ChartObject should be visible or not.

Parameters:
  • visible (boolean) - If False, the PlotObject won't be drawn.

Class Variable Details [hide private]

__gsignals__

Value:
{"appearance-changed":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, [])\
}

__gproperties__

Value:
{"visible":(gobject.TYPE_BOOLEAN, "visibilty of the object", "Set whet\
her to draw the object or not.", True, gobject.PARAM_READWRITE), "anti\
alias":(gobject.TYPE_BOOLEAN, "use antialiasing", "Set whether to use \
antialiasing when drawing the object.", True, gobject.PARAM_READWRITE)\
}