Package | com.yworks.graph.model |
Class | public class ItemDecorator |
Inheritance | ItemDecorator Object |
Subclasses | BendDecorator, EdgeDecorator, LabelDecorator, NodeDecorator, PortDecorator |
IModelItem
instances
that are contained in an IGraph
which are managed by an ILookupDecorator
.
See also
Property | Defined 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 |
Method | Defined 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 |
actionButtonProviderDecorator | property |
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.
public function get actionButtonProviderDecorator():LookupDecorator
See also
clipboardHelperDecorator | property |
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.
public function get clipboardHelperDecorator():LookupDecorator
See also
decorator | property |
decorator:ILookupDecorator
The decorator to use.
Setting a different value will not affect existing chain links.
public function get decorator():ILookupDecorator
public function set decorator(value:ILookupDecorator):void
focusPaintableDecorator | property |
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.
public function get focusPaintableDecorator():LookupDecorator
See also
handleProviderDecorator | property |
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.
public function get handleProviderDecorator():LookupDecorator
See also
highlightDecorator | property |
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.
public function get highlightDecorator():LookupDecorator
See also
marqueeTestableDecorator | property |
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.
public function get marqueeTestableDecorator():LookupDecorator
See also
mementoSupportDecorator | property |
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.
public function get mementoSupportDecorator():LookupDecorator
See also
positionHandlerDecorator | property |
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.
public function get positionHandlerDecorator():LookupDecorator
See also
selectionDecorator | property |
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.
public function get selectionDecorator():LookupDecorator
See also
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.
Parametersdecorator:ILookupDecorator — The decorator to use.
| |
forItem:Class — The class of the item to create this lookup for.
|