Annotation Items (annotationitem
)¶
-
class
orangecanvas.canvas.items.annotationitem.
Annotation
(parent=None, **kwargs)[source]¶ Bases:
PyQt5.QtWidgets.QGraphicsWidget
Base class for annotations in the canvas scheme.
-
class
orangecanvas.canvas.items.annotationitem.
TextAnnotation
(parent=None, **kwargs)[source]¶ Bases:
orangecanvas.canvas.items.annotationitem.Annotation
Text annotation item for the canvas scheme.
Text interaction (if enabled) is started by double clicking the item.
-
editingFinished
¶ Emitted when the editing is finished (i.e. the item loses edit focus).
-
textEdited
¶ Emitted when the text content changes on user interaction.
-
contentChanged
¶ Emitted when the text annotation’s contents change (content or contentType changed)
-
ContentRenderer
= {'text/html': <function render_html at 0x12d3031e0>, 'text/markdown': <function render_markdown at 0x12d303268>, 'text/plain': <function render_plain at 0x12d2f0b70>, 'text/rst': <function render_rst at 0x12d3032f0>}¶ Mapping of supported content types to corresponding content -> html transformer.
-
-
class
orangecanvas.canvas.items.annotationitem.
ArrowAnnotation
(parent=None, line=None, **kwargs)[source]¶ Bases:
orangecanvas.canvas.items.annotationitem.Annotation
-
setAutoAdjustGeometry
(autoAdjust)[source]¶ If set to True then the geometry will be adjusted whenever the arrow is changed with setLine. Otherwise the geometry of the item is only updated so the line lies within the geometry() rect (i.e. it only grows). True by default
-
autoAdjustGeometry
()[source]¶ Should the geometry of the item be adjusted automatically when setLine is called.
-