Annotation Items (annotationitem
)
- class orangecanvas.canvas.items.annotationitem.Annotation[source]
Bases:
QGraphicsWidget
Base class for annotations in the canvas scheme.
- class orangecanvas.canvas.items.annotationitem.TextAnnotation(parent: QGraphicsItem | None = None, **kwargs: Any)[source]
Bases:
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)
- class orangecanvas.canvas.items.annotationitem.ArrowAnnotation(parent: QGraphicsItem | None = None, line: QLineF | None = None, **kwargs: Any)[source]
Bases:
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.