Interface ToolBarComponent

All Known Subinterfaces:
TableToolBarComponent
All Known Implementing Classes:
AbstractToolBarComponent

public interface ToolBarComponent
An interface that allows a component to be registered as a service that will then be added to the ToolBar.

Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.

Module: swing-application-api

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

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>swing-application-api</artifactId>
</dependency>
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Component to be added to the ToolBar.
    float
    Returns the gravity used to place this component in the toolbar.
  • Method Details

    • getToolBarGravity

      float getToolBarGravity()
      Returns the gravity used to place this component in the toolbar.
      Returns:
      The gravity used to place this component in the toolbar.
    • getComponent

      Component getComponent()
      Returns the Component to be added to the ToolBar.
      Returns:
      The Component to be added to the ToolBar.