ibm_ilog.diagram.Selection (version 1.1-SNAPSHOT)
Object » ibm_ilog.diagram.Selection
dojo.require("ibm_ilog.diagram.Selection");
creates a new instance
Property Summary
Method Summary
- accept(element)
- add(elements, forceClear) sets the desired as selected, and add it to the selected list (if not in the list yet). Also connect the element to react to the selectableChanged method
- clear() sets the selection state of all the elements in the selected list as false, and clear the list. If any element is removed from the selection, a notification is thrown.
- constructor(diagram, options) creates a new instance
- fastGet() gets the ArrayList of selected elements
- get() gets the ArrayList of selected elements
- getLinkSelectionEnabled() gets if link Selection is enabled (true by default) this enablement only affects the accept(graphelement) return value.
- getMultiSelectionEnabled() gets if multi-Selection is enabled (true by default)
- getNodeSelectionEnabled() gets if Node Selection is enabled (true by default) this enablement only affects the accept(graphelement) return value.
- instantiateSelectionStrategy(diagram, options)
- remove(elements, isDisposed) sets the desired as unselected, and remove it from the selected list (if in the list).
- selectAll(graph, options) select all elements in a graph
- setLinkSelectionEnabled(enabled) sets if link Selection is enabled (true by default) this enablement only affects the accept(graphelement) return value.
- setMultiSelectionEnabled(enabled) sets if multi-Selection is enabled (true by default)
- setNodeSelectionEnabled(enabled) sets if node Selection is enabled (true by default) this enablement only affects the accept(graphelement) return value.
Event Summary
- onElementDisposed(graphElement)
- onSelectionChanged(added, removed)
Properties
Methods
sets the desired as selected, and add it to the selected list (if not in
the list yet). Also connect the element to react to the selectableChanged method
Parameter | Type | Description |
---|---|---|
elements | a | single element or an array of elements |
forceClear |
sets the selection state of all the elements in the selected list as
false, and clear the list. If any element is removed from the selection, a notification is thrown.
gets if link Selection is enabled (true by default)
this enablement only affects the accept(graphelement) return value.
gets if Node Selection is enabled (true by default)
this enablement only affects the accept(graphelement) return value.
sets the desired as unselected, and remove it from the selected list (if in
the list).
Parameter | Type | Description |
---|---|---|
elements | a | single element or an array of elements |
isDisposed |
select all elements in a graph
Parameter | Type | Description |
---|---|---|
graph | the | graph containing all the items to be selected |
options | options.noCheck: | if true, skip checking each item is accepted by the receiver |
sets if link Selection is enabled (true by default)
this enablement only affects the accept(graphelement) return value.
Parameter | Type | Description |
---|---|---|
enabled |
sets if multi-Selection is enabled (true by default)
Parameter | Type | Description |
---|---|---|
enabled |
sets if node Selection is enabled (true by default)
this enablement only affects the accept(graphelement) return value.
Parameter | Type | Description |
---|---|---|
enabled |