Packagecom.yworks.graph.model
Classpublic class ItemDecorator
InheritanceItemDecorator Inheritance Object
Subclasses BendDecorator, EdgeDecorator, LabelDecorator, NodeDecorator, PortDecorator

Utility class that helps in decorating the lookup of IModelItem instances that are contained in an IGraph which are managed by an ILookupDecorator.

See also

com.yworks.support.ILookupDecorator


Public Properties
 PropertyDefined By
  actionButtonProviderDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IActionButtonProvider type for the type of items this instance has been created for.
ItemDecorator
  clipboardHelperDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IClipboardHelper type for the type of items this instance has been created for.
ItemDecorator
  decorator : ILookupDecorator
The decorator to use.
ItemDecorator
  focusPaintableDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IFocusPaintableInstaller type for the type of items this instance has been created for.
ItemDecorator
  handleProviderDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IHandleProvider type for the type of items this instance has been created for.
ItemDecorator
  highlightDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IHighlightPaintableInstaller type for the type of items this instance has been created for.
ItemDecorator
  marqueeTestableDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IMarqueeTestable type for the type of items this instance has been created for.
ItemDecorator
  mementoSupportDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IMementoSupport type for the type of items this instance has been created for.
ItemDecorator
  positionHandlerDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the IPositionHandler type for the type of items this instance has been created for.
ItemDecorator
  selectionDecorator : LookupDecorator
[read-only] The LookupDecorator that decorates the ISelectionPaintable type for the type of items this instance has been created for.
ItemDecorator
Public Methods
 MethodDefined By
  
ItemDecorator(decorator:ILookupDecorator, forItem:Class)
Creates a new instance for the given item class which uses the given function for a type check.
ItemDecorator
Property Detail
actionButtonProviderDecoratorproperty
actionButtonProviderDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IActionButtonProvider type for the type of items this instance has been created for.

The IActionButtonProvider allows to simulate simple buttons for node, labels etc.


Implementation
    public function get actionButtonProviderDecorator():LookupDecorator

See also

IActionButtonProvider
clipboardHelperDecoratorproperty 
clipboardHelperDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IClipboardHelper type for the type of items this instance has been created for.

The IClipboardHelper of a model item provides methods which determine whether the item should be cut, copied or pasted and which are invoked when the item is cut, copied and pasted.


Implementation
    public function get clipboardHelperDecorator():LookupDecorator

See also

decoratorproperty 
decorator:ILookupDecorator

The decorator to use.

Setting a different value will not affect existing chain links.


Implementation
    public function get decorator():ILookupDecorator
    public function set decorator(value:ILookupDecorator):void
focusPaintableDecoratorproperty 
focusPaintableDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IFocusPaintableInstaller type for the type of items this instance has been created for.

The IFocusPaintableInstaller determines the visual appearance of the focus indicator.


Implementation
    public function get focusPaintableDecorator():LookupDecorator

See also

handleProviderDecoratorproperty 
handleProviderDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IHandleProvider type for the type of items this instance has been created for.

The IHandleProvider returns a set of handles (drag points) for a given item.


Implementation
    public function get handleProviderDecorator():LookupDecorator

See also

highlightDecoratorproperty 
highlightDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IHighlightPaintableInstaller type for the type of items this instance has been created for.

The IHighlightPaintableInstaller determines the visual appearance of a highlight decoration of a model item. By default, such a highlight is drawn during edge creation.


Implementation
    public function get highlightDecorator():LookupDecorator

See also

marqueeTestableDecoratorproperty 
marqueeTestableDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IMarqueeTestable type for the type of items this instance has been created for.

The IMarqueeTestable determines whether the the item is located inside a given box.


Implementation
    public function get marqueeTestableDecorator():LookupDecorator

See also

mementoSupportDecoratorproperty 
mementoSupportDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IMementoSupport type for the type of items this instance has been created for.

The IMementoSupport provides a means to remember the item's state to implement undoability.


Implementation
    public function get mementoSupportDecorator():LookupDecorator

See also

positionHandlerDecoratorproperty 
positionHandlerDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the IPositionHandler type for the type of items this instance has been created for.

The IPositionHandler determines the movement (drag behavior) of the item.


Implementation
    public function get positionHandlerDecorator():LookupDecorator

See also

selectionDecoratorproperty 
selectionDecorator:LookupDecorator  [read-only]

The LookupDecorator that decorates the ISelectionPaintable type for the type of items this instance has been created for.

The ISelectionPaintable determines the visual decoration of selected items.


Implementation
    public function get selectionDecorator():LookupDecorator

See also

Constructor Detail
ItemDecorator()Constructor
public function ItemDecorator(decorator:ILookupDecorator, forItem:Class)

Creates a new instance for the given item class which uses the given function for a type check.

Parameters
decorator:ILookupDecorator — The decorator to use.
 
forItem:Class — The class of the item to create this lookup for.