Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.view.cytopanels
Interface CytoPanelListener

All Superinterfaces:
EventListener

public interface CytoPanelListener
extends EventListener

This listener interface provides the mechanism to respond to CytoPanel Events.

Author:
Ben Gross

Method Summary
 void onComponentAdded(int count)
          Notifies the listener when a component is added to the CytoPanel.
 void onComponentRemoved(int count)
          Notifies the listener when a component is removed from the CytoPanel.
 void onComponentSelected(int componentIndex)
          Notifies the listener when a new component on the CytoPanel is selected.
 void onStateChange(CytoPanelState newState)
          Notifies the listener on a change in the CytoPanel state.
 

Method Detail

onStateChange

void onStateChange(CytoPanelState newState)
Notifies the listener on a change in the CytoPanel state.

Parameters:
newState - The new CytoPanel state - see CytoPanelState class.

onComponentSelected

void onComponentSelected(int componentIndex)
Notifies the listener when a new component on the CytoPanel is selected.

Parameters:
componentIndex - The index of the component selected.

onComponentAdded

void onComponentAdded(int count)
Notifies the listener when a component is added to the CytoPanel.

Parameters:
count - The number of components on the CytoPanel after the add.

onComponentRemoved

void onComponentRemoved(int count)
Notifies the listener when a component is removed from the CytoPanel.

Parameters:
count - The number of components on the CytoPanel after the remove.

www.cytoscape.org