Class RasmolCommandListener
- java.lang.Object
-
- java.awt.event.KeyAdapter
-
- org.biojava.nbio.structure.align.gui.jmol.RasmolCommandListener
-
- All Implemented Interfaces:
ActionListener,KeyListener,MouseListener,EventListener
public class RasmolCommandListener extends KeyAdapter implements ActionListener, MouseListener
a utility class that listens to Ramsol script commands in the @linkBiojavaJmolclass- Author:
- Andreas Prlic
-
-
Constructor Summary
Constructors Constructor Description RasmolCommandListener(JmolPanel panel, JTextField field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent event)voidkeyReleased(KeyEvent e)takes care of the cursor up/down keys.voidmouseClicked(MouseEvent e)voidmouseEntered(MouseEvent e)voidmouseExited(MouseEvent e)voidmousePressed(MouseEvent e)voidmouseReleased(MouseEvent e)-
Methods inherited from class java.awt.event.KeyAdapter
keyPressed, keyTyped
-
-
-
-
Constructor Detail
-
RasmolCommandListener
public RasmolCommandListener(JmolPanel panel, JTextField field)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent event)
- Specified by:
actionPerformedin interfaceActionListener
-
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleasedin interfaceMouseListener
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressedin interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEnteredin interfaceMouseListener
-
keyReleased
public void keyReleased(KeyEvent e)
takes care of the cursor up/down keys. triggers copying of stored commands into the current textfield- Specified by:
keyReleasedin interfaceKeyListener- Overrides:
keyReleasedin classKeyAdapter
-
-