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])deleteAllObjects
([redraw])deleteObject
(obj[, redraw])deleteObjectByTag
(tag[, redraw])deleteObjects
(objects[, redraw])deleteObjectsByTag
(tags[, 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])getObjectByTag
(tag)getObjectsByTagpfx
(tagpfx)getTagsByTagpfx
(tagpfx)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)lowerObjectByTag
(tag[, belowThis, redraw])lower_object_by_tag
(tag[, belowThis, redraw])raiseObjectByTag
(tag[, aboveThis, 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
-
deleteAllObjects
(redraw=True)¶
-
deleteObject
(obj, redraw=True)¶
-
deleteObjectByTag
(tag, redraw=True)¶
-
deleteObjects
(objects, redraw=True)¶
-
deleteObjectsByTag
(tags, redraw=True)¶
-
getObjectByTag
(tag)¶
-
getObjectsByTagpfx
(tagpfx)¶
-
getTagsByTagpfx
(tagpfx)¶
-
lowerObjectByTag
(tag, belowThis=None, redraw=True)¶
-
raiseObjectByTag
(tag, aboveThis=None, redraw=True)¶
-