Class StructureAlignmentJmol
- java.lang.Object
 - 
- org.biojava.nbio.structure.align.gui.jmol.AbstractAlignmentJmol
 - 
- org.biojava.nbio.structure.align.gui.jmol.StructureAlignmentJmol
 
 
 
- 
- All Implemented Interfaces:
 ActionListener,MouseListener,MouseMotionListener,WindowListener,EventListener,ChangeListener
public class StructureAlignmentJmol extends AbstractAlignmentJmol implements ChangeListener
A class that provides a simple GUI for Jmol- Since:
 - 1.6
 - Author:
 - Andreas Prlic
 
 
- 
- 
Field Summary
- 
Fields inherited from class org.biojava.nbio.structure.align.gui.jmol.AbstractAlignmentJmol
colorPalette, COMMAND_LINE_HELP, DEFAULT_HEIGHT, DEFAULT_SCRIPT, DEFAULT_WIDTH, frame, jmolPanel, nrOpenWindows, status, structure, text 
 - 
 
- 
Constructor Summary
Constructors Constructor Description StructureAlignmentJmol()StructureAlignmentJmol(AFPChain afpChain, Atom[] ca1, Atom[] ca2) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent e)voiddestroy()Set all the member variables to null.List<Matrix>getDistanceMatrices()Returns a List of internal Distance Matrices, one for each structure in the alignment.static StringgetJmolScript4Block(AFPChain afpChain, Atom[] ca1, Atom[] ca2, int blockNr)static StringgetJmolString(AFPChain afpChain, Atom[] ca1, Atom[] ca2)protected voidinitCoords()Display the structures after the variable initialization in the constructor.static voidmain(String[] args)voidresetDisplay()Return to the initial state of the alignment visualization.voidstateChanged(ChangeEvent e)- 
Methods inherited from class org.biojava.nbio.structure.align.gui.jmol.AbstractAlignmentJmol
evalString, getColorPalette, getJmolPanel, getStructure, getTitle, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setAtoms, setJmolPanel, setStructure, setTitle, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
StructureAlignmentJmol
public StructureAlignmentJmol()
 
- 
StructureAlignmentJmol
public StructureAlignmentJmol(AFPChain afpChain, Atom[] ca1, Atom[] ca2)
 
 - 
 
- 
Method Detail
- 
initCoords
protected void initCoords()
Description copied from class:AbstractAlignmentJmolDisplay the structures after the variable initialization in the constructor.- Specified by:
 initCoordsin classAbstractAlignmentJmol
 
- 
destroy
public void destroy()
Description copied from class:AbstractAlignmentJmolSet all the member variables to null.- Overrides:
 destroyin classAbstractAlignmentJmol
 
- 
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
 actionPerformedin interfaceActionListener- Specified by:
 actionPerformedin classAbstractAlignmentJmol
 
- 
getJmolString
public static String getJmolString(AFPChain afpChain, Atom[] ca1, Atom[] ca2)
 
- 
getJmolScript4Block
public static String getJmolScript4Block(AFPChain afpChain, Atom[] ca1, Atom[] ca2, int blockNr)
 
- 
resetDisplay
public void resetDisplay()
Description copied from class:AbstractAlignmentJmolReturn to the initial state of the alignment visualization.- Specified by:
 resetDisplayin classAbstractAlignmentJmol
 
- 
getDistanceMatrices
public List<Matrix> getDistanceMatrices()
Description copied from class:AbstractAlignmentJmolReturns a List of internal Distance Matrices, one for each structure in the alignment. Returns null if no alignment is being displayed.- Specified by:
 getDistanceMatricesin classAbstractAlignmentJmol
 
- 
stateChanged
public void stateChanged(ChangeEvent e)
- Specified by:
 stateChangedin interfaceChangeListener
 
 - 
 
 -