Cytoscape 3.0.1 API

org.cytoscape.application.swing
Interface CytoPanel


public interface CytoPanel

Interface to a CytoPanel.

Author:
Ben Gross.

Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.

Method Summary
 Component getComponentAt(int index)
          Returns the component at index.
 int getCytoPanelComponentCount()
          Returns the number of components in the CytoPanel.
 CytoPanelName getCytoPanelName()
          Returns the position in the layout.
 Component getSelectedComponent()
          Returns the currently selected component.
 int getSelectedIndex()
          Returns the currently selected index.
 CytoPanelState getState()
          Gets the state of the CytoPanel.
 Component getThisComponent()
          Returns the Component that is this CytoPanel.
 int indexOfComponent(Component component)
          Returns the index for the specified component.
 void setSelectedIndex(int index)
          Sets the selected index on the CytoPanel.
 void setState(CytoPanelState cytoPanelState)
          Sets the state of the CytoPanel.
 

Method Detail

getCytoPanelComponentCount

int getCytoPanelComponentCount()
Returns the number of components in the CytoPanel.

Returns:
int Number of components.

getSelectedComponent

Component getSelectedComponent()
Returns the currently selected component.

Returns:
component Currently selected CytoPanelComponent reference.

getSelectedIndex

int getSelectedIndex()
Returns the currently selected index.

Returns:
index Currently selected index.

getComponentAt

Component getComponentAt(int index)
Returns the component at index.

Parameters:
index - the index of the component.
Returns:
component at the given index.

getState

CytoPanelState getState()
Gets the state of the CytoPanel.

Returns:
A CytoPanelState.

indexOfComponent

int indexOfComponent(Component component)
Returns the index for the specified component.

Parameters:
component - Component reference.
Returns:
int Index of the Component or -1 if not found.

setSelectedIndex

void setSelectedIndex(int index)
Sets the selected index on the CytoPanel.

Parameters:
index - The desired index.

setState

void setState(CytoPanelState cytoPanelState)
Sets the state of the CytoPanel.

Parameters:
cytoPanelState - A CytoPanelState.

getCytoPanelName

CytoPanelName getCytoPanelName()
Returns the position in the layout.

Returns:
The CytoPanelName enum value indicating the position in the layout.

getThisComponent

Component getThisComponent()
Returns the Component that is this CytoPanel. This is a hack to allow CytoPanel to be used as a Component.

Returns:
the Component that is this CytoPanel.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.