org.scijava
Class MenuEntry

java.lang.Object
  extended by org.scijava.MenuEntry

public class MenuEntry
extends Object

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()
           
 double getWeight()
           
 void setAccelerator(Accelerator accelerator)
           
 void setIconPath(String iconPath)
           
 void setMnemonic(char mnemonic)
           
 void setName(String name)
           
 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

setName

public void setName(String name)

getName

public String getName()

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.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009–2014 SciJava. All rights reserved.