documentationfor yFiles for HTML 3.0.0.3

Usages of IPort

Properties

sourcePortin EdgeEventArgsGets the source port the edge was connected to before the event happened.
targetPortin EdgeEventArgsGets the target port the edge was connected to before the event happened.
portsin FilteredGraphWrapper
portsin Graph
portsin GraphWrapperBase
sourcePortin IEdgeGets the source port instance this edge is connected to.
targetPortin IEdgeGets the target port instance this edge is connected to.
portsin IGraphGets a view of the ports contained in this graph.
portsin IPortOwnerGets a collection of ports that are owned by this instance.
clipboardHelperin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IClipboardHelper type for IPorts this instance has been created for.
edgePathCropperin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IEdgePathCropper type for IPorts this instance has been created for.
focusRendererin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IFocusRenderer<IPort> type for IPorts this instance has been created for.
handlein PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IHandle type for IPorts this instance has been created for.
handleProviderin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IHandleProvider type for IPorts this instance has been created for.
highlightRendererin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IHighlightRenderer<IPort> type for IPorts this instance has been created for.
lassoTestablein PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the ILassoTestable type for IPorts this instance has been created for.
marqueeTestablein PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IMarqueeTestable type for IPorts this instance has been created for.
mementoSupportin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IMementoSupport type for IPorts this instance has been created for.
obstacleProviderin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IObstacleProvider type for IPorts this instance has been created for.
positionHandlerin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IPositionHandler type for IPorts this instance has been created for.
selectionRendererin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the ISelectionRenderer<IPort> type for IPorts this instance has been created for.
snapReferenceProviderin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the ISnapReferenceProvider type for IPorts this instance has been created for.
snapResultProviderin PortDecoratorGets a LookupDecorator<TDecoratedType,TInterface> that decorates the IPortSnapResultProvider type for IPorts this instance has been created for.
portsin SimpleEdgeGets or sets the collection of ports that are owned by this instance.
sourcePortin SimpleEdgeGets or sets the source port instance this edge is connected to.
targetPortin SimpleEdgeGets or sets the target port instance this edge is connected to.
portsin SimpleNodeGets or sets the collection of ports that are owned by this instance.
previewEndNodePortin CreateEdgeInputModeThe IPort which is used as the end port for the temporarily created previewEdge during edge creation.
portGridConstraintProviderin GraphSnapContextGets or sets the grid constraint provider for the IPorts.
portin IPortCandidateGets the port instance that is already live in the graph if this candidate wraps an existing port or null otherwise.
portin PortCandidateGets the instance provided to the constructor or to the setter.
draggedItemin PortDropInputModeGets the currently dragged IModelItem instance.
isValidPortOwnerPredicatein PortDropInputModeGets or sets the callback for testing whether an existing port owner in the graph can be used as owner for the currently dragged port.
portin PortLocationModelParameterHandleGets the port this instance acts on.
portAdjustmentPoliciesin LayoutExecutorGets or sets the mapping from ports to a policy that specifies how port locations should be adjusted after a layout has been calculated.
portPlacementPoliciesin LayoutExecutorGets or sets a mapping that specifies how IPorts should be placed by the layout algorithm.
portAdjustmentPoliciesin LayoutExecutorAsyncGets or sets the mapping from ports to a policy that specifies how port locations should be adjusted after a layout has been calculated.
portEndParameterin LayoutExecutorAsyncGets a mapping from ports in the LayoutGraph to their new location parameters, after the results are in.
portPlacementPoliciesin LayoutExecutorAsyncGets or sets a mapping that specifies how IPorts should be placed by the layout algorithm.
portAdjustmentPoliciesin LayoutGraphAdapterGets or sets the mapping from ports to a policy that specifies how port locations should be adjusted after a layout has been calculated.
portPlacementPoliciesin LayoutGraphAdapterGets or sets a mapping that specifies how IPorts should be placed by the layout algorithm.
portManagerin GraphModelManagerProvides access to the ItemModelManager<T> which handles the IPorts.
portRendererin GraphModelManagerGets or sets the IObjectRenderer<IPort> instance used for installing an IPort into the canvas.
portsin IGraphSelectionGets an IObservableCollection<T> of the selected ports.

