Annotation Items (annotationitem)
- class orangecanvas.canvas.items.annotationitem.Annotation[source]
Bases:
PyQt5.QtWidgets.QGraphicsWidgetBase class for annotations in the canvas scheme.
- class orangecanvas.canvas.items.annotationitem.TextAnnotation(parent: Optional[PyQt5.QtWidgets.QGraphicsItem] = None, **kwargs: Any)[source]
Bases:
orangecanvas.canvas.items.annotationitem.AnnotationText 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)
- class orangecanvas.canvas.items.annotationitem.ArrowAnnotation(parent: Optional[PyQt5.QtWidgets.QGraphicsItem] = None, line: Optional[PyQt5.QtCore.QLineF] = None, **kwargs: Any)[source]
Bases:
orangecanvas.canvas.items.annotationitem.Annotation- setAutoAdjustGeometry(autoAdjust: bool) None[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() bool[source]
Should the geometry of the item be adjusted automatically when setLine is called.
- setLine(line: PyQt5.QtCore.QLineF) None[source]
Set the arrow base line (a QLineF in object coordinates).