public interface ILabelSnapContextHelper
LabelSnapContext
during dragging of labels.Modifier and Type | Method and Description |
---|---|
void |
addSnapLines(LabelSnapContext snapContext,
IInputModeContext inputModeContext,
ILabel label)
Called during
initialization of a label
dragging to add snap lines to which the label can potentially snap to the
snapContext . |
void |
collectSnapResults(LabelSnapContext context,
CollectSnapResultsEventArgs args,
IOrientedRectangle suggestedLayout,
ILabel label)
Called while the given
label is dragged
to add snap results for the snap lines
provided by the context . |
void addSnapLines(LabelSnapContext snapContext, IInputModeContext inputModeContext, ILabel label)
initialization
of a label
dragging to add snap lines
to which the label can potentially snap to the
snapContext
.snapContext
- The snap context which manages the snap lines and the settings. Note that implementations should not change the state of
the context explicitly.inputModeContext
- The context of the input mode that handles the dragging.label
- The label that is dragged.void collectSnapResults(LabelSnapContext context, CollectSnapResultsEventArgs args, IOrientedRectangle suggestedLayout, ILabel label)
label
is dragged
to add snap results
for the snap lines
provided by the context
.context
- The snap context which manages the snap lines and the settings.args
- The event argument to obtain the necessary information from and
add results to
.suggestedLayout
- The layout
of the label that would be used without snapping.label
- The label that is dragged.