net.ontopia.topicmaps.viz
Class NavigateUI

java.lang.Object
  extended by com.touchgraph.graphlayout.interaction.TGUserInterface
      extended by net.ontopia.topicmaps.viz.NavigateUI

public class NavigateUI
extends com.touchgraph.graphlayout.interaction.TGUserInterface

INTERNAL.


Nested Class Summary
 class NavigateUI.TextTransfer
           
 
Field Summary
static java.lang.String ITEM_ID_COLLAPSE_NODE
           
static java.lang.String ITEM_ID_COPY_NAME
           
static java.lang.String ITEM_ID_EXPAND_NODE
           
static java.lang.String ITEM_ID_GO_TO_TOPIC_PAGE
           
static java.lang.String ITEM_ID_HIDE_EDGE
           
static java.lang.String ITEM_ID_HIDE_NODE
           
static java.lang.String ITEM_ID_PROPERTIES
           
static java.lang.String ITEM_ID_SET_START_TOPIC
           
static java.lang.String ITEM_ID_STICKY
           
protected  javax.swing.JCheckBoxMenuItem stickyMenu
           
 
Constructor Summary
NavigateUI(VizPanel glp, VizController controller)
           
 
Method Summary
 void activate()
           
 void addMenuItem(javax.swing.JPopupMenu menu, javax.swing.JMenuItem item, java.lang.String itemId)
          Add a given menu item to a given menu.
 void deactivate()
           
protected  boolean isEnabled(java.lang.String itemId)
          Test if the menu item with the given ID is enabled.
 
Methods inherited from class com.touchgraph.graphlayout.interaction.TGUserInterface
activate, isActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITEM_ID_EXPAND_NODE

public static final java.lang.String ITEM_ID_EXPAND_NODE
See Also:
Constant Field Values

ITEM_ID_COLLAPSE_NODE

public static final java.lang.String ITEM_ID_COLLAPSE_NODE
See Also:
Constant Field Values

ITEM_ID_HIDE_NODE

public static final java.lang.String ITEM_ID_HIDE_NODE
See Also:
Constant Field Values

ITEM_ID_STICKY

public static final java.lang.String ITEM_ID_STICKY
See Also:
Constant Field Values

ITEM_ID_PROPERTIES

public static final java.lang.String ITEM_ID_PROPERTIES
See Also:
Constant Field Values

ITEM_ID_SET_START_TOPIC

public static final java.lang.String ITEM_ID_SET_START_TOPIC
See Also:
Constant Field Values

ITEM_ID_COPY_NAME

public static final java.lang.String ITEM_ID_COPY_NAME
See Also:
Constant Field Values

ITEM_ID_GO_TO_TOPIC_PAGE

public static final java.lang.String ITEM_ID_GO_TO_TOPIC_PAGE
See Also:
Constant Field Values

ITEM_ID_HIDE_EDGE

public static final java.lang.String ITEM_ID_HIDE_EDGE
See Also:
Constant Field Values

stickyMenu

protected javax.swing.JCheckBoxMenuItem stickyMenu
Constructor Detail

NavigateUI

public NavigateUI(VizPanel glp,
                  VizController controller)
Method Detail

activate

public void activate()
Specified by:
activate in class com.touchgraph.graphlayout.interaction.TGUserInterface

deactivate

public void deactivate()
Overrides:
deactivate in class com.touchgraph.graphlayout.interaction.TGUserInterface

addMenuItem

public void addMenuItem(javax.swing.JPopupMenu menu,
                        javax.swing.JMenuItem item,
                        java.lang.String itemId)
Add a given menu item to a given menu.

Parameters:
menu - The menu to holde the menu item.
item - The menu item.
itemId - ID for testing if the item is enabled.

isEnabled

protected boolean isEnabled(java.lang.String itemId)
Test if the menu item with the given ID is enabled.

Parameters:
itemId - The ID of the menu item.
Returns:
true iff the item is enabled.


Copyright © 2000-2012 Ontopia.