Example #1
0
 /**
  * Fires a PickedStateChangeEvent for a change on an Edge.
  *
  * @param item The item whose state changed.
  * @param picked Whether or not the item is selected.
  */
 private void firePickedEdgeChangeEvent(E item, boolean picked) {
   PickedStateChangeEvent<E> event = new PickedStateChangeEvent<E>(this, item, picked);
   for (PickedStateChangeListener<E> p : this.pickedEdgeStateChangeListeners) {
     p.stateChanged(event);
   }
 }
Example #2
0
 /**
  * Fires a PickedStateChangeEvent for a change on a vertex.
  *
  * @param item The item whose state changed.
  * @param picked Whether or not the item is selected.
  */
 private void firePickedVertexChangeEvent(V item, boolean picked) {
   PickedStateChangeEvent<V> event = new PickedStateChangeEvent<V>(this, item, picked);
   for (PickedStateChangeListener<V> p : this.pickedVertexStateChangeListeners) {
     p.stateChanged(event);
   }
 }