|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cytoscape.application.swing.CyMenuItem
public final class CyMenuItem
A simple wrapper class that allows a JMenuItem to be associated with a gravity value which defines where in a menu the item should fall.
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>| Constructor Summary | |
|---|---|
CyMenuItem(JMenuItem menuItem,
float gravity)
Constructor. |
|
| Method Summary | |
|---|---|
float |
getMenuGravity()
Returns the gravity used to place the menu item in a menu. |
JMenuItem |
getMenuItem()
Returns the menu item to be placed in a menu according to the specified menu gravity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CyMenuItem(JMenuItem menuItem,
float gravity)
menuItem - to JMenuItem to be added to the menu.gravity - the gravity of the menu item to be added.| Method Detail |
|---|
public JMenuItem getMenuItem()
public float getMenuGravity()
|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||