Package org.scijava

Class MenuEntry

  • All Implemented Interfaces:
    Named

    public class MenuEntry
    extends Object
    implements Named
    One component of a menu path, for use with MenuPath.
    Author:
    Curtis Rueden, Johannes Schindelin
    • Constructor Detail

      • MenuEntry

        public MenuEntry​(String name)
      • MenuEntry

        public MenuEntry​(String name,
                         double weight)
    • Method Detail

      • setWeight

        public void setWeight​(double weight)
      • getWeight

        public double getWeight()
      • setMnemonic

        public void setMnemonic​(char mnemonic)
      • getMnemonic

        public char getMnemonic()
      • setAccelerator

        public void setAccelerator​(Accelerator accelerator)
      • setIconPath

        public void setIconPath​(String iconPath)
      • getIconPath

        public String getIconPath()
      • assignProperties

        public void assignProperties​(MenuEntry entry)
        Updates any default properties of this menu entry to match those of the given menu entry.
      • getName

        public String getName()
        Description copied from interface: Named
        Gets the name of the object.
        Specified by:
        getName in interface Named
      • setName

        public void setName​(String name)
        Description copied from interface: Named
        Sets the name of the object.
        Specified by:
        setName in interface Named