CanvasMixin

class ginga.canvas.CanvasMixin.CanvasMixin[source]

Bases: object

A CanvasMixin is combined with the CompoundMixin to make a tag-addressible canvas-like interface. This mixin should precede the CompoundMixin in the inheritance (and so, method resolution) order.

Methods Summary

add(obj[, tag, tagpfx, belowThis, redraw])

delete_all_objects([redraw])

delete_object(obj[, redraw])

delete_object_by_tag(tag[, redraw])

delete_objects(objects[, redraw])

delete_objects_by_tag(tags[, redraw])

get_object_by_tag(tag)

get_objects_by_tag_pfx(tagpfx)

get_tags()

get_tags_by_tag_pfx(tagpfx)

has_tag(tag)

lookup_object_tag(obj)

lower_object_by_tag(tag[, belowThis, redraw])

raise_object_by_tag(tag[, aboveThis, redraw])

redraw([whence])

subcanvas_updated_cb(canvas, whence)

This is a notification that a subcanvas (a canvas contained in our canvas) has been modified.

update_canvas([whence])

Methods Documentation

add(obj, tag=None, tagpfx=None, belowThis=None, redraw=True)[source]
delete_all_objects(redraw=True)[source]
delete_object(obj, redraw=True)[source]
delete_object_by_tag(tag, redraw=True)[source]
delete_objects(objects, redraw=True)[source]
delete_objects_by_tag(tags, redraw=True)[source]
get_object_by_tag(tag)[source]
get_objects_by_tag_pfx(tagpfx)[source]
get_tags()[source]
get_tags_by_tag_pfx(tagpfx)[source]
has_tag(tag)[source]
lookup_object_tag(obj)[source]
lower_object_by_tag(tag, belowThis=None, redraw=True)[source]
raise_object_by_tag(tag, aboveThis=None, redraw=True)[source]
redraw(whence=3)[source]
subcanvas_updated_cb(canvas, whence)[source]

This is a notification that a subcanvas (a canvas contained in our canvas) has been modified. We in turn signal that our canvas has been modified.

update_canvas(whence=3)[source]