org.scijava
Class MenuEntry
java.lang.Object
org.scijava.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
DEFAULT_WEIGHT
public static final double DEFAULT_WEIGHT
- See Also:
- Constant Field Values
MenuEntry
public MenuEntry(String name)
MenuEntry
public MenuEntry(String name,
double weight)
MenuEntry
public MenuEntry(String name,
double weight,
char mnemonic,
Accelerator acc,
String iconPath)
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)
getAccelerator
public Accelerator getAccelerator()
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
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009–2015 SciJava. All rights reserved.