Class JaxoVertexPopupMenu

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, MenuElement, JaxoLocalized

public class JaxoVertexPopupMenu extends JPopupMenu implements JaxoLocalized
Pops up a menu with the dufferent vertex types whenever the user right clicks on the vertex button.
Since:
2.0
See Also:
  • Constructor Details

    • JaxoVertexPopupMenu

      public JaxoVertexPopupMenu()
      Constructs a new vertex popup menu.
  • Method Details

    • addActionListener

      public void addActionListener(ActionListener l)
      Adds an action listener to this popup menu.
      Parameters:
      l - The ActionListener to add.
    • updateLanguage

      public final void updateLanguage()
      Updates the component with the current language as set in the preferences (JaxoPrefs.PREF_LANGUAGE).
      Specified by:
      updateLanguage in interface JaxoLocalized
    • updateVertexType

      public final void updateVertexType(int value)
      Notification on change of vertex type. Sets the radio button to the current vertex type in the pop-up menu.
      Parameters:
      value - Specifies the current vertex type.