| Package | com.yworks.graph.model |
| Interface | public interface IGraphSelection extends ISelectionModel, flash.events.IEventDispatcher, Iterable |
| Implementors | CompositeStripeSelection, GraphSelection |
IGraph
instance.
| Property | Defined By | ||
|---|---|---|---|
![]() | count : uint [read-only]
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 [read-only]
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 | ||
|---|---|---|---|---|
| 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 | |||
| selectedBends | property |
selectedBends:Iterable [read-only] Enumerates all currently selected bends.
public function get selectedBends():Iterable| selectedEdges | property |
selectedEdges:Iterable [read-only] Enumerates all currently selected edges.
public function get selectedEdges():Iterable| selectedLabels | property |
selectedLabels:Iterable [read-only] Enumerates all currently selected labels.
public function get selectedLabels():Iterable| selectedNodes | property |
selectedNodes:Iterable [read-only] Enumerates all currently selected nodes.
public function get selectedNodes():Iterable| selectedPorts | property |
selectedPorts:Iterable [read-only] Enumerates all currently selected ports.
public function get selectedPorts():Iterable| isBendSelected | () | method |
public function isBendSelected(bend:IBend):BooleanQueries the selection state for the given bend.
Parameters
bend: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.
Parameters
edge: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.
Parameters
label: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.
Parameters
node: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.
Parameters
port: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.
Parameters
bend: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.
Parameters
edge: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.
Parameters
label: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.
Parameters
node: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.
Parameters
port:IPort — the port to set the selection state for
| |
selected:Boolean — the new selection state
|
| itemDeselected | Event |
com.yworks.graph.model.SelectionEventcom.yworks.graph.model.SelectionEvent.DESELECTAn event that will be triggered if an item changed its selection state from selected to unselected.
| itemSelected | Event |
com.yworks.graph.model.SelectionEventcom.yworks.graph.model.SelectionEvent.SELECTAn event that will be triggered if an item changed its selection state from unselected to selected.