org.scijava
Class MenuEntry

java.lang.Object
  extended by 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

Field Summary
static double DEFAULT_WEIGHT
           
 
Constructor Summary
MenuEntry(String name)
           
MenuEntry(String name, double weight)
           
MenuEntry(String name, double weight, char mnemonic, Accelerator acc, String iconPath)
           
 
Method Summary
 void assignProperties(MenuEntry entry)
          Updates any default properties of this menu entry to match those of the given menu entry.
 Accelerator getAccelerator()
           
 String getIconPath()
           
 char getMnemonic()
           
 String getName()
          Gets the name of the object.
 double getWeight()
           
 void setAccelerator(Accelerator accelerator)
           
 void setIconPath(String iconPath)
           
 void setMnemonic(char mnemonic)
           
 void setName(String name)
          Sets the name of the object.
 void setWeight(double weight)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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: 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.