org.proteinshader.gui.listeners.controlpanel
Class CartoonSideChainsPanelListenerFactory

java.lang.Object
  extended by org.proteinshader.gui.listeners.controlpanel.CartoonSideChainsPanelListenerFactory

public class CartoonSideChainsPanelListenerFactory
extends Object

Creates the listener for the CartoonSideChainsPanel.


Constructor Summary
CartoonSideChainsPanelListenerFactory(Mediator mediator, CartoonSideChainsPanel sideChainsPanel)
          Constructs a CartoonSideChainsPanelListenerFactory.
 
Method Summary
 ActionListener createBallsAndSticksButtonActionListener()
          Creates an action listener for the "Balls and Sticks" button.
 ActionListener createNoneButtonActionListener()
          Creates an action listener for the "Space Filling" button.
 ActionListener createSpaceFillingButtonActionListener()
          Creates an action listener for the "Space Filling" button.
 ActionListener createSticksButtonActionListener()
          Creates an action listener for the "Sticks" button.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CartoonSideChainsPanelListenerFactory

public CartoonSideChainsPanelListenerFactory(Mediator mediator,
                                             CartoonSideChainsPanel sideChainsPanel)
Constructs a CartoonSideChainsPanelListenerFactory.

Parameters:
mediator - the centralized Mediator object that listeners call on to accomplish their task.
sideChainsPanel - the CartoonSideChainPanel that this class creates listeners for.
Method Detail

createSpaceFillingButtonActionListener

public ActionListener createSpaceFillingButtonActionListener()
Creates an action listener for the "Space Filling" button.

Returns:
The action listener.

createBallsAndSticksButtonActionListener

public ActionListener createBallsAndSticksButtonActionListener()
Creates an action listener for the "Balls and Sticks" button.

Returns:
The action listener.

createSticksButtonActionListener

public ActionListener createSticksButtonActionListener()
Creates an action listener for the "Sticks" button.

Returns:
The action listener.

createNoneButtonActionListener

public ActionListener createNoneButtonActionListener()
Creates an action listener for the "Space Filling" button.

Returns:
The action listener.


Copyright © 2007-2008