Class TToolBar.RulerButton

All Implemented Interfaces:
ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, SwingConstants
Enclosing class:
TToolBar

protected class TToolBar.RulerButton extends TButton implements ActionListener
A button to manage the creation and visibility of measuring tools.
See Also:
  • Method Details

    • getPopup

      protected JPopupMenu getPopup()
      Description copied from class: TButton
      Gets the TMenuBar's trackMenu popup menu to display. If a track is associated with this button, the track menu is returned, but subclasses can override this method to return any popup menu.
      Overrides:
      getPopup in class TButton
      Returns:
      the popup, or null if the right side of this button was clicked
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Responds to action events from both this button and the popup items.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - the action event