DiagramPropertyScope class final
What the inspector is editing: the selected elements, a connector label, the text being edited, the next shape of a creation tool, or the canvas.
A scope is a snapshot of one controller state. DiagramProperties.resolve turns it into fields; build a new scope after the controller changes.
Constructors
- DiagramPropertyScope(DiagramController controller, {DiagramSelection? selection, TextRun? typingStyle, DiagramTextSelectionFormatter? formatTextSelection})
-
Reads
selection, or the controller's current selection.factory
Properties
- controller → DiagramController
-
final
- creation → ShapeElement?
-
The appearance of the next shape of the active creation tool.
no setter
- document → DiagramDocument
-
no setter
-
elements
→ List<
DiagramElement> -
The selected elements; empty for the canvas, a label or a creation tool.
no setter
-
fonts
→ List<
DiagramFontFamily> -
The fonts text offers, from the diagram's configuration.
no setter
- formatTextSelection → DiagramTextSelectionFormatter?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLocked → bool
-
Whether the edited subject is locked, directly or by an owner.
no setter
- isOwnerLocked → bool
-
Whether the lock comes from an owner, so it cannot be changed here.
no setter
- label → ConnectorLabel?
-
The selected connector label and its connector.
no setter
- labelConnector → ConnectorElement?
-
no setter
- options → DiagramOptions
-
The installed extensions' options, the canvas bounds and the default
font family.
no setter
- registry → ShapeRegistry
-
no setter
- revision → int
-
The document revision the scope was read at.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scene → ResolvedScene
-
no setter
- selection → DiagramSelection
-
no setter
- text → DiagramTextSubject?
-
The text being formatted, when the selection has any.
no setter
- title → String
-
The inspector title: the element kind, a count, "Canvas" or a tool name.
no setter
- typingStyle → TextRun?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited