public final class CyMenuItem extends Object
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 and Description |
---|
CyMenuItem(JMenuItem menuItem,
float gravity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.public JMenuItem getMenuItem()
public float getMenuGravity()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.