Class: QgsAnnotationItemAbstractMetadata¶
- class qgis.core.QgsAnnotationItemAbstractMetadata¶
Bases:
sip.wrapper
Stores metadata about one annotation item class.
A companion class,
QgsAnnotationItemAbstractGuiMetadata
, handles the GUI behavior ofQgsAnnotationItems
.Note
In C++ you can use
QgsAnnotationItemMetadata
convenience class.New in version 3.16.
QgsAnnotationItemAbstractMetadata(type: str, visibleName: str, visiblePluralName: str = ‘’) Constructor for
QgsAnnotationItemAbstractMetadata
with the specified classtype
andvisibleName
.The optional
visiblePluralName
argument can be used to specify a plural variant of the item type.QgsAnnotationItemAbstractMetadata(
QgsAnnotationItemAbstractMetadata
)Methods
Creates a new, default, annotation item of this class.
Returns the unique item type string for the annotation item class.
Returns a translated, user visible name for the annotation item class.
Returns a translated, user visible name for plurals of the annotation item class (e.g. "Labels" for a "Label" item).
- createItem(self) QgsAnnotationItem ¶
Creates a new, default, annotation item of this class.
- Return type:
- type(self) str ¶
Returns the unique item type string for the annotation item class.
- Return type:
str
- visibleName(self) str ¶
Returns a translated, user visible name for the annotation item class.
See also
- Return type:
str
- visiblePluralName(self) str ¶
Returns a translated, user visible name for plurals of the annotation item class (e.g. “Labels” for a “Label” item).
- Return type:
str