Search this API

y.view
Interface Graph2DSelectionListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
Selections.SelectionStateObserver, TableSelectionEditor

public interface Graph2DSelectionListener
extends java.util.EventListener

The listener interface for receiving Graph2DSelectionEvents. The class that is interested in processing a selection event implements this interface. The object created with that class is then registered with a Graph2D. When the selection state of a node or an edge within the graph changes, the listener object's selectionStateChanged method is invoked.

 

Method Summary
 void onGraph2DSelectionEvent(Graph2DSelectionEvent e)
          Invoked when the structure of the graph has changed.
 

Method Detail

onGraph2DSelectionEvent

void onGraph2DSelectionEvent(Graph2DSelectionEvent e)
Invoked when the structure of the graph has changed. The code written for this method performs the operations that need to occur when the graph changes.


© Copyright 2000-2021,
yWorks GmbH.
All rights reserved.