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 @linkBiojavaJmol
class- 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 void
actionPerformed(ActionEvent event)
void
keyReleased(KeyEvent e)
takes care of the cursor up/down keys. triggers copying of stored commands into the current textfieldvoid
mouseClicked(MouseEvent e)
void
mouseEntered(MouseEvent e)
void
mouseExited(MouseEvent e)
void
mousePressed(MouseEvent e)
void
mouseReleased(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:
actionPerformed
in interfaceActionListener
-
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interfaceMouseListener
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in 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:
keyReleased
in interfaceKeyListener
- Overrides:
keyReleased
in classKeyAdapter
-
-