documentationfor yFiles for HTML 3.0.0.3

Usages of IPortStyle

Properties

stylein FoldingPortDefaultsGets or sets the IPortStyle to use for initializing the folding ports.
stylein FoldingPortStateGets or sets the style of this port.
stylein IPortGets the style that is responsible for the visual representation of this port in a CanvasComponent.
stylein IPortDefaultsGets or sets the style to use for ports.
stylein PortDefaults
stylein SimplePortGets or sets the style that is responsible for the visual representation of this port in a CanvasComponent.
stylein PortCandidateGets or sets the style to use for the newly created port.
stylein PortCandidateProviderBaseGets or sets the style to use for the creation of the port in createInstance.
stylesin CompositePortStyleGets a readonly list of the styles used by this instance.
portStylein PortStyleIndicatorRendererGets or sets the style to use for the rendering.

Fields

VOID_PORT_STYLEin IPortStyleA void implementation of a port style that does nothing and behaves like an invisible style.

Method Return Values

copyPortStyle (IGraph, IPort)in ClipboardGraphCopierCopies an IPortStyle instance.
getDefaultStyleInstance ()in FoldingPortDefaultsCreates the default IPortStyle to use in initializeState.
copyPortStyle (IGraph, IPort)in GraphCopierCopies an IPortStyle instance.
getStyleInstance (IPortOwner)in IPortDefaultsFactory method that returns a style instance for use with newly created ports.
getStyleInstance (IPortOwner)in PortDefaults
getStyle (IPort)in DelegatingPortStyleProvides the core implementation of this style, returning the instance to delegate rendering logic.

Method Parameters

FoldingPortDefaults (IPortDefaults?, )in FoldingPortDefaultsCreates a new instance of this type, optionally configuring the values from the given IPortDefaults object.
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.
createUndoUnitForPortStyleChange (IPort, IPortStyle)in GraphCreates the undo unit for changing the style of the given port.
onChangingPortStyle (IPort, IPortStyle)in GraphCalled before a port style is being changed.
onPortStyleChanged (IPort, IPortStyle)in GraphCalled after a port style has changed.
setStyle (IPort, IPortStyle)in Graph
addPort (IPortOwner, IPortLocationModelParameter?, IPortStyle?, IPort['tag']?)in GraphWrapperBase
onPortStyleChanged (ItemChangedEventArgs<IPort,IPortStyle>)in GraphWrapperBaseRaises the port-style-changed event.
setStyle (IPort, IPortStyle)in GraphWrapperBase
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.
setStyle (IPort, IPortStyle)in IGraphAssigns the given style instance by reference to the port.
PortDefaults ()in PortDefaultsInitializes a new instance of the PortDefaults class using a trivial location model parameter.
SimplePort (IPortOwner?, IPortLocationModelParameter?, )in SimplePortCreates a port with a default lookup using the given location and owner.
createInstance (IInputModeContext, IGraph, IPortLocationModelParameter, IPortStyle, IPort['tag'])in PortCandidateActually creates the IPort instance.
CompositePortStyle (IPortStyle, IPortStyle)in CompositePortStyleCreates a new instance of this style.
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.
PortStyleIndicatorRenderer ()in PortStyleIndicatorRendererCreate a new instance of this class.

Implementing Types

NodeStylePortStyleAdapterA port style decorator that uses a node style instance to render the port.
PortStyleBaseAn abstract base class that makes it possible to easily implement a custom IPortStyle.
ShapePortStylePort style implementation that can show predefined shapes of type ShapeNodeShape.