|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.gui.listeners.menubar.BackgroundMenuListenerFactory
public class BackgroundMenuListenerFactory
Creates the event listeners needed by the BackgoundMenu of the MainMenuBar.
Constructor Summary | |
---|---|
BackgroundMenuListenerFactory(Mediator mediator,
BackgroundMenu backgroundMenu)
Constructs a BackgroundMenuListenerFactory. |
Method Summary | |
---|---|
ActionListener |
creatCustomMenuItemListener()
Creates an action listener for the 'Custom' menu items. |
ActionListener |
createBlackMenuItemListener()
Creates an action listener for the 'Black' menu items. |
ChangeListener |
createChooserChangeListener()
Creates a ChangeListener that will get the color selection from the JColorChooser and calls on the Mediator to change the background color of the canvas. |
ActionListener |
createGrayMenuItemListener()
Creates an action listener for the 'Gray' menu items. |
ActionListener |
createLightGrayMenuItemListener()
Creates an action listener for the 'Light Gray' menu items. |
ActionListener |
createWhiteMenuItemListener()
Creates an action listener for the 'White' menu items. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackgroundMenuListenerFactory(Mediator mediator, BackgroundMenu backgroundMenu)
mediator
- the centralized Mediator object that listeners
call on to accomplish their task.Method Detail |
---|
public ActionListener createBlackMenuItemListener()
public ActionListener createGrayMenuItemListener()
public ActionListener createLightGrayMenuItemListener()
public ActionListener createWhiteMenuItemListener()
public ActionListener creatCustomMenuItemListener()
public ChangeListener createChooserChangeListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |