An IEditLabelHelper implementation which provides a number of methods which can be overridden to change the default behavior.
Remarks
Type Details
- yfiles module
- view-editor
- yfiles-umd modules
- view-editor, view-table, view
- Legacy UMD name
- yfiles.input.EditLabelHelper
Properties
Gets or sets the graph instance to retrieve the default values from.
Remarks
Methods
Determines the label model parameter to use for the label, depending on the owner
.
Remarks
owner
.Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The input mode context.
- owner - ILabelOwner
- The label's owner.
Returns
- ↪ILabelModelParameter
- The layout parameter to use or
null
.
Determines the style to use for the label, depending on the owner
.
Remarks
owner
.Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The input mode context.
- owner - ILabelOwner
- The label's owner.
Returns
- ↪ILabelStyle
- The style to use or
null
.
Gets the preferred size for the label.
Remarks
null
to indicate that the preferred size should be calculated after the text has been entered.Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The input mode context.
- label - ILabel
- The label to get the preferred size from.
Returns
- ↪Size
- The size to use or
null
.
Helper method that will be called for ILabelOwners.
Remarks
evt
and sets the handled property to true
. Label creation thus is always possible.Parameters
A map of options to pass to the method.
- evt - LabelEditingEventArgs
- The original event arguments.
See Also
Implements
Helper method that will be called for ILabelOwners.
Remarks
This method returns the first of the labels that belong to the owner, if set. Otherwise, it delegates to getLabelParameter, getLabelStyle, and getPreferredSize to set the appropriate properties on evt
.
The arguments are always set as handled, so label editing is always possible.
Parameters
A map of options to pass to the method.
- evt - LabelEditingEventArgs
- The original event arguments.