Packagecom.yworks.graph.model
Classpublic class NodeDecorator
InheritanceNodeDecorator Inheritance ItemDecorator Inheritance Object

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

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
 InheritedfocusPaintableDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IFocusPaintableInstaller type for the type of items this instance has been created for.
ItemDecorator
  groupBoundsCalculatorDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IGroupBoundsCalculator type for INodes.
NodeDecorator
 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
  insetsProviderDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the INodeInsetsProvider type for INodes.
NodeDecorator
 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
  nodeReshapeSnapResultProvider : LookupDecorator
[read-only] Gets a LookupDecorator that decorates the INodeReshapeSnapResultProvider for the INodes this instance has been created for.
NodeDecorator
  nodeSnapResultProviderDecorator : LookupDecorator
[read-only] Gets a LookupDecorator that decorates the INodeSnapResultProvider for the INodes this instance has been created for.
NodeDecorator
  obstacleProviderDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IObstacleProvider type for INodes.
NodeDecorator
  portCandidateProviderDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IPortCandidateProvider type for INodes.
NodeDecorator
 InheritedpositionHandlerDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IPositionHandler type for the type of items this instance has been created for.
ItemDecorator
  reshapeHandleProviderDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IReshapeHandleProvider type for INodes.
NodeDecorator
  reshapeHandlerDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IReshapeHandler type for INodes.
NodeDecorator
 InheritedselectionDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the ISelectionPaintable type for the type of items this instance has been created for.
ItemDecorator
  shapeGeometryDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IShapeGeometry type for INodes.
NodeDecorator
  sizeConstraintsProviderDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the ISizeConstraintProvider type for INodes.
NodeDecorator
  snapLineProviderDecorator : LookupDecorator
[read-only] Gets a LookupDecorator that decorates the ISnapLineProvider for the INodes this instance has been created for.
NodeDecorator
Public Methods
 MethodDefined By
  
Creates a new instance that uses the given decorator.
NodeDecorator
Property Detail
groupBoundsCalculatorDecoratorproperty
groupBoundsCalculatorDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IGroupBoundsCalculator type for INodes.


Implementation
    public function get groupBoundsCalculatorDecorator():LookupDecorator
insetsProviderDecoratorproperty 
insetsProviderDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the INodeInsetsProvider type for INodes.


Implementation
    public function get insetsProviderDecorator():LookupDecorator
nodeReshapeSnapResultProviderproperty 
nodeReshapeSnapResultProvider:LookupDecorator  [read-only]

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


Implementation
    public function get nodeReshapeSnapResultProvider():LookupDecorator

See also

INodeReshapeSnapResultProvider
SnapResult
INode
NodeReshapeHandle
nodeSnapResultProviderDecoratorproperty 
nodeSnapResultProviderDecorator:LookupDecorator  [read-only]

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


Implementation
    public function get nodeSnapResultProviderDecorator():LookupDecorator

See also

INodeSnapResultProvider
SnapResult
INode
NodePositionHandler
obstacleProviderDecoratorproperty 
obstacleProviderDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IObstacleProvider type for INodes.


Implementation
    public function get obstacleProviderDecorator():LookupDecorator
portCandidateProviderDecoratorproperty 
portCandidateProviderDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IPortCandidateProvider type for INodes.


Implementation
    public function get portCandidateProviderDecorator():LookupDecorator
reshapeHandleProviderDecoratorproperty 
reshapeHandleProviderDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IReshapeHandleProvider type for INodes.


Implementation
    public function get reshapeHandleProviderDecorator():LookupDecorator
reshapeHandlerDecoratorproperty 
reshapeHandlerDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IReshapeHandler type for INodes.


Implementation
    public function get reshapeHandlerDecorator():LookupDecorator
shapeGeometryDecoratorproperty 
shapeGeometryDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IShapeGeometry type for INodes.


Implementation
    public function get shapeGeometryDecorator():LookupDecorator
sizeConstraintsProviderDecoratorproperty 
sizeConstraintsProviderDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the ISizeConstraintProvider type for INodes.


Implementation
    public function get sizeConstraintsProviderDecorator():LookupDecorator
snapLineProviderDecoratorproperty 
snapLineProviderDecorator:LookupDecorator  [read-only]

Gets a LookupDecorator that decorates the ISnapLineProvider for the INodes this instance has been created for. Custom ISnapLineProvider implementations can be used to provide custom SnapLines based on the INodes this instance has been created for. This could e.g. be a horizontal SnapLine at the vertical center of the node to which other nodes should snap with their top border. 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
INode
GraphSnapContext
Constructor Detail
NodeDecorator()Constructor
public function NodeDecorator(decorator:ILookupDecorator)

Creates a new instance that uses the given decorator.

Parameters
decorator:ILookupDecorator — The decorator to use.