documentationfor yFiles for HTML 3.0.0.3

Usages of IPortCandidate

Properties

edgeCreatorin CreateEdgeInputModeGets or sets the ports-based edge creation callback.
endPortCandidatein CreateEdgeInputModeGets or sets the current candidate for the end point of the dragged edge to be created.
startPortCandidatein CreateEdgeInputModeGets or sets the candidate for the sourcePort of the edge to be created.
portCandidatein PortCandidateRenderTagGets the port candidate the renderer has to visualize.

Method Return Values

getEndPortCandidates (Point, boolean)in CreateEdgeInputModeRetrieves the end port candidates for a given location in world coordinates.
getStartPortCandidate (Point)in CreateEdgeInputModeFinds the best matching start port candidate based on the given location.
getStartPortCandidates (Point)in CreateEdgeInputModeGets the start port candidates for the given location.
resolveCandidates (IEnumerable<IPortCandidate>, Point)in CreateEdgeInputModeReturns an enumerable over the given candidates where no instance has DYNAMIC validity.
selectClosestCandidate (IEnumerable<IPortCandidate>, Point)in CreateEdgeInputModeFinds the closest VALID candidate given a number of IPortCandidates and a location in world coordinates.
selectClosestEndCandidate (IEnumerable<IPortCandidate>, Point)in CreateEdgeInputModeFinds the closest end candidate given a number of IPortCandidates and a location in world coordinates.
selectClosestStartCandidate (IEnumerable<IPortCandidate>, Point)in CreateEdgeInputModeFinds the closest candidate given a number of IPortCandidates and a location in world coordinates.
selectStartPortCandidate (IEnumerable<IPortCandidate>, Point, boolean)in CreateEdgeInputModeFinds the best matching start port IPortCandidate for the given candidates at the provided location.
getSourcePortCandidates (IInputModeContext)in IEdgeReconnectionPortCandidateProviderReturns all source port candidates that may be used for the edge.
getTargetPortCandidates (IInputModeContext)in IEdgeReconnectionPortCandidateProviderReturns all source port candidates that may be used for the edge.
getPortCandidateAt (IInputModeContext, Point)in IPortCandidateReturns a candidate that is derived from this instance that best fits the provided location.
getAllSourcePortCandidates (IInputModeContext)in IPortCandidateProviderReturns all source port candidates that belong to the context of this provider.
getAllTargetPortCandidates (IInputModeContext)in IPortCandidateProviderReturns all target port candidates that belong to the context of this provider.
getSourcePortCandidates (IInputModeContext, IPortCandidate)in IPortCandidateProviderReturns all port candidates that apply for the provided opposite port candidate.
getTargetPortCandidates (IInputModeContext, IPortCandidate)in IPortCandidateProviderReturns all port candidates that apply for the provided opposite port candidate.
getPortCandidateAt (IInputModeContext, Point)in PortCandidateReturns a candidate that is derived from this instance that best fits the provided location.
getAllSourcePortCandidates (IInputModeContext)in PortCandidateProviderBaseReturns all source port candidates that belong to the context of this provider.
getAllTargetPortCandidates (IInputModeContext)in PortCandidateProviderBaseReturns all target port candidates that belong to the context of this provider.
getPortCandidateAt (IInputModeContext, PortCandidate, Point)in PortCandidateProviderBaseCallback method used by the ports created using the factory methods createCandidate.
getPortCandidates (IInputModeContext)in PortCandidateProviderBaseCreates an enumeration of possibly port candidates.
getSourcePortCandidates (IInputModeContext, IPortCandidate)in PortCandidateProviderBaseReturns all port candidates that apply for the provided opposite port candidate.
getTargetPortCandidates (IInputModeContext, IPortCandidate)in PortCandidateProviderBaseReturns all port candidates that apply for the provided opposite port candidate.
createExistingPortCandidate (IPort)in PortRelocationHandleFactory method that creates the candidate for the existing port.
filterCandidates (IInputModeContext, Point, IEnumerable<IPortCandidate>)in PortRelocationHandleFilters the given allCandidates to return the subset of candidates which are relevant at the given location.
getClosestCandidate (IInputModeContext, Point, IEnumerable<IPortCandidate>)in PortRelocationHandleFinds the closest candidate from the given set of candidates.
getPortCandidates (IInputModeContext, IEdge, boolean)in PortRelocationHandleGets the possible candidates for the given edge.
getPortCandidatesDuringMove (IInputModeContext, IEdge, boolean)in PortRelocationHandleRetrieves the port candidates during handleMove.
resolveCandidate (IInputModeContext, IPortCandidate, Point)in PortRelocationHandleTries to resolve a dynamic port candidate for the given location.

Method Parameters

CreateEdgeInputMode ()in CreateEdgeInputModeCreates a new instance that will use the IGraph from the parentInputModeContext to create edges in.
createEdge (IGraph, IPortCandidate, IPortCandidate)in CreateEdgeInputModeCalled at the end of the edge creation process if both startPortCandidate and endPortCandidate have been set.
getEndPortCandidateProvider (IPortCandidate, Point)in CreateEdgeInputModeRetrieves the IPortCandidateProvider instance that provides the possible candidates for the end of the edge given the current start candidate.
getEndPortCandidateProvider (IPortCandidate, IPortOwner, Point)in CreateEdgeInputModeRetrieves the port candidate provider instance given a start port candidate and a possible ending item.
measureDistance (IPortCandidate, Point)in CreateEdgeInputModeMeasures the distance between a port candidate and a given location.
onEndPortCandidateChanged (InputModeItemEventArgs<IPortCandidate>)in CreateEdgeInputModeTriggers the end-port-candidate-changed event.
onStartPortCandidateChanged (InputModeItemEventArgs<IPortCandidate>)in CreateEdgeInputModeTriggers the start-port-candidate-changed event.
resolveCandidates (IEnumerable<IPortCandidate>, Point)in CreateEdgeInputModeReturns an enumerable over the given candidates where no instance has DYNAMIC validity.
selectClosestCandidate (IEnumerable<IPortCandidate>, Point)in CreateEdgeInputModeFinds the closest VALID candidate given a number of IPortCandidates and a location in world coordinates.
selectClosestEndCandidate (IEnumerable<IPortCandidate>, Point)in CreateEdgeInputModeFinds the closest end candidate given a number of IPortCandidates and a location in world coordinates.
selectClosestStartCandidate (IEnumerable<IPortCandidate>, Point)in CreateEdgeInputModeFinds the closest candidate given a number of IPortCandidates and a location in world coordinates.
selectStartPortCandidate (IEnumerable<IPortCandidate>, Point, boolean)in CreateEdgeInputModeFinds the best matching start port IPortCandidate for the given candidates at the provided location.
startEdgeCreation (IPortCandidate, IPoint?)in CreateEdgeInputModeSynthetically starts the interactive edge creation process using the provided IPortCandidate as the start port.
updateEndHighlight (IPortCandidate, IPortCandidate)in CreateEdgeInputModeDraws the highlight for the owner of the current endPortCandidate.
updatePreviewEdgeEndPort (IPortCandidate)in CreateEdgeInputModeUpdates the previewEdge to reflect the current end port candidate.
updatePreviewEdgeStartPort (IPortCandidate)in CreateEdgeInputModeUpdates the previewEdge to reflect the current start port candidate.
create ()in IPortCandidateProvider
fromCandidates (IPortCandidate)in IPortCandidateProviderCreates an implementation of an IPortCandidateProvider that provides only the given port candidates.
fromCandidates (IEnumerable<IPortCandidate>)in IPortCandidateProviderCreates an implementation of an IPortCandidateProvider that provides only the given port candidates.
getSourcePortCandidates (IInputModeContext, IPortCandidate)in IPortCandidateProviderReturns all port candidates that apply for the provided opposite port candidate.
getTargetPortCandidates (IInputModeContext, IPortCandidate)in IPortCandidateProviderReturns all port candidates that apply for the provided opposite port candidate.
addExistingPorts (IPortOwner, IList<IPortCandidate>)in PortCandidateProviderBaseAdds candidates for all existing ports of the owner to the provided list.
getSourcePortCandidates (IInputModeContext, IPortCandidate)in PortCandidateProviderBaseReturns all port candidates that apply for the provided opposite port candidate.
getTargetPortCandidates (IInputModeContext, IPortCandidate)in PortCandidateProviderBaseReturns all port candidates that apply for the provided opposite port candidate.
filterCandidates (IInputModeContext, Point, IEnumerable<IPortCandidate>)in PortRelocationHandleFilters the given allCandidates to return the subset of candidates which are relevant at the given location.
getClosestCandidate (IInputModeContext, Point, IEnumerable<IPortCandidate>)in PortRelocationHandleFinds the closest candidate from the given set of candidates.
getPort (IInputModeContext, IPortCandidate, Point)in PortRelocationHandleCalled during dragFinished to actually get the new port from the chosen candidate.
resolveCandidate (IInputModeContext, IPortCandidate, Point)in PortRelocationHandleTries to resolve a dynamic port candidate for the given location.
setClosestCandidate (IPortCandidate)in PortRelocationHandleUpdates the closest candidate for visual feedback.
setPort (IInputModeContext, IEdge, boolean, IPortCandidate, Point)in PortRelocationHandleTriggered by dragFinished to actually change the port.
setToPortCandidate (SimpleEdge, boolean, IPortCandidate)in PortRelocationHandleUpdates the preview edge's visual appearance to reflect the new port candidate.
updateHighlight (IPortCandidate, IPortCandidate)in PortRelocationHandleDraws the highlight for the owner of the current port candidate.

Implementing Types

PortCandidateAn IPortCandidate implementation which can be used for candidates at existing ports as well as for candidates at a given location.