|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--quoggles.auxiliary.RowListener
Changes the selection in the Graffiti system according to the rows or cells that get marked / unmarked.
| Field Summary | |
private int |
markedRows
Count number of marked rows. |
private java.util.Map |
selElementsCnt
Saves the number of times an element is marked. |
| Constructor Summary | |
RowListener()
|
|
| Method Summary | |
void |
cellMarked(java.lang.Object val)
Called if one single cell is marked. |
void |
cellUnmarked(java.lang.Object val)
Called if one single cell is unmarked. |
private void |
changeSelectionCell(java.lang.Object val,
org.graffiti.selection.Selection sel,
boolean add)
Every graph element found in the given object (searched recursively if any collections are involved) is added to or removed from the given selection, according to the given boolean value. |
private boolean |
decElementCount(java.lang.Object ge)
If the element has previously been selected, decrease the number of times it had been selected by one. |
private org.graffiti.selection.SelectionModel |
getSelectionModel()
Get the selection model of the active editor session. |
private void |
incElementCount(java.lang.Object ge)
Add the element to the list of selected elements. |
void |
reset()
Resets the listener. |
void |
rowMarked(java.lang.Object[] row)
Add GraphElements contained in the row to the active
selection. |
void |
rowUnmarked(java.lang.Object[] row)
Remove GraphElements contained in the row from the active
selection (if not selected by other rows). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int markedRows
private java.util.Map selElementsCnt
| Constructor Detail |
public RowListener()
| Method Detail |
public void reset()
private void incElementCount(java.lang.Object ge)
ge - private boolean decElementCount(java.lang.Object ge)
ge -
private void changeSelectionCell(java.lang.Object val,
org.graffiti.selection.Selection sel,
boolean add)
selElementsCnt.
val - the object to be searchedsel - the selection to be changedadd - if true, elements are added, otherwise they are
removed from the selectionprivate org.graffiti.selection.SelectionModel getSelectionModel()
public void cellMarked(java.lang.Object val)
val - public void cellUnmarked(java.lang.Object val)
val - public void rowMarked(java.lang.Object[] row)
GraphElements contained in the row to the active
selection.
row - public void rowUnmarked(java.lang.Object[] row)
GraphElements contained in the row from the active
selection (if not selected by other rows).
row -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||