| Package | com.yworks.graph.model |
| Interface | public interface IGraphSelection extends ISelectionModel, flash.events.IEventDispatcher, Iterable |
| Implementors | GraphSelection |
IGraph
instance.
| Property | Defined by | ||
|---|---|---|---|
![]() | count : uint
Returns the number of selected items.
| ISelectionModel | |
| selectedBends : Iterable
[read-only]
Enumerates all currently selected bends.
| IGraphSelection | ||
| selectedEdges : Iterable
[read-only]
Enumerates all currently selected edges.
| IGraphSelection | ||
| selectedLabels : Iterable
[read-only]
Enumerates all currently selected labels.
| IGraphSelection | ||
| selectedNodes : Iterable
[read-only]
Enumerates all currently selected nodes.
| IGraphSelection | ||
![]() | selectedObjects : Iterable
Gets an iterable that enumerates all currently selected items.
| ISelectionModel | |
| selectedPorts : Iterable
[read-only]
Enumerates all currently selected ports.
| IGraphSelection | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
clear():void
Clears the selection.
| ISelectionModel | |
|
isBendSelected(bend:IBend):Boolean
Queries the selection state for the given bend.
| IGraphSelection | ||
|
isEdgeSelected(edge:IEdge):Boolean
Queries the selection state for the given edge.
| IGraphSelection | ||
|
isLabelSelected(label:ILabel):Boolean
Queries the selection state for the given label.
| IGraphSelection | ||
|
isNodeSelected(node:INode):Boolean
Queries the selection state for the given node.
| IGraphSelection | ||
|
isPortSelected(port:IPort):Boolean
Queries the selection state for the given port.
| IGraphSelection | ||
![]() |
isSelected(item:IModelItem):Boolean
Determines whether an item is currently selected.
| ISelectionModel | |
![]() |
Returns an iterator over a set of elements.
| Iterable | |
|
setBendSelected(bend:IBend, selected:Boolean):void
Sets the selected state for the given bend.
| IGraphSelection | ||
|
setEdgeSelected(edge:IEdge, selected:Boolean):void
Sets the selected state for the given edge.
| IGraphSelection | ||
|
setLabelSelected(label:ILabel, selected:Boolean):void
Sets the selected state for the given label.
| IGraphSelection | ||
|
setNodeSelected(node:INode, selected:Boolean):void
Sets the selected state for the given node.
| IGraphSelection | ||
|
setPortSelected(port:IPort, selected:Boolean):void
Sets the selected state for the given port.
| IGraphSelection | ||
![]() |
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 | ||
| An event that will be triggered if an item changed its selection state from selected to unselected. | IGraphSelection | |||
| An event that will be triggered if an item changed its selection state from unselected to selected. | IGraphSelection | |||
![]() | Dispatched when an item changed its selection state from unselected to selected. | ISelectionModel | ||
| selectedBends | property |
selectedBends:Iterable [read-only]Enumerates all currently selected bends.
Implementation public function get selectedBends():Iterable
| selectedEdges | property |
selectedEdges:Iterable [read-only]Enumerates all currently selected edges.
Implementation public function get selectedEdges():Iterable
| selectedLabels | property |
selectedLabels:Iterable [read-only]Enumerates all currently selected labels.
Implementation public function get selectedLabels():Iterable
| selectedNodes | property |
selectedNodes:Iterable [read-only]Enumerates all currently selected nodes.
Implementation public function get selectedNodes():Iterable
| selectedPorts | property |
selectedPorts:Iterable [read-only]Enumerates all currently selected ports.
Implementation public function get selectedPorts():Iterable
| isBendSelected | () | method |
public function isBendSelected(bend:IBend):BooleanQueries the selection state for the given bend.
Parametersbend:IBend — the bend to query the state for
|
Boolean — whether the bend is currently selected
|
| isEdgeSelected | () | method |
public function isEdgeSelected(edge:IEdge):BooleanQueries the selection state for the given edge.
Parametersedge:IEdge — the edge to query the state for
|
Boolean — whether the edge is currently selected
|
| isLabelSelected | () | method |
public function isLabelSelected(label:ILabel):BooleanQueries the selection state for the given label.
Parameterslabel:ILabel — the label to query the state for
|
Boolean — whether the label is currently selected
|
| isNodeSelected | () | method |
public function isNodeSelected(node:INode):BooleanQueries the selection state for the given node.
Parametersnode:INode — the node to query the state for
|
Boolean — whether the node is currently selected
|
| isPortSelected | () | method |
public function isPortSelected(port:IPort):BooleanQueries the selection state for the given port.
Parametersport:IPort — the port to query the state for
|
Boolean — whether the port is currently selected
|
| setBendSelected | () | method |
public function setBendSelected(bend:IBend, selected:Boolean):voidSets the selected state for the given bend.
Parametersbend:IBend — the bend to set the selection state for
|
|
selected:Boolean — the new selection state
|
| setEdgeSelected | () | method |
public function setEdgeSelected(edge:IEdge, selected:Boolean):voidSets the selected state for the given edge.
Parametersedge:IEdge — the edge to set the selection state for
|
|
selected:Boolean — the new selection state
|
| setLabelSelected | () | method |
public function setLabelSelected(label:ILabel, selected:Boolean):voidSets the selected state for the given label.
Parameterslabel:ILabel — the label to set the selection state for
|
|
selected:Boolean — the new selection state
|
| setNodeSelected | () | method |
public function setNodeSelected(node:INode, selected:Boolean):voidSets the selected state for the given node.
Parametersnode:INode — the node to set the selection state for
|
|
selected:Boolean — the new selection state
|
| setPortSelected | () | method |
public function setPortSelected(port:IPort, selected:Boolean):voidSets the selected state for the given port.
Parametersport:IPort — the port to set the selection state for
|
|
selected:Boolean — the new selection state
|
| itemDeselected | event |
com.yworks.graph.model.SelectionEvent
com.yworks.graph.model.SelectionEvent.DESELECT
An event that will be triggered if an item changed its selection state from selected to unselected.
| itemSelected | event |
com.yworks.graph.model.SelectionEvent
com.yworks.graph.model.SelectionEvent.SELECT
An event that will be triggered if an item changed its selection state from unselected to selected.