Interface ToolBarComponent

  • 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.

    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>

    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.
    • Method Detail

      • 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.