| Package | com.yworks.graph.model |
| Class | public class CompositeStripeSelection |
| Inheritance | CompositeStripeSelection flash.events.EventDispatcher |
| Implements | IGraphSelection |
IGraphSelection implementation that wraps an existing
IGraphSelection and an existing IStripeSelection and
synchronises their state.
An instance of this class is returned by GraphEditorInputMode.graphSelection
if a TableEditorInputMode is installed as a child mode and its
synchronizeWithGraphSelection property is true.
See also
| Property | Defined By | ||
|---|---|---|---|
| count : uint [read-only]
Returns the number of selected items. | CompositeStripeSelection | ||
| mixedSelectionAllowed : Boolean
Whether to allow mixed selections of graph elements and table elements. | CompositeStripeSelection | ||
| selectedBends : Iterable [read-only]
Enumerates all currently selected bends. | CompositeStripeSelection | ||
| selectedEdges : Iterable [read-only]
Enumerates all currently selected edges. | CompositeStripeSelection | ||
| selectedLabels : Iterable [read-only]
Enumerates all currently selected labels. | CompositeStripeSelection | ||
| selectedNodes : Iterable [read-only]
Enumerates all currently selected nodes. | CompositeStripeSelection | ||
| selectedObjects : Iterable [read-only]
Gets an iterable that enumerates all currently selected items. | CompositeStripeSelection | ||
| selectedPorts : Iterable [read-only]
Enumerates all currently selected ports. | CompositeStripeSelection | ||
| Method | Defined By | ||
|---|---|---|---|
Wraps two existing selection models. | CompositeStripeSelection | ||
clear():void
Clears the selection. | CompositeStripeSelection | ||
dispose():void
Clean up. | CompositeStripeSelection | ||
isBendSelected(bend:IBend):Boolean
Queries the selection state for the given bend. | CompositeStripeSelection | ||
isEdgeSelected(edge:IEdge):Boolean
Queries the selection state for the given edge. | CompositeStripeSelection | ||
isLabelSelected(label:ILabel):Boolean
Queries the selection state for the given label. | CompositeStripeSelection | ||
isNodeSelected(node:INode):Boolean
Queries the selection state for the given node. | CompositeStripeSelection | ||
isPortSelected(port:IPort):Boolean
Queries the selection state for the given port. | CompositeStripeSelection | ||
isSelected(item:IModelItem):Boolean
Determines whether an item is currently selected. | CompositeStripeSelection | ||
Returns an iterator over a set of elements. | CompositeStripeSelection | ||
setBendSelected(bend:IBend, selected:Boolean):void
Sets the selected state for the given bend. | CompositeStripeSelection | ||
setEdgeSelected(edge:IEdge, selected:Boolean):void
Sets the selected state for the given edge. | CompositeStripeSelection | ||
setLabelSelected(label:ILabel, selected:Boolean):void
Sets the selected state for the given label. | CompositeStripeSelection | ||
setNodeSelected(node:INode, selected:Boolean):void
Sets the selected state for the given node. | CompositeStripeSelection | ||
setPortSelected(port:IPort, selected:Boolean):void
Sets the selected state for the given port. | CompositeStripeSelection | ||
setSelected(item:IModelItem, selected:Boolean):void
Sets the selection state of an item. | CompositeStripeSelection | ||
| Method | Defined By | ||
|---|---|---|---|
onItemDeselected(evt:SelectionEvent):void
Raises the SelectionEvent.DESELECT event. | CompositeStripeSelection | ||
onItemSelected(evt:SelectionEvent):void
Raises the SelectionEvent.SELECT event. | CompositeStripeSelection | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when an item changed its selection state from selected to unselected. | CompositeStripeSelection | |||
| Dispatched when an item changed its selection state from unselected to selected. | CompositeStripeSelection | |||
| count | property |
count:uint [read-only] Returns the number of selected items.
public function get count():uint| mixedSelectionAllowed | property |
mixedSelectionAllowed:BooleanWhether to allow mixed selections of graph elements and table elements.
The default value is true.
public function get mixedSelectionAllowed():Boolean public function set mixedSelectionAllowed(value:Boolean):void| 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| selectedObjects | property |
selectedObjects:Iterable [read-only] Gets an iterable that enumerates all currently selected items.
public function get selectedObjects():Iterable| selectedPorts | property |
selectedPorts:Iterable [read-only] Enumerates all currently selected ports.
public function get selectedPorts():Iterable| CompositeStripeSelection | () | Constructor |
public function CompositeStripeSelection(graphSelection:IGraphSelection, stripeSelection:IStripeSelection)Wraps two existing selection models.
ParametersgraphSelection:IGraphSelection — The original graph selection.
| |
stripeSelection:IStripeSelection — The stripe selection.
|
| clear | () | method |
public function clear():voidClears the selection.
| dispose | () | method |
public function dispose():voidClean up.
| 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
|
| isSelected | () | method |
public function isSelected(item:IModelItem):BooleanDetermines whether an item is currently selected.
Parameters
item:IModelItem — The item to check.
|
Boolean — Whether the item is currently selected.
|
| iterator | () | method |
public function iterator():IteratorReturns an iterator over a set of elements.
ReturnsIterator — an Iterator.
|
| onItemDeselected | () | method |
protected function onItemDeselected(evt:SelectionEvent):void
Raises the SelectionEvent.DESELECT event.
Parameters
evt:SelectionEvent — The event which triggered this method.
|
| onItemSelected | () | method |
protected function onItemSelected(evt:SelectionEvent):void
Raises the SelectionEvent.SELECT event.
Parameters
evt:SelectionEvent — The event which triggered this method.
|
| 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
|
| setSelected | () | method |
public function setSelected(item:IModelItem, selected:Boolean):voidSets the selection state of an item.
Parameters
item:IModelItem — The object to set the selection state for.
| |
selected:Boolean — Whether to select the object.
|
| deselect | Event |
com.yworks.graph.model.SelectionEventcom.yworks.graph.model.SelectionEvent.DESELECTDispatched when an item changed its selection state from selected to unselected.
| select | Event |
com.yworks.graph.model.SelectionEventcom.yworks.graph.model.SelectionEvent.SELECTDispatched when an item changed its selection state from unselected to selected.