org.proteinshader.gui.listeners.menubar
Class OrientationMenuListenerFactory

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

public class OrientationMenuListenerFactory
extends Object

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


Constructor Summary
OrientationMenuListenerFactory(Mediator mediator)
          Constructs a OrientationMenuListenerFactory.
 
Method Summary
 ActionListener createOrientationMenuItemsListener()
          Creates an action listener for the OrientationEnum menu items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrientationMenuListenerFactory

public OrientationMenuListenerFactory(Mediator mediator)
Constructs a OrientationMenuListenerFactory.

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

createOrientationMenuItemsListener

public ActionListener createOrientationMenuItemsListener()
Creates an action listener for the OrientationEnum menu items. When the action listener is called, it call on the setImageOrientation() method of the Mediator.

Returns:
The action listener.


Copyright © 2007-2008