Package jam.mac

Class MacEditMenuFactory

java.lang.Object
jam.mac.MacEditMenuFactory
All Implemented Interfaces:
MenuFactory

public class MacEditMenuFactory extends Object implements MenuFactory
Version:
$Id: MacEditMenuFactory.java 964 2009-01-02 21:15:28Z rambaut $
Author:
rambaut Date: Dec 26, 2004 Time: 11:01:40 AM
  • Constructor Details

    • MacEditMenuFactory

      public MacEditMenuFactory()
  • Method Details

    • getMenuName

      public String getMenuName()
      Description copied from interface: MenuFactory
      Give the name of this menu. If multiple MenuFactories are registered with the same name, then these will be appended into a single actual menu.
      Specified by:
      getMenuName in interface MenuFactory
    • populateMenu

      public void populateMenu(JMenu menu, AbstractFrame frame)
      Description copied from interface: MenuFactory
      This method should populate the menu with menu items. Reference can be made to the frame in order to get Actions.
      Specified by:
      populateMenu in interface MenuFactory
    • getPreferredAlignment

      public int getPreferredAlignment()
      Description copied from interface: MenuFactory
      Returns the preferred alignment of the menu in the menu bar. This should be one of MenuFactory.LEFT, MenuFactory.CENTER or MenuFactory.RIGHT.
      Specified by:
      getPreferredAlignment in interface MenuFactory
      Returns:
      the alignment