Fields

ORIGINAL_SOURCE_PORT_DATA_KEYin LayoutGraphAdapterA data provider key that can be used to look up the source port of the original IEdge of an LayoutEdge.
ORIGINAL_TARGET_PORT_DATA_KEYin LayoutGraphAdapterA data provider key that can be used to look up the target port of the original IEdge of an LayoutEdge.
DEFAULT_PORT_RENDERERin GraphModelManagerThe immutable instance of the default IObjectRenderer<IPort> for IPorts which simply defers to the port's IPortStyle.

Method Return Values

addPort (ClipboardOperationContext, IPortOwner, IPort)in ClipboardGraphCopierAdds a port to the targetOwner in the targetGraph as a copy of the sourcePort.
getIndependentPorts ()in ClipboardOperationContextGets the ports whose owners are not copied.
asPort ()in FoldingPortStateReturns an IPort instance which represents this port state.
addPort (IPortOwner, IPortLocationModelParameter?, IPortStyle?, IPort['tag']?)in GraphAdd a port to the given port owner using the coordinates as the new initial position of the port anchor.
getNewSourcePort (IPortOwner)in GraphDetermines a IPort instance to use for the creation of a new edge that starts at the given IPortOwner.
getNewTargetPort (IPortOwner)in GraphDetermines a IPort instance to use for the creation of a new edge that ends at the given IPortOwner.
getTargetPort (ClipboardOperationContext, IEdge, boolean)in GraphClipboardProvides an IPort where the given sourceEdge can be added to.
addPort (IGraph, IGraph, IPortOwner, IPort)in GraphCopierAdds a port to the targetOwner in the targetGraph as a copy of the sourcePort.
addPort (IPortOwner, IPortLocationModelParameter?, IPortStyle?, IPort['tag']?)in GraphWrapperBase
opposite (IPort)in IEdgeGets the opposite port of an IEdge.
addPort (IPortOwner, IPortLocationModelParameter?, IPortStyle?, IPort['tag']?)in IGraphAdd a port to the given port owner using the location model parameter, style, and tag.
addPortAt (IPortOwner, Point, IPortStyle?, IPort['tag']?)in IGraphAdd a port to the given port owner using the absolute coordinates as the new initial position of the port anchor.
addRelativePort (INode, Point)in IGraphAdds a new port to the graph at the node using a location that is relative to the center of the node.
getDecoratorFor (Constructor<TInterface>)in PortDecoratorCreates a LookupDecorator<TDecoratedType,TInterface> for IPorts that can be used to decorate TInterface types of the ports.
addPort (IParseContext, IPortOwner)in IGraphElementFactoryAdds a new port to the given IPortOwner.
resolvePort (IParseContext, string, string)in IGraphElementResolverResolve the GraphML id to an IPort instance.
createPort (IInputModeContext)in IPortCandidateIf the client decides to use this port candidate, this method will serve as a factory to create the instance.
getHitPort (IInputModeContext, Point)in IPortSelectionTesterReturns the port at the given world coordinate position or null if there is no such port.
getPortsInBox (IInputModeContext, Rect)in IPortSelectionTesterReturns the ports for the given marquee rectangle.
getPortsInPath (IInputModeContext, GeneralPath)in IPortSelectionTesterReturns the ports within the given lasso path.
createInstance (IInputModeContext, IGraph, IPortLocationModelParameter, IPortStyle, IPort['tag'])in PortCandidateActually creates the IPort instance.
createPort (IInputModeContext)in PortCandidateThis implementation will throw a NotSupportedError if the validity is DYNAMIC.
createInstance (IInputModeContext, PortCandidate)in PortCandidateProviderBaseCallback method used by the ports created using the factory methods createCandidate.
createPort (IInputModeContext, IGraph, IPort, IPortOwner, IPortLocationModelParameter)in PortDropInputModeCreates the port in the graph after it has been dropped.
getPort (IInputModeContext, IPortCandidate, Point)in PortRelocationHandleCalled during dragFinished to actually get the new port from the chosen candidate.
getOriginalPort (LayoutNode)in LayoutGraphAdapterReturns the original port that corresponds to the given temporary node.
getPort (IPort)in DelegatingPortStyleReturns the port used for rendering.
createPortModelManager (IObjectRenderer<IPort>, function(IPort):IRenderTreeGroup)in GraphModelManagerFactory method for creating the ItemModelManager<T> that handles the visual representation of ports.

