Skip to content

label

Model definition for Label.

CLASS DESCRIPTION
Label

A label is a node owned by another element that depicts an aspect of that element within its own separate bounds.

Classes

Label dataclass

Label(*, id: Optional[str] = None, bounds: Optional[Bounds] = None)

Bases: Node

A label is a node owned by another element that depicts an aspect of that element within its own separate bounds.

ATTRIBUTE DESCRIPTION
bounds

The bounds (x, y, width, and height) of the label relative to the origin of a containing plane.

TYPE: Optional[Bounds]

Attributes

bounds class-attribute instance-attribute
bounds: Optional[Bounds] = field(
    default=None,
    metadata={
        "name": "Bounds",
        "type": "Element",
        "namespace": "http://www.omg.org/spec/DD/20100524/DC",
    },
)

The bounds (x, y, width, and height) of the label relative to the origin of a containing plane.

Functions