Interface CytoPanel

public interface CytoPanel
Interface to a CytoPanel.
Ben Gross.

Module: swing-application-api

To use this in your app, include the following dependency in your POM:


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 Details

    • getCytoPanelComponentCount

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

      Component getSelectedComponent()
      Returns the currently selected component.
      component Currently selected CytoPanelComponent reference.
    • getSelectedIndex

      int getSelectedIndex()
      Returns the currently selected index.
      index Currently selected index.
    • getComponentAt

      Component getComponentAt(int index)
      Returns the component at the passed index.
      index - the index of the component, which must be non-negative and less than the component count.
      component at the given index.
      IndexOutOfBoundsException - if index is out of range (index < 0 || index >= component count)
      See Also:
    • getState

      CytoPanelState getState()
      Gets the state of the CytoPanel.
      A CytoPanelState.
    • indexOfComponent

      int indexOfComponent(Component component)
      Returns the index for the specified component.
      component - Component reference.
      int Index of the Component or -1 if not found.
    • indexOfComponent

      int indexOfComponent(String identifier)
      Returns the index for the component that has the specified identifier. The identifier must be the same one provided by CytoPanelComponent2.getIdentifier().
      These are the identifiers of the core Cytoscape components that implement CytoPanelComponent2:
      • "org.cytoscape.Network"
      • "org.cytoscape.Style"
      • "org.cytoscape.Filter"
      identifier - The String that identifies the component.
      int Index of the Component or -1 if not found.
    • setSelectedIndex

      void setSelectedIndex(int index)
      Sets the selected index on the CytoPanel.
      index - The desired index.
    • setState

      void setState(CytoPanelState cytoPanelState)
      Sets the state of the CytoPanel.
      cytoPanelState - A CytoPanelState.
    • getCytoPanelName

      CytoPanelName getCytoPanelName()
      Returns the position in the layout.
      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.
      the Component that is this CytoPanel.