Package org.cytoscape.application.swing
Class AbstractToolBarComponent
java.lang.Object
org.cytoscape.application.swing.AbstractToolBarComponent
- All Implemented Interfaces:
ToolBarComponent
An abstract, convenience implementation of ToolBarComponent.
Cytoscape Backwards Compatibility (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed 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>-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether the toolbar component is enabled or not.protected floatThe gravity for this toolbar component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the gravity value for this toolbar component.voidsetToolBarGravity(float gravity) Sets the gravity for this toolbar component.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cytoscape.application.swing.ToolBarComponent
getComponent
-
Field Details
-
toolbarGravity
protected float toolbarGravityThe gravity for this toolbar component. -
isEnabled
protected boolean isEnabledWhether the toolbar component is enabled or not.
-
-
Constructor Details
-
AbstractToolBarComponent
public AbstractToolBarComponent()
-
-
Method Details
-
setToolBarGravity
public void setToolBarGravity(float gravity) Sets the gravity for this toolbar component.- Parameters:
gravity- The gravity for this toolbar component.
-
getToolBarGravity
public float getToolBarGravity()Returns the gravity value for this toolbar component.- Specified by:
getToolBarGravityin interfaceToolBarComponent- Returns:
- the gravity value for this toolbar component.
-