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(self, obj[, tag, tagpfx, belowThis, redraw])

deleteAllObjects(self[, redraw])

deleteObject(self, obj[, redraw])

deleteObjectByTag(self, tag[, redraw])

deleteObjects(self, objects[, redraw])

deleteObjectsByTag(self, tags[, redraw])

delete_all_objects(self[, redraw])

delete_object(self, obj[, redraw])

delete_object_by_tag(self, tag[, redraw])

delete_objects(self, objects[, redraw])

delete_objects_by_tag(self, tags[, redraw])

getObjectByTag(self, tag)

getObjectsByTagpfx(self, tagpfx)

getTagsByTagpfx(self, tagpfx)

get_object_by_tag(self, tag)

get_objects_by_tag_pfx(self, tagpfx)

get_tags(self)

get_tags_by_tag_pfx(self, tagpfx)

has_tag(self, tag)

lookup_object_tag(self, obj)

lowerObjectByTag(self, tag[, belowThis, redraw])

lower_object_by_tag(self, tag[, belowThis, …])

raiseObjectByTag(self, tag[, aboveThis, redraw])

raise_object_by_tag(self, tag[, aboveThis, …])

redraw(self[, whence])

subcanvas_updated_cb(self, canvas, whence)

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

update_canvas(self[, whence])

Methods Documentation

add(self, obj, tag=None, tagpfx=None, belowThis=None, redraw=True)[source]
deleteAllObjects(self, redraw=True)
deleteObject(self, obj, redraw=True)
deleteObjectByTag(self, tag, redraw=True)
deleteObjects(self, objects, redraw=True)
deleteObjectsByTag(self, tags, redraw=True)
delete_all_objects(self, redraw=True)[source]
delete_object(self, obj, redraw=True)[source]
delete_object_by_tag(self, tag, redraw=True)[source]
delete_objects(self, objects, redraw=True)[source]
delete_objects_by_tag(self, tags, redraw=True)[source]
getObjectByTag(self, tag)
getObjectsByTagpfx(self, tagpfx)
getTagsByTagpfx(self, tagpfx)
get_object_by_tag(self, tag)[source]
get_objects_by_tag_pfx(self, tagpfx)[source]
get_tags(self)[source]
get_tags_by_tag_pfx(self, tagpfx)[source]
has_tag(self, tag)[source]
lookup_object_tag(self, obj)[source]
lowerObjectByTag(self, tag, belowThis=None, redraw=True)
lower_object_by_tag(self, tag, belowThis=None, redraw=True)[source]
raiseObjectByTag(self, tag, aboveThis=None, redraw=True)
raise_object_by_tag(self, tag, aboveThis=None, redraw=True)[source]
redraw(self, whence=3)[source]
subcanvas_updated_cb(self, 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(self, whence=3)[source]