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 |
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 |
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.
|
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 |
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.
|
protected void |
NodeSnapResultProvider.collectSnapResults(CollectSnapResultsEventArgs args,
OrthogonalSnapLine snapLine,
RectD suggestedLayout,
INode node)
Verifies whether the node will snap to the given snap line.
|
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. |
void |
LabelSnapContextHelper.collectSnapResults(LabelSnapContext context,
CollectSnapResultsEventArgs args,
IOrientedRectangle suggestedLayout,
ILabel label) |
void |
ILabelSnapContextHelper.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 . |
protected void |
PortLocationModelParameterHandle.collectSnapResults(Object source,
CollectSnapResultsEventArgs args)
Called during the drag to collect snap results.
|
protected void |
NodeDropInputMode.collectSnapResults(Object source,
CollectSnapResultsEventArgs args) |
protected void |
ItemDropInputMode.collectSnapResults(Object source,
CollectSnapResultsEventArgs args)
Callback registered on the
SnapContext that collects
SnapResult s for the dragged element. |
protected void |
SnapContext.onCollectSnapResults(CollectSnapResultsEventArgs args)
Raises the
CollectSnapResults event. |
Modifier and Type | Method and Description |
---|---|
void |
SnapContext.addCollectSnapResultsListener(IEventHandler<CollectSnapResultsEventArgs> collectSnapResultsEvent)
Adds the given listener for the
CollectSnapResults event that occurs while moving
items and handles. |
void |
SnapContext.removeCollectSnapResultsListener(IEventHandler<CollectSnapResultsEventArgs> collectSnapResultsEvent)
Removes the given listener for the
CollectSnapResults event that occurs while moving
items and handles. |