| Package | com.yworks.graph.model |
| Class | public class InputModeController |
| Inheritance | InputModeController Object |
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 | ||
| inputModeContext : IInputModeContext
The IInputModeContext that is used by this instance. | 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 interface that
is a live composite of all 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 IHitTestable implementations of the currently
selected items that also provide a PositionHandler or IMovable implementation. | 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 IHitTestable interface that
is a live composite of all IHitTestable implementations of the currently
unselected items that also provide a PositionHandler or IMovable implementation. | InputModeController | ||
| Method | Defined By | ||
|---|---|---|---|
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:CanvasComponentGets or sets the canvas to use.
public function get canvas():CanvasComponent public function set canvas(value:CanvasComponent):void| collectionModel | property |
collectionModel:ICollectionModelThe collection model this instance acts upon.
public function get collectionModel():ICollectionModel public function set collectionModel(value:ICollectionModel):void| inputModeContext | property |
inputModeContext:IInputModeContext
The IInputModeContext that is used by this instance.
public function get inputModeContext():IInputModeContext public function set inputModeContext(value:IInputModeContext):voidSee also
| 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 interface that
is a live composite of all 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 IHitTestable implementations of the currently
selected items that also provide a PositionHandler or IMovable implementation.
public function get selectedMovableItemsHitTestable():IHitTestable| selectionModel | property |
selectionModel:ISelectionModelThe selection model, that will be used by all implementations that use the selection state of an item.
public function get selectionModel():ISelectionModel public function set selectionModel(value:ISelectionModel):void| shouldBeMovableFunction | property |
shouldBeMovableFunction:FunctionA 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):voidSee also
| shouldShowHandlesFunction | property |
shouldShowHandlesFunction:FunctionA 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):voidSee 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 IHitTestable interface that
is a live composite of all IHitTestable implementations of the currently
unselected items that also provide a PositionHandler or IMovable implementation.
public function get unselectedMovableItemsHitTestable():IHitTestable| InputModeController | () | Constructor |
public function InputModeController(collectionModel:ICollectionModel, inputModeContext:IInputModeContext)Creates an instance that can be used for the given collection model.
ParameterscollectionModel:ICollectionModel — The model to get the entities from.
| |
inputModeContext:IInputModeContext — The context to use for queries that require an input mode context.
|
| dispose | () | method |
public function dispose():voidDisposes this instance.
| getHandleProvider | () | method |
protected function getHandleProvider(item:IModelItem):IHandleProvider
Gets the IHandleProvider for a given item.
Parameters
item:IModelItem — The item to query the provider from.
|
IHandleProvider — The provider or null.
|
| getHandles | () | method |
protected function getHandles(context:IInputModeContext, item:IModelItem):Iterable
Returns the IHandles for a given element.
This implementation delegates to getHandleProvider.
Parameters
context:IInputModeContext — The element to retrieve handles for.
| |
item:IModelItem |
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 — A newly created IHitTestable implementation representing the currently selected items.
|