|
Cytoscape 3.0.0-beta1 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.
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.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |