ConnectorLabelingCapability class final
What labels a connector type allows, and how they are sized and styled.
Up to maximumLabels labels (at most three) may be attached. The remaining fields set label typography, default and minimum size, and whether a label can be edited, moved, resized or deleted.
Constructors
- ConnectorLabelingCapability({int maximumLabels = 3, double endInset = .15, DiagramAppearanceEditing appearanceEditing = const DiagramAppearanceEditing(), DiagramTextFontSizeRange fontSizeRange = const DiagramTextFontSizeRange(), double defaultFontSize = diagramDefaultConnectorLabelFontSize, String defaultFontFamily = 'sans-serif', DiagramSize defaultSize = const DiagramSize(120, 32), DiagramSize minimumSize = const DiagramSize(24, 16), bool textEditable = true, bool movable = true, bool resizable = false, DiagramTextDefinition textType = const PlainTextDefinition(), bool deletable = true})
-
const
Properties
- appearanceEditing → DiagramAppearanceEditing
-
final
- defaultFontFamily → String
-
Independent label typography; explicit text-run fonts still take priority.
final
- defaultFontSize → double
-
final
- defaultSize → DiagramSize
-
final
- deletable → bool
-
final
- endInset → double
-
Fraction of the route reserved before an end label (0 through less than .5).
final
- fontSizeRange → DiagramTextFontSizeRange
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maximumLabels → int
-
final
- minimumSize → DiagramSize
-
final
- movable → bool
-
final
- resizable → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textEditable → bool
-
final
- textType → DiagramTextDefinition
-
The text filling every label.
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
-
validate(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited