| Package | com.yworks.graph.model |
| Class | public class InputModeController |
IInputMode implementations.
| Property | Defined by | ||
|---|---|---|---|
| canvas : CanvasComponent
Gets or sets the canvas to use.
| InputModeController | ||
| collectionModel : ICollectionModel
The collection model this instance acts upon.
| InputModeController | ||
| itemHitTestable : IHitTestable
[read-only]
Gets an implementation of the
IHitTestable interface that
is a live composite of all IHitTestable implementations of the items contained
in the model. | InputModeController | ||
| selectedItemsHandles : ICollectionModel
[read-only]
Gets a live collection over the
IHandle implementations that
have been obtained from the selected items in the collection. | InputModeController | ||
| selectedItemsMovable : IMovable
[read-only]
Gets an implementation of the
IMovable implementations of the currently
selected items. | InputModeController | ||
| selectedItemsPositionHandler : IPositionHandler
[read-only]
Gets an implementation of the
IPositionHandler interface
that is a live composite of all position handler interfaces provided by
the currently selected items. | InputModeController | ||
| selectedMovableItemsHitTestable : IHitTestable
[read-only]
Gets an implementation of the
IHitTestable interface that
is a live composite of all | InputModeController | ||
| selectionModel : ISelectionModel
The selection model, that will be used by all implementations
that use the selection state of an item.
| InputModeController | ||
| shouldBeMovableFunction : Function
A Function that is called to determine whether a given selected model item
should be movable.
| InputModeController | ||
| shouldShowHandlesFunction : Function
A Function that is called to determine whether reshape handles
are to be shown for a given selected model item.
| InputModeController | ||
| unselectedItemsHitTestable : IHitTestable
[read-only]
Gets an implementation of the
IHitTestable interface that
is a live composite of all IHitTestable implementations of the currently
unselected items. | InputModeController | ||
| unselectedMovableItemsHitTestable : IHitTestable
[read-only]
Gets an implementation of the
IMovable implementations of the currently
unselected items. | InputModeController | ||
| Method | Defined by | ||
|---|---|---|---|
|
InputModeController(collectionModel:ICollectionModel)
Creates an instance that can be used for the given collection model.
| InputModeController | ||
|
dispose():void
Disposes this instance.
| InputModeController | ||
|
Gets an implementation of the
IHitTestable interface that
is a live composite of all IHitTestable implementations of the currently
selected items. | InputModeController | ||
| Method | Defined by | ||
|---|---|---|---|
|
Gets the
IHandleProvider for a given item. | InputModeController | ||
|
Returns the
IHandles for a given element. | InputModeController | ||
| canvas | property |
canvas:CanvasComponent [read-write]Gets or sets the canvas to use.
Implementation public function get canvas():CanvasComponent
public function set canvas(value:CanvasComponent):void
| collectionModel | property |
collectionModel:ICollectionModel [read-write]The collection model this instance acts upon.
Implementation public function get collectionModel():ICollectionModel
public function set collectionModel(value:ICollectionModel):void
| itemHitTestable | property |
itemHitTestable:IHitTestable [read-only]
Gets an implementation of the IHitTestable interface that
is a live composite of all IHitTestable implementations of the items contained
in the model.
public function get itemHitTestable():IHitTestable
| selectedItemsHandles | property |
selectedItemsHandles:ICollectionModel [read-only]
Gets a live collection over the IHandle implementations that
have been obtained from the selected items in the collection.
public function get selectedItemsHandles():ICollectionModel
| selectedItemsMovable | property |
selectedItemsMovable:IMovable [read-only]
Gets an implementation of the IMovable implementations of the currently
selected items.
public function get selectedItemsMovable():IMovable
| selectedItemsPositionHandler | property |
selectedItemsPositionHandler:IPositionHandler [read-only]
Gets an implementation of the IPositionHandler interface
that is a live composite of all position handler interfaces provided by
the currently selected items.
public function get selectedItemsPositionHandler():IPositionHandler
| selectedMovableItemsHitTestable | property |
selectedMovableItemsHitTestable:IHitTestable [read-only]
Gets an implementation of the IHitTestable interface that
is a live composite of all
public function get selectedMovableItemsHitTestable():IHitTestable
| selectionModel | property |
selectionModel:ISelectionModel [read-write]The selection model, that will be used by all implementations that use the selection state of an item.
Implementation public function get selectionModel():ISelectionModel
public function set selectionModel(value:ISelectionModel):void
| shouldBeMovableFunction | property |
shouldBeMovableFunction:Function [read-write]A Function that is called to determine whether a given selected model item should be movable.
The implementation has to accept one parameter of type IModelItem
and return a Boolean value:
function shouldBeMovable( item:IModelItem ):Boolean {
..
return true;
}
The default value is null.
public function get shouldBeMovableFunction():Function
public function set shouldBeMovableFunction(value:Function):void
See also
| shouldShowHandlesFunction | property |
shouldShowHandlesFunction:Function [read-write]A Function that is called to determine whether reshape handles are to be shown for a given selected model item.
The implementation has to accept one parameter of type IModelItem
and return a Boolean value:
function shouldShowHandles( item:IModelItem ):Boolean {
..
return true;
}
The default value is null.
public function get shouldShowHandlesFunction():Function
public function set shouldShowHandlesFunction(value:Function):void
See also
| unselectedItemsHitTestable | property |
unselectedItemsHitTestable:IHitTestable [read-only]
Gets an implementation of the IHitTestable interface that
is a live composite of all IHitTestable implementations of the currently
unselected items.
public function get unselectedItemsHitTestable():IHitTestable
| unselectedMovableItemsHitTestable | property |
unselectedMovableItemsHitTestable:IHitTestable [read-only]
Gets an implementation of the IMovable implementations of the currently
unselected items.
public function get unselectedMovableItemsHitTestable():IHitTestable
| InputModeController | () | constructor |
public function InputModeController(collectionModel:ICollectionModel)Creates an instance that can be used for the given collection model.
ParameterscollectionModel:ICollectionModel — model to get the entities from.
|
| dispose | () | method |
public function dispose():voidDisposes this instance.
| getHandleProvider | () | method |
protected function getHandleProvider(item:IModelItem):IHandleProvider
Gets the IHandleProvider for a given item.
item:IModelItem — The item to query the provider from.
|
IHandleProvider —
The provider or null.
|
| getHandles | () | method |
protected function getHandles(item:IModelItem):Iterable
Returns the IHandles for a given element.
This implementation delegates to getHandleProvider.
item:IModelItem — The element to retrieve handles for.
|
Iterable —
An iterable or null.
|
| selectedItemsHitTestable | () | method |
public function selectedItemsHitTestable():IHitTestable
Gets an implementation of the IHitTestable interface that
is a live composite of all IHitTestable implementations of the currently
selected items.
IHitTestable |