org.proteinshader.gui.listeners.menubar
Class VisibilityMenuListenerFactory

java.lang.Object
  extended by org.proteinshader.gui.listeners.menubar.VisibilityMenuListenerFactory

public class VisibilityMenuListenerFactory
extends Object

Creates all event listeners needed by the VisibilityMenu of the MainMenuBar.


Constructor Summary
VisibilityMenuListenerFactory(Mediator mediator)
          Constructs a VisibilityMenuListenerFactory.
 
Method Summary
 ActionListener createAminoAcidsCheckBoxListener()
          Creates an action listener for the 'Amino Acids' check box menu item.
 ActionListener createHeterogensCheckBoxListener()
          Creates an action listener for the 'Heterogens' check box menu item.
 ActionListener createWatersCheckBoxListener()
          Creates an action listener for the 'Waters' check box menu item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibilityMenuListenerFactory

public VisibilityMenuListenerFactory(Mediator mediator)
Constructs a VisibilityMenuListenerFactory.

Parameters:
mediator - the centralized Mediator object that listeners call on to accomplish their task.
Method Detail

createAminoAcidsCheckBoxListener

public ActionListener createAminoAcidsCheckBoxListener()
Creates an action listener for the 'Amino Acids' check box menu item. When the listener is called, it will tell the Mediator to show the AminoAcids if the check box is selected, or to hide them if the check box is deselected.

Returns:
The action listener.

createHeterogensCheckBoxListener

public ActionListener createHeterogensCheckBoxListener()
Creates an action listener for the 'Heterogens' check box menu item. When the listener is called, it will tell the Mediator to show the Heterogens if the check box is selected, or to hide them if the check box is deselected.

Returns:
The action listener.

createWatersCheckBoxListener

public ActionListener createWatersCheckBoxListener()
Creates an action listener for the 'Waters' check box menu item. When the listener is called, it will tell the Mediator to show the Waters if the check box is selected, or to hide them if the check box is deselected.

Returns:
The action listener.


Copyright © 2007-2008