Package | Description |
---|---|
com.yworks.yfiles.view.input |
Contains definitions, default implementations, and support classes that deal with the user interaction in a
CanvasControl in general, as well as specialized utility classes and IInputMode implementations that can be used to work with and edit IGraph instances in a GraphControl . |
Modifier and Type | Class and Description |
---|---|
class |
EdgeSegmentSnapLine
A specialized
SnapLine that is parallel to an edge segment and stores that edge. |
class |
NodeBasedSnapLine
A specialized
OrthogonalSnapLine that stores a Node as additional information that can be
used for the visualization. |
class |
NodePairBasedSnapLine
A specialized
OrthogonalSnapLine that stores two nodes as additional information that can be used
for the visualization. |
class |
OrthogonalSnapLine
An orthogonal snap line, in other words, one that is parallel to the x or y axis.
|
class |
PointBasedSnapLine
A specialized
OrthogonalSnapLine that stores a Point instance as additional information that
can be used for the visualization. |
Modifier and Type | Method and Description |
---|---|
IEnumerable<SnapLine> |
LabelSnapContext.getSnapLines()
The collection of the
snap lines that have been added to this context. |
protected IEnumerable<SnapLine> |
NodeReshapeSnapResultProvider.getSnapLines(GraphSnapContext context,
INode node,
ReshapeRectangleContext reshapeContext,
RectD suggestedLayout)
Helper method for method
NodeReshapeSnapResultProvider.collectSnapLineResults(GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext, RectD)
that gets all the SnapLine that should be checked for the currently moved node. |
Modifier and Type | Method and Description |
---|---|
void |
LabelSnapContext.addSnapLine(SnapLine snapLine)
Adds the given
snapLine to the snap line collection of this context. |
static SnapResult |
SnapResult.createLabelSnapResult(ILabelModelParameter layoutParameter,
double weight,
PointD delta,
Object tag,
SnapLine snapLine,
PointD snappedCoordinates,
Object movedObject)
|
static SnapResult |
SnapResult.createSnapLineSnapResult(double weight,
PointD delta,
Object tag,
SnapLine snapLine,
PointD snappedLocation,
Object movedObject)
Factory method that creates a
SnapResult which represents a SnapLine to which the current moved item
will potentially snap. |
Constructor and Description |
---|
CollectLabelSnapLineEventArgs(IInputModeContext context,
Collection<SnapLine> snapLines)
Creates a new instance of this class.
|