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 | Method and Description |
---|---|
protected void |
NodeSnapLineProvider.addCenterSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that is called by
NodeSnapLineProvider.addSnapLines(GraphSnapContext, CollectGraphSnapLinesEventArgs, IModelItem)
the collect snap lines for the centers of the node. |
protected void |
NodeSnapLineProvider.addFixedNodeBorderSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that adds the fixed snap lines around the border of the nodes'
layout . |
protected void |
NodeReshapeSnapResultProvider.addGridLineSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
SnapLineSnapTypes snapLineType,
IPoint snapLineLocation,
double delta,
PointD snappedLocation,
double from,
double to,
PointD snapLinePoint)
Adds a snap result for a location that snaps to a grid line.
|
protected void |
NodeReshapeSnapResultProvider.addGridSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
IGridConstraintProvider<INode> provider,
PointD gridSnappedPoint,
PointD snappedLocation)
Adds a snap result for a location that snaps to the grid.
|
protected void |
NodeSnapResultProvider.addGridSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD location,
INode node)
Calculates a
SnapResult and adds it to the
argument. |
protected void |
NodeSnapResultProvider.addGridSnapResultCore(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD location,
INode node,
GridSnapTypes gridSnapType,
SnapPolicy xSnapPolicy,
SnapPolicy ySnapPolicy)
Calculates a
SnapResult and adds it to the
argument. |
protected void |
EdgeSnapLineProvider.addHorizontalSegmentSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
IEdge edge,
PointD segmentStart,
PointD segmentEnd)
Adds horizontal snap lines for a horizontally oriented fixed segment snap lines.
|
protected void |
NodeSnapLineProvider.addNodeToNodeSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that adds the fixed snap lines around the node for other nodes to snap to using the
NodeToNodeDistance . |
protected void |
NodeSnapLineProvider.addNodeToSegmentSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that adds the fixed snap lines around the node for edge segments to snap to.
|
protected void |
NodeSnapLineProvider.addPortSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that is called by
NodeSnapLineProvider.addSnapLines(GraphSnapContext, CollectGraphSnapLinesEventArgs, IModelItem)
the collect snap lines to snap ports to at the provided node. |
protected void |
NodeReshapeSnapResultProvider.addSameSizeSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
SnapLineOrientation orientation,
Iterable<RectD> rectangles,
double finalSize,
double snapDelta)
Adds a snap result for "same size" to the collect event argument.
|
void |
NodeSnapLineProvider.addSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
IModelItem item)
Called by the
GraphSnapContext when a drag
is about to start. |
void |
ISnapLineProvider.addSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
IModelItem item)
Called by the
GraphSnapContext when a drag
is about to start. |
void |
EdgeSnapLineProvider.addSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
IModelItem item)
Adds the snap lines for the given model item to the
args . |
protected void |
NodeReshapeSnapResultProvider.addSnaplineSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
OrthogonalSnapLine snapLine,
double delta,
PointD snapPoint)
Adds a snap result for a location that snaps the node's bounds to a snap line.
|
protected void |
EdgeSnapLineProvider.addVerticalSegmentSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
IEdge edge,
PointD segmentStart,
PointD segmentEnd)
Adds vertical snap lines for a vertically oriented fixed segment snap lines.
|
protected void |
NodeReshapeSnapResultProvider.collectGridSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
ReshapeRectangleContext reshapeContext,
RectD suggestedLayout)
Collects the snap results for the grid.
|
protected void |
NodeSnapResultProvider.collectGridSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
RectD suggestedLayout,
INode node)
Collects snap results that snap the node to a grid and
adds them
to the argument. |
protected void |
NodeReshapeSnapResultProvider.collectSameSizeSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
ReshapeRectangleContext reshapeContext,
RectD suggestedLayout)
Collects the snap results that make the node the same size as other elements.
|
protected void |
NodeReshapeSnapResultProvider.collectSnapLineResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
ReshapeRectangleContext reshapeContext,
RectD suggestedLayout)
Collects the snap results that makes the node's bounds snap to the
fixed node snap lines . |
protected void |
NodeSnapResultProvider.collectSnapLineSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
RectD suggestedLayout,
INode node)
Collects the results for the given layout for all snap lines in question.
|
void |
IEdgeSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
IListEnumerable<MovementInfo> movementInfos,
IEdge edge)
Called to during the snapping operation whenever
snap results are collected . |
void |
NodeReshapeSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
ReshapeRectangleContext reshapeContext)
Called when a node is
dragged
to add SnapResult s for
OrthogonalSnapLine s or sizes to which this node can potentially snap during resizing. |
void |
INodeReshapeSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
ReshapeRectangleContext reshapeContext)
Called when a node's handle is
dragged
to add SnapResult s for
OrthogonalSnapLine s or sizes to which this node can potentially snap during
resizing. |
void |
IBendSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD suggestedLocation,
IBend bend)
Called when a node is
dragged
to add SnapResult s for
OrthogonalSnapLine s to which this bend can potentially snap. |
void |
IPortSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD suggestedLocation,
IPort port)
Called when a node is
dragged
to add SnapResult s for
OrthogonalSnapLine s to which this bend can potentially snap. |
void |
NodeSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
RectD suggestedLayout,
INode node) |
void |
INodeSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
RectD suggestedLayout,
INode node)
Called when a node is
dragged
to add SnapResult s for
OrthogonalSnapLine s to which this node can potentially snap. |
protected OrthogonalSnapLine |
NodeSnapLineProvider.createCenterSnapLine(GraphSnapContext context,
INode node,
SnapLineOrientation orientation,
PointD location)
Convenience method that creates a snap line for the center of nodes.
|
protected IEnumerable<OrthogonalSnapLine> |
CreateEdgeInputMode.getDummyEdgeSnapLines(GraphSnapContext context,
ISnapLineProvider provider)
Gets the snap lines lines that are induced by the current dummy edge.
|
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. |