Packagecom.yworks.graph.model
Classpublic class PortDecorator
InheritancePortDecorator Inheritance ItemDecorator Inheritance Object

A subclass of the ItemDecorator that is specifically tailored for IPorts.

See also

ItemDecorator


Public Properties
 PropertyDefined By
 InheritedactionButtonProviderDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IActionButtonProvider type for the type of items this instance has been created for.
ItemDecorator
 InheritedclipboardHelperDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IClipboardHelper type for the type of items this instance has been created for.
ItemDecorator
 Inheriteddecorator : ILookupDecorator
The decorator to use.
ItemDecorator
  edgeIntersectionDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IHandle type for IBends.
PortDecorator
 InheritedfocusPaintableDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IFocusPaintableInstaller type for the type of items this instance has been created for.
ItemDecorator
  handleDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IHandle type for IBends.
PortDecorator
 InheritedhandleProviderDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IHandleProvider type for the type of items this instance has been created for.
ItemDecorator
 InheritedhighlightDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IHighlightPaintableInstaller type for the type of items this instance has been created for.
ItemDecorator
 InheritedmarqueeTestableDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IMarqueeTestable type for the type of items this instance has been created for.
ItemDecorator
 InheritedmementoSupportDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IMementoSupport type for the type of items this instance has been created for.
ItemDecorator
  portSnapResultProviderDecorator : LookupDecorator
[read-only] Gets a LookupDecorator that decorates the IPortSnapResultProvider for the IPorts this instance has been created for.
PortDecorator
 InheritedpositionHandlerDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IPositionHandler type for the type of items this instance has been created for.
ItemDecorator
 InheritedselectionDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the ISelectionPaintable type for the type of items this instance has been created for.
ItemDecorator
  snapLineProviderDecorator : LookupDecorator
[read-only] Gets a LookupDecorator that decorates the ISnapLineProvider for the IPorts this instance has been created for.
PortDecorator
Public Methods
 MethodDefined By
  
Creates a new instance that uses the given decorator.
PortDecorator
Property Detail
edgeIntersectionDecoratorproperty
edgeIntersectionDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IHandle type for IBends.


Implementation
    public function get edgeIntersectionDecorator():LookupDecorator
handleDecoratorproperty 
handleDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IHandle type for IBends.


Implementation
    public function get handleDecorator():LookupDecorator
portSnapResultProviderDecoratorproperty 
portSnapResultProviderDecorator:LookupDecorator  [read-only]

Gets a LookupDecorator that decorates the IPortSnapResultProvider for the IPorts this instance has been created for. Custom IPortSnapResultProvider implementations can be used to provide custom SnapResults based on the IPorts this instance has been created for. This could e.g. be a SnapResult describing that the port wants to snap to a grid point. This interface is mainly used by the PortLocationModelParameterHandle to collect SnapResults during a drag gesture for the port. This is a convenient alternative to the direct usage of the ILookupDecorator that is provided by the IGraph's lookup.


Implementation
    public function get portSnapResultProviderDecorator():LookupDecorator

See also

IPortSnapResultProvider
SnapResult
PortLocationModelParameterHandle
snapLineProviderDecoratorproperty 
snapLineProviderDecorator:LookupDecorator  [read-only]

Gets a LookupDecorator that decorates the ISnapLineProvider for the IPorts this instance has been created for. Custom ISnapLineProvider implementations can be used to provide custom SnapLines based on the IPorts this instance has been created for. This could e.g. be a SnapLine with a horizontal or vertical offset to the port's location. This interface is mainly used by the GraphSnapContext to collect all available SnapLines. This is a convenient alternative to the direct usage of the ILookupDecorator that is provided by the IGraph's lookup.


Implementation
    public function get snapLineProviderDecorator():LookupDecorator

See also

ISnapLineProvider
SnapLine
GraphSnapContext
Constructor Detail
PortDecorator()Constructor
public function PortDecorator(decorator:ILookupDecorator)

Creates a new instance that uses the given decorator.

Parameters
decorator:ILookupDecorator — The decorator to use.