Package org.scijava
Class MenuEntry
- java.lang.Object
-
- org.scijava.MenuEntry
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_WEIGHT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignProperties(MenuEntry entry)Updates any default properties of this menu entry to match those of the given menu entry.AcceleratorgetAccelerator()StringgetIconPath()chargetMnemonic()StringgetName()Gets the name of the object.doublegetWeight()voidsetAccelerator(Accelerator accelerator)voidsetIconPath(String iconPath)voidsetMnemonic(char mnemonic)voidsetName(String name)Sets the name of the object.voidsetWeight(double weight)StringtoString()
-
-
-
Field Detail
-
DEFAULT_WEIGHT
public static final double DEFAULT_WEIGHT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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)
-
-
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)
-
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:NamedGets the name of the object.
-
setName
public void setName(String name)
Description copied from interface:NamedSets the name of the object.
-
-