Class GraffitiMenuItem

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants, GraffitiComponent

public class GraffitiMenuItem
extends JMenuItem
implements GraffitiComponent
TODO
See Also:
Serialized Form
  • Constructor Details

    • GraffitiMenuItem

      public GraffitiMenuItem​(String prefComp, Action a)
      Constructs a new GraffitiMenuItem.
      Parameters:
      prefComp - DOCUMENT ME!
      a - DOCUMENT ME!
  • Method Details

    • setMainFrame

      public void setMainFrame​(MainFrame mf)
      See Also:
      org.graffiti.plugin.gui.GraffitiComponent#setMainFrame(org.graffiti.editor.MainFrame)
    • getPreferredComponent

      public String getPreferredComponent()
      Returns the id of the component the menu item prefers to be inserted in.
      Specified by:
      getPreferredComponent in interface GraffitiComponent
      Returns:
      the id of the component the menu item prefers to be inserted in.