Package org.cytoscape.application.swing
Interface ToolBarComponent
-
- All Known Implementing Classes:
AbstractToolBarComponent
public interface ToolBarComponentAn interface that allows a component to be registered as a service that will then be added to the ToolBar.Module:
swing-application-apiTo 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComponentgetComponent()Returns the Component to be added to the ToolBar.floatgetToolBarGravity()Returns the gravity used to place this component in the toolbar.
-
-
-
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.
-
-