public class NavigateUI
extends com.touchgraph.graphlayout.interaction.TGUserInterface
Modifier and Type | Class and Description |
---|---|
class |
NavigateUI.TextTransfer |
Modifier and Type | Field and Description |
---|---|
static String |
ITEM_ID_COLLAPSE_NODE |
static String |
ITEM_ID_COPY_NAME |
static String |
ITEM_ID_EXPAND_NODE |
static String |
ITEM_ID_GO_TO_TOPIC_PAGE |
static String |
ITEM_ID_HIDE_EDGE |
static String |
ITEM_ID_HIDE_NODE |
static String |
ITEM_ID_PROPERTIES |
static String |
ITEM_ID_SET_START_TOPIC |
static String |
ITEM_ID_STICKY |
protected JCheckBoxMenuItem |
stickyMenu |
Constructor and Description |
---|
NavigateUI(VizPanel glp,
VizController controller) |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
addMenuItem(JPopupMenu menu,
JMenuItem item,
String itemId)
Add a given menu item to a given menu.
|
void |
deactivate() |
protected boolean |
isEnabled(String itemId)
Test if the menu item with the given ID is enabled.
|
public static final String ITEM_ID_EXPAND_NODE
public static final String ITEM_ID_COLLAPSE_NODE
public static final String ITEM_ID_HIDE_NODE
public static final String ITEM_ID_STICKY
public static final String ITEM_ID_PROPERTIES
public static final String ITEM_ID_SET_START_TOPIC
public static final String ITEM_ID_COPY_NAME
public static final String ITEM_ID_GO_TO_TOPIC_PAGE
public static final String ITEM_ID_HIDE_EDGE
protected JCheckBoxMenuItem stickyMenu
public NavigateUI(VizPanel glp, VizController controller)
public void activate()
activate
in class com.touchgraph.graphlayout.interaction.TGUserInterface
public void deactivate()
deactivate
in class com.touchgraph.graphlayout.interaction.TGUserInterface
public void addMenuItem(JPopupMenu menu, JMenuItem item, String itemId)
menu
- The menu to holde the menu item.item
- The menu item.itemId
- ID for testing if the item is enabled.protected boolean isEnabled(String itemId)
itemId
- The ID of the menu item.