Method Parameters

getContext (IPort)in BendAnchoredPortLocationModel
getLocation (IPort, IPortLocationModelParameter)in BendAnchoredPortLocationModel
addPort (ClipboardOperationContext, IPortOwner, IPort)in ClipboardGraphCopierAdds a port to the targetOwner in the targetGraph as a copy of the sourcePort.
copyPortLocationParameter (IGraph, IPort)in ClipboardGraphCopierCopies a IPortLocationModelParameter for a given port.
copyPortStyle (IGraph, IPort)in ClipboardGraphCopierCopies an IPortStyle instance.
copyPortTag (IPort, any)in ClipboardGraphCopierCopies the tag of an IPort.
createEdge (ClipboardOperationContext, IEdge, IPort, IPort)in ClipboardGraphCopierAdds an edge to the targetGraph as a copy of the sourceEdge.
onPortCopied (IPort, IPort)in ClipboardGraphCopierCalled after a port has been copied.
getContext (IPort)in CompositePortLocationModel
getLocation (IPort, IPortLocationModelParameter)in CompositePortLocationModel
EdgeEventArgs (IEdge, IPort?, IPort?, IPortOwner?, IPortOwner?)in EdgeEventArgsInitializes a new instance of the EdgeEventArgs class.
getContext (IPort)in EdgePathPortLocationModel
getLocation (IPort, IPortLocationModelParameter)in EdgePathPortLocationModel
getContext (IPort)in EdgeSegmentPortLocationModel
getLocation (IPort, IPortLocationModelParameter)in EdgeSegmentPortLocationModel
edgesAt (IPort, AdjacencyTypes?)in FilteredGraphWrapper
getFoldingPortState (IPort)in FolderNodeStateProvides access to the folding state of a master port.
initializeFoldingPortState (FoldingPortState, IPort)in FoldingPortDefaultsThis implementation initializes the immediate properties of the FoldingPortState.
initializeLabels (FoldingPortState, IPort)in FoldingPortDefaultsCallback that initializes the labels during initializeState.
initializeState (FoldingPortState, IEnumerable<IPort>)in FoldingPortDefaultsCalled by implementations of the IFolderNodeConverter and IFoldingEdgeConverter interfaces to initialize the state of a port in the folding view.
updateLabels (FoldingPortState, IPort)in FoldingPortDefaultsCallback that updates the labels during updateState.
updateMasterLabels (IGraph, FoldingPortState, IPort)in FoldingPortDefaultsUpdates the labels of the master ports to match the state of the folding variants.
updateMasterPort (IGraph, FoldingPortState, IPort)in FoldingPortDefaultsUpdates a single master port to match the state of the folding port.
updateState (FoldingPortState, IEnumerable<IPort>)in FoldingPortDefaultsCalled by implementations of the IFolderNodeConverter and IFoldingEdgeConverter interfaces to update the state of a port in the folding view, once it has changed.
getContext (IPort)in FreeNodePortLocationModel
getLocation (IPort, IPortLocationModelParameter)in FreeNodePortLocationModel
createEdge (IPort, IPort, IEdgeStyle?, IEdge['tag']?, )in Graph
createUndoUnitForEdgeReconnection (IEdge, IPort, IPort)in GraphCreates the edge reconnection undo unit for the given edge.
createUndoUnitForLocationParameterChange (IPort, IPortLocationModelParameter)in GraphCreates the undo unit for changing the location parameter of the given port.
createUndoUnitForPortAddition (IPort)in GraphCreates the port addition undo unit for the given port.
createUndoUnitForPortRemoval (IPort)in GraphCreates the port removal undo unit for the given port.
createUndoUnitForPortStyleChange (IPort, IPortStyle)in GraphCreates the undo unit for changing the style of the given port.
createUndoUnitForPortTagChange (IPort, any)in GraphCreates the undo unit for changing the tag of the given port.
edgesAt (IPort, AdjacencyTypes?)in Graph
hasOwner (IPort)in GraphWhether the given port has a valid owner.
onAddingPort (IPortOwner, IPort)in GraphCalled when a port is going to be added to a node.
onAddingPortLabel (IPort, ILabel)in GraphCalled just before a port label is added to a port.
onChangingEdgePorts (IEdge, IPort, IPort)in GraphCalled before the ports of an edge are being changed.
onChangingPortLocationModelParameter (IPort, IPortLocationModelParameter)in GraphCalled before the locationParameter of a port is being changed.
onChangingPortStyle (IPort, IPortStyle)in GraphCalled before a port style is being changed.
onCreatingEdge (IEdge, IPort, IPort)in GraphCalled before the edge is added to this graph's structure.
onEdgePortsChanged (IEdge, IPort, IPort)in GraphCalled after the ports of an edge have changed.
onEdgeRemoved (IEdge, IPort, IPort)in GraphTriggers the edge-removed event.
onPortAdded (IPort)in GraphCalled when a port has been added to a node.
onPortLocationParameterChanged (IPort, IPortLocationModelParameter)in GraphCalled after a port location model parameter has changed.
onPortRemoved (IPortOwner, IPort)in GraphCalled just after a port has been removed from its owner.
onPortStyleChanged (IPort, IPortStyle)in GraphCalled after a port style has changed.
onPortTagChanged (IPort, any)in GraphCalled after a port tag has changed.
onRemovingPort (IPort)in GraphCalled just before a port will be removed.
setEdgePorts (IEdge, IPort, IPort)in GraphSets the ports of the given edge to the new values.
setPortLocationParameter (IPort, IPortLocationModelParameter)in Graph
setStyle (IPort, IPortStyle)in Graph
getPortLocationParameter (ClipboardGraphCopier, IGraph, IPort, IPortOwner)in GraphClipboardGets an IPortLocationModelParameter for the given sourcePort to be placed at the given newTargetOwner.
getTargetPortOwner (ClipboardOperationContext, IPort)in GraphClipboardProvides an IPortOwner where the given sourcePort can be added to.
addPort (IGraph, IGraph, IPortOwner, IPort)in GraphCopierAdds a port to the targetOwner in the targetGraph as a copy of the sourcePort.
copyPortLocationParameter (IGraph, IPort)in GraphCopierCopies a IPortLocationModelParameter for a given port.
copyPortStyle (IGraph, IPort)in GraphCopierCopies an IPortStyle instance.
copyPortTag (IPort, IPort['tag'])in GraphCopierCopies the tag of an IPort.
createEdge (IGraph, IGraph, IEdge, IPort, IPort)in GraphCopierAdds an edge to the targetGraph as a copy of the sourceEdge.
onPortCopied (IPort, IPort)in GraphCopierCalled after a port has been copied.
createEdge (IPort, IPort, IEdgeStyle?, IEdge['tag']?, )in GraphWrapperBase
edgesAt (IPort, AdjacencyTypes?)in GraphWrapperBase
onPortAdded (ItemEventArgs<IPort>)in GraphWrapperBaseRaises the port-added event.
onPortLocationParameterChanged (ItemChangedEventArgs<IPort,IPortLocationModelParameter>)in GraphWrapperBaseRaises the port-location-parameter-changed event
onPortStyleChanged (ItemChangedEventArgs<IPort,IPortStyle>)in GraphWrapperBaseRaises the port-style-changed event.
onPortTagChanged (ItemChangedEventArgs<IPort,any>)in GraphWrapperBaseRaises the port-tag-changed event.
setEdgePorts (IEdge, IPort, IPort)in GraphWrapperBase
setPortLocationParameter (IPort, IPortLocationModelParameter)in GraphWrapperBase
setStyle (IPort, IPortStyle)in GraphWrapperBase
opposite (IPort)in IEdgeGets the opposite port of an IEdge.
addAsSeparateEdge (IPort?, IPort?)in IFoldingEdgeConverterContextTells the IFoldingView implementation to add the edge provided to the addFoldingEdge method as a separate folding edge to the view at the given ports.
create ()in IFoldingEdgeConverterContext
applyLayout (ILayoutAlgorithm, LayoutData<INode,IEdge,ILabel,ILabel>?, TimeSpan?, TimeSpan?, ItemMapping<IPort,PortAdjustmentPolicy>?, ItemMapping<IPort,PortPlacementPolicy>?, ItemMapping<ILabel,PortLabelPolicy>?, ItemMapping<IModelItem,LayoutAnchoringPolicy>?, ItemMapping<ILabel,LabelPlacementPolicy>?, function(INode, INode):number?, function(IEdge, IEdge):number?)in IGraphRuns an ILayoutAlgorithm synchronously on the given graph.
createEdge (IPort, IPort, IEdgeStyle?, IEdge['tag']?, )in IGraphCreates and returns an edge that connects to the given port instances.
degree (IPort)in IGraphCalculates the number of edges at the given IPort for this graph.
edgesAt (IPort, AdjacencyTypes?)in IGraphReturns an IListEnumerable<T> for the incoming, the outgoing, or all edges adjacent to the given port, depending on type.
getEdge (IPort, IPort)in IGraphFinds an edge that connects sourcePort and targetPort in the given graph.
getEdgesBetween (IPort, IPort, boolean?)in IGraphReturns the edges between the specified source and target ports.
inDegree (IPort)in IGraphCalculates the number of incoming edges at the given IPort for this graph.
inEdgesAt (IPort)in IGraphReturns the incoming edges at the given port.
outDegree (IPort)in IGraphCalculates the number of outgoing edges at the given IPort for this graph.
outEdgesAt (IPort)in IGraphReturns the outgoing edges at the given port.
setEdgePorts (IEdge, IPort, IPort)in IGraphSets the source and target ports of the given edge to the new values.
setPortLocation (IPort, Point)in IGraphTries to set the absolute coordinates of the given port to the given values.
setPortLocationParameter (IPort, IPortLocationModelParameter)in IGraphSets a new IPortLocationModelParameter for the given port.
setRelativePortLocation (IPort, Point)in IGraphTries to set the location of the port relative to its owner if the owner is a node.
setStyle (IPort, IPortStyle)in IGraphAssigns the given style instance by reference to the port.
getContext (IPort)in IPortLocationModelProvides a lookup context for the given port.
getLocation (IPort, IPortLocationModelParameter)in IPortLocationModelDetermines the location of the port for the given parameter.
addGenericLookup (function(IPort, Constructor, IContextLookup):any)in PortDecoratorAdds a generic callback as a chain link to the lookup.
PortEventArgs (IPort, IPortOwner)in PortEventArgsInitializes a new instance of the PortEventArgs class.
SimpleEdge (IPort?, IPort?, )in SimpleEdgeCreates an edge with a default lookup, and, optionally, the given source and target ports.
SimpleNode ()in SimpleNodeCreates a default node with default lookup, VOID_NODE_STYLE as style, an empty layout, and no labels nor ports.
create ()in IGraphElementFactory
createEdge (IParseContext, INode, IPort, INode, IPort)in IGraphElementFactoryCreates an edge for the given context and the provided source and target nodes or ports.
onPortAdded (InputModeItemEventArgs<IPort>)in CreateEdgeInputModeRaises the port-added event if the mode has added a port for the source or target node to complete the edge creation.
startEdgeCreation (IPort, IPoint?)in CreateEdgeInputModeSynthetically starts the interactive edge creation process using the provided IPort as the start port.
onPortAdded (InputModeItemEventArgs<IPort>)in GraphEditorInputModeRaises the port-added event.
onPortDropInputModePortCreated (InputModeItemEventArgs<IPort>, any)in GraphEditorInputModeCalled when the portDropInputMode's item-created event is triggered.
GraphSnapContext ()in GraphSnapContextCreates a new instance with default settings.
getMovementInfo (IPort)in GraphSnapContextGets the movement info for the given port.
create ()in IPortGridConstraintProvider
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, Point, IPort)in IPortSnapResultProviderCalled when a node is dragged to add SnapResults for OrthogonalSnapLines to which this bend can potentially snap.
create (function(GraphSnapContext, CollectSnapResultsEventArgs, Point, IPort):void)in IPortSnapResultProvider
PortCandidate (IPort)in PortCandidateCreates a candidate using the given port as the template.
setInstance (IPort)in PortCandidateSets the instance that will be returned by port and createPort.
PortDropInputMode (string, )in PortDropInputModeInitializes a new instance of the PortDropInputMode class for the given data type.
createPort (IInputModeContext, IGraph, IPort, IPortOwner, IPortLocationModelParameter)in PortDropInputModeCreates the port in the graph after it has been dropped.
getNewPortLocationModelParameter (IPortOwner, IPort, Point)in PortDropInputModeDetermines the IPortLocationModelParameter the port should have if it was dropped at dragLocation over owner.
isValidPortOwner (IPortOwner, IPort)in PortDropInputModeDefault backing method for isValidPortOwnerPredicate
startDrag (HTMLElement | SVGElement, IPort, DragDropEffects?, boolean?, HTMLElement | SVGElement?)in PortDropInputModeStarts a drag and drop operation for a IPort.
PortLocationModelParameterHandle (IPort)in PortLocationModelParameterHandleInitializes a new instance of the PortLocationModelParameterHandle class to change the IPortLocationModelParameter of the given port.
getMoveType (IPort)in PortLocationModelParameterHandleDetermines the type of movement for the given port.
getNewParameter (IPort, IPortLocationModel, Point)in PortLocationModelParameterHandleObtains the new parameter for the given location and port.
setParameter (IGraph, IPort, IPortLocationModelParameter)in PortLocationModelParameterHandleApplies the parameter.
createExistingPortCandidate (IPort)in PortRelocationHandleFactory method that creates the candidate for the existing port.
setPorts (IInputModeContext, IEdge, IPort, IPort)in PortRelocationHandleFinally sets the ports for the edge to the new values.
getHandle (IPort)in PortsHandleProviderRetrieves the handle implementation from the port's lookup.
LayoutExecutor (GraphComponent, ILayoutAlgorithm, )in LayoutExecutorInitializes a new instance of the LayoutExecutor class.
LayoutExecutor (GraphComponent, IGraph, ILayoutAlgorithm, )in LayoutExecutorInitializes a new instance of the LayoutExecutor class.
LayoutExecutorAsync (function(object):Promise<object>, GraphComponent, LayoutDescriptor?, LayoutData<INode,IEdge,ILabel,ILabel>?, )in LayoutExecutorAsyncCreates a new instance of a layout execution helper that will asynchronously perform the calculations and optionally animate the layout on the given graphComponent.
LayoutExecutorAsync (function(object):Promise<object>, IGraph, LayoutDescriptor?, LayoutData<INode,IEdge,ILabel,ILabel>?, )in LayoutExecutorAsyncCreates a new instance of a layout execution helper that will asynchronously perform the calculations and apply the results on the provided graph.
createEdgePortLayout (IPort)in LayoutExecutorAsyncCallback factory method that creates the IRectangle for the given IPort that is used as a dummy to represent the port at the IEdge that owns port.
getLayoutNode (IPort)in LayoutGraphAdapterReturns the temporary node that represents the given original port.
setEdgePortLocation (IPort, Point)in LayoutGraphAdapterCallback method that assigns a new location that matches newLocation to the edge port.
setNodePortLocation (IPort, Point)in LayoutGraphAdapterCallback method that assigns a new location that matches newLocation to the node port.
createVisual (IRenderContext, IPort)in CompositePortStyleCreates the visual by delegating to all styles.
getBounds (ICanvasContext, IPort)in CompositePortStyleCalculates the bounds as the union of bounds from all styles.
isHit (IInputModeContext, Point, IPort)in CompositePortStyleChecks whether any style is hit at the given location.
isInBox (IInputModeContext, Rect, IPort)in CompositePortStyleDetermines if the port is in the box based on any style.
isInPath (IInputModeContext, GeneralPath, IPort)in CompositePortStyleDetermines if the port is in the path based on any style.
isVisible (ICanvasContext, Rect, IPort)in CompositePortStyleDetermines visibility based on the visibility of all styles.
lookup (IPort, Constructor)in CompositePortStylePerforms a lookup using the first style as the reference.
updateVisual (IRenderContext, Visual, IPort)in CompositePortStyleUpdates the visual by delegating to all styles.
createVisual (IRenderContext, IPort)in DelegatingPortStyleCreates the visual with the style from getStyle and the port from getPort.
getBounds (ICanvasContext, IPort)in DelegatingPortStyleGets the bounds with the style from getStyle and the port from getPort.
getPort (IPort)in DelegatingPortStyleReturns the port used for rendering.
getStyle (IPort)in DelegatingPortStyleProvides the core implementation of this style, returning the instance to delegate rendering logic.
isHit (IInputModeContext, Point, IPort)in DelegatingPortStyleDetermines with the style from getStyle whether the visualization of the port from getPort is hit at the given location.
isInBox (IInputModeContext, Rect, IPort)in DelegatingPortStyleDetermines with the style from getStyle whether the visualization of the port from getPort is included in the marquee selection.
isInPath (IInputModeContext, GeneralPath, IPort)in DelegatingPortStyleDetermines with the style from getStyle whether the visualization of the port from getPort is included in the lasso selection.
isVisible (ICanvasContext, Rect, IPort)in DelegatingPortStyleDetermines with the style from getStyle whether the visualization of the port from getPort is visible.
lookup (IPort, Constructor)in DelegatingPortStylePerforms the lookup operation with the style from getStyle and the port from getPort.
updateVisual (IRenderContext, Visual, IPort)in DelegatingPortStyleUpdates the visual with the style from getStyle and the port from getPort.
getPortGeometry (IPort)in EdgePathCropperReturns the geometry that is used to crop the edge at the port outline if cropAtPort is set to true.
getBoundsProvider (IPort, IPortStyle)in IPortStyleRendererGets an implementation of the IBoundsProvider interface that can handle the provided port and its associated style.
getContext (IPort, IPortStyle)in IPortStyleRendererGets a temporary context instance that can be used to query additional information for the port's style.
getHitTestable (IPort, IPortStyle)in IPortStyleRendererGets an implementation of the IHitTestable interface that can handle the provided port and its associated style.
getLassoTestable (IPort, IPortStyle)in IPortStyleRendererGets an implementation of the ILassoTestable interface that can handle the provided port and its associated style.
getMarqueeTestable (IPort, IPortStyle)in IPortStyleRendererGets an implementation of the IMarqueeTestable interface that can handle the provided port and its associated style.
getVisibilityTestable (IPort, IPortStyle)in IPortStyleRendererGets an implementation of the IVisibilityTestable interface that can handle the provided port and its associated style.
getVisualCreator (IPort, IPortStyle)in IPortStyleRendererGets an implementation of the IVisualCreator interface that can handle the provided port and its associated style.
createVisual (IRenderContext, IPort)in PortStyleBaseCreates the visual.
getBounds (ICanvasContext, IPort)in PortStyleBaseReturns the bounds of the visual for the port in the given context.
isHit (IInputModeContext, Point, IPort)in PortStyleBaseDetermines whether the visual representation of the port has been hit at the given location.
isInBox (IInputModeContext, Rect, IPort)in PortStyleBaseDetermines whether the visualization for the specified port is included in the marquee selection.
isInPath (IInputModeContext, GeneralPath, IPort)in PortStyleBaseDetermines whether the visualization for the specified port is included in the lasso selection.
isVisible (ICanvasContext, Rect, IPort)in PortStyleBaseDetermines whether the visualization for the specified port is visible in the context.
lookup (IPort, Constructor)in PortStyleBasePerforms the lookup operation for the getContext that has been queried from the renderer.
updateVisual (IRenderContext, TVisual, IPort)in PortStyleBaseUpdates the visual previously created by createVisual.
applyLayoutAnimated (ILayoutAlgorithm, TimeSpan?, LayoutData<INode,IEdge,ILabel,ILabel>?, TimeSpan?, TimeSpan?, boolean?, ItemMapping<IPort,PortAdjustmentPolicy>?, ItemMapping<IPort,PortPlacementPolicy>?, ItemMapping<ILabel,PortLabelPolicy>?, ItemMapping<IModelItem,LayoutAnchoringPolicy>?, Insets?, ItemMapping<ILabel,LabelPlacementPolicy>?, function(INode, INode):number?, function(IEdge, IEdge):number?)in GraphComponentRuns a layout on the graph of the GraphComponent and animates the transition.
createPortModelManager (IObjectRenderer<IPort>, function(IPort):IRenderTreeGroup)in GraphModelManagerFactory method for creating the ItemModelManager<T> that handles the visual representation of ports.
getPortRenderTreeGroup (IPort)in GraphModelManagerRetrieves the IRenderTreeGroup containing the render tree element of a given port.
createGraphAnimation (IGraph, IMapper<INode,IRectangle>?, IMapper<IEdge,yfiles.geometry.IPoint[]>?, IMapper<IPort,IPortLocationModelParameter>?, IMapper<ILabel,ILabelModelParameter>?, TimeSpan?)in IAnimationCreates a new IAnimation that animates the given layout of all types of graph items.
createPortAnimation (IGraph, IPort, IPortLocationModelParameter, TimeSpan)in IAnimationCreates a new IAnimation that animates the given port from its current location to the new location given by the targetLocationParameter.
getBoundsProvider (IPort)in PortStyleIndicatorRenderer
getHitTestable (IPort)in PortStyleIndicatorRenderer
getVisibilityTestable (IPort)in PortStyleIndicatorRenderer
getVisualCreator (IPort)in PortStyleIndicatorRenderer

Extending Types

PortEventArgsA specialized subclass of the ItemEventArgs<T> class that is bound to the IPort type and carries additional IPortOwner information.
PortDropInputModeAn ItemDropInputMode<T> specialized to the drag and drop of IPorts.

Implementing Types

SimplePortA mutable implementation of the IPort interface that can be used without an IGraph.
IPortGridConstraintProviderThis is a flagging interface for instances of IGridConstraintProvider<T> that can snap coordinates of IPorts to a grid.
PortStyleIndicatorRendererAllows the use of an IPortStyle to render the selection, highlight, or focus indicator of ports.