| Package | com.yworks.graph.model |
| Interface | public interface ISelectionModel extends flash.events.IEventDispatcher, Iterable |
| Subinterfaces | IGraphSelection |
| Implementors | DefaultSelectionModel |
| Property | Defined by | ||
|---|---|---|---|
| count : uint [read-only]
Returns the number of selected items.
| ISelectionModel | ||
| selectedObjects : Iterable
[read-only]
Gets an iterable that enumerates all currently selected items.
| ISelectionModel | ||
| Method | Defined by | ||
|---|---|---|---|
|
clear():void
Clears the selection.
| ISelectionModel | ||
|
isSelected(item:IModelItem):Boolean
Determines whether an item is currently selected.
| ISelectionModel | ||
![]() |
Returns an iterator over a set of elements.
| Iterable | |
|
setSelected(item:IModelItem, selected:Boolean):void
Sets the selection state of an item.
| ISelectionModel | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when an item changed its selection state from selected to unselected. | ISelectionModel | |||
| Dispatched when an item changed its selection state from unselected to selected. | ISelectionModel | |||
| count | property |
count:uint [read-only]Returns the number of selected items.
Implementation public function get count():uint
| selectedObjects | property |
selectedObjects:Iterable [read-only]Gets an iterable that enumerates all currently selected items.
Implementation public function get selectedObjects():Iterable
| clear | () | method |
public function clear():voidClears the selection.
| isSelected | () | method |
public function isSelected(item:IModelItem):BooleanDetermines whether an item is currently selected.
Parametersitem:IModelItem — The item to check.
|
Boolean — Whether the item is currently selected.
|
| setSelected | () | method |
public function setSelected(item:IModelItem, selected:Boolean):voidSets the selection state of an item.
Parametersitem:IModelItem — The object to set the selection state for.
|
|
selected:Boolean — Whether to select the object.
|
| deselect | event |
com.yworks.graph.model.SelectionEvent
Dispatched when an item changed its selection state from selected to unselected.
| select | event |
com.yworks.graph.model.SelectionEvent
Dispatched when an item changed its selection state from unselected to selected.