|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simbrain.network.NetworkSelectionModel
final class NetworkSelectionModel
Network selection model.
| Constructor Summary | |
|---|---|
NetworkSelectionModel(NetworkPanel networkPanel)
Create a new network selection model for the specified source of selection events. |
|
| Method Summary | |
|---|---|
void |
add(Object element)
Add the specified element to the selection. |
void |
addAll(Collection elements)
Add all of the specified elements to the selection. |
void |
addSelectionListener(NetworkSelectionListener l)
Add the specified network selection listener. |
void |
clear()
Clear the selection. |
void |
fireSelectionChanged(Set oldSelection,
Set selection)
Fire a wholesale selection model changed event to all registered selection listeners. |
Collection |
getSelection()
Return the selection as an unmodifiable collection of selected elements. |
boolean |
isAdjusting()
Return true if this model will be adjusting over a series of rapid changes. |
boolean |
isEmpty()
Return true if the selection is empty. |
boolean |
isSelected(Object element)
Return true if the specified element is selected. |
void |
remove(Object element)
Remove the specified element from the selection. |
void |
removeAll(Collection elements)
Remove all of the specified elements from the selection. |
void |
removeSelectionListener(NetworkSelectionListener l)
Remove the specified network selection listener. |
void |
setAdjusting(boolean adjusting)
Set to true if this model will be adjusting over a series of rapid changes. |
void |
setSelection(Collection elements)
Set the selection to the specified collection of elements. |
int |
size()
Return the size of the selection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetworkSelectionModel(NetworkPanel networkPanel)
networkPanel - source of selection events| Method Detail |
|---|
public int size()
public void clear()
public boolean isEmpty()
public void add(Object element)
element - element to addpublic void addAll(Collection elements)
elements - elements to addpublic void remove(Object element)
element - element to removepublic void removeAll(Collection elements)
elements - elements to removepublic boolean isSelected(Object element)
element - element
public Collection getSelection()
public void setSelection(Collection elements)
elements - elementspublic void addSelectionListener(NetworkSelectionListener l)
l - network selection listener to addpublic void removeSelectionListener(NetworkSelectionListener l)
l - network selection listener to removepublic boolean isAdjusting()
public void setAdjusting(boolean adjusting)
adjusting - true if this model will be adjusting over
a series of rapid changes
public void fireSelectionChanged(Set oldSelection,
Set selection)
oldSelection - old selectionselection - selection